issrg.akentipermis
Class TimeInterpreter

java.lang.Object
  extended by issrg.akentipermis.TimeInterpreter
All Implemented Interfaces:
Interpreter

public class TimeInterpreter
extends java.lang.Object
implements Interpreter


Constructor Summary
protected TimeInterpreter(int mode)
           
 
Method Summary
 java.lang.String canEvaluate(Term[] t)
          This method returns the string type of the result of evaluating the given set of Terms, or null, if the expression cannot be evaluated by this interpreter.
 java.lang.Object evaluate(Environment env, Term[] t)
          This method evaluates the expression given the environment.
static void register()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInterpreter

protected TimeInterpreter(int mode)
Method Detail

register

public static void register()

canEvaluate

public java.lang.String canEvaluate(Term[] t)
Description copied from interface: Interpreter
This method returns the string type of the result of evaluating the given set of Terms, or null, if the expression cannot be evaluated by this interpreter.

Specified by:
canEvaluate in interface Interpreter
Parameters:
t - - the array of Terms; can be null and can be empty
Returns:
the String name of the type of the result, or null, if the expression cannot be evaluated

evaluate

public java.lang.Object evaluate(Environment env,
                                 Term[] t)
                          throws EvaluationException
Description copied from interface: Interpreter
This method evaluates the expression given the environment.

Specified by:
evaluate in interface Interpreter
Parameters:
env - - the Environment with variables used in IF-statement
t - - the sequence of Terms in the order that they appear in the policy; can be null or an empty array
Returns:
the object of the type guaranteed by canEvaluate method; never null
Throws:
EvaluationException