EventEvaluator.Resource
Class ActiveEvent

java.lang.Object
  |
  +--EventEvaluator.Resource.ActiveEvent

public class ActiveEvent
extends java.lang.Object

Event that is beeing evaluated by the Resource Manager


Constructor Summary
ActiveEvent(EventEvaluator.Resource.ResourceEvent re)
          Obtains data from resource event re.
 
Method Summary
 boolean containsPid(java.lang.String pid)
          Checks if the boolean expression contains parameter pid.
 int duration_time()
          Returns the duration time of this event.
 java.lang.String eid()
          Returns the event identification.
 java.util.Vector exPid()
          Returns the list of parameter identifications contained in the boolean expression of thie active event.
 java.lang.String get_expression()
          Returns the boolean expression of this event.
 boolean is_suspended()
          Returns if the evaluation of this active event is supended or not.
 void resume()
          Resume the evaluation of this active event.
 void suspend()
          Suspend the evaluation of this active event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveEvent

public ActiveEvent(EventEvaluator.Resource.ResourceEvent re)
Obtains data from resource event re.
Parameters:
re - reference to resource event related to this active event
Method Detail

exPid

public java.util.Vector exPid()
Returns the list of parameter identifications contained in the boolean expression of thie active event.
Returns:
the list of pid

containsPid

public boolean containsPid(java.lang.String pid)
Checks if the boolean expression contains parameter pid.
Parameters:
pid - the parameter identification
Returns:
TRUE if parameter pid is found on expression, FALSE otherwise

get_expression

public java.lang.String get_expression()
Returns the boolean expression of this event.
Returns:
a string containing the boolean expresion

eid

public java.lang.String eid()
Returns the event identification.
Returns:
a string containing the event identification

duration_time

public int duration_time()
Returns the duration time of this event.
Returns:
the duration time (in seconds)

is_suspended

public boolean is_suspended()
Returns if the evaluation of this active event is supended or not.
Returns:
TRUE if the evaluation of this event is suspended, FALSE otherwise

suspend

public void suspend()
Suspend the evaluation of this active event.

resume

public void resume()
Resume the evaluation of this active event.