vs.worldagent
Class ScheduledOperator

java.lang.Object
  extended by vs.worldagent.ScheduledOperator

public class ScheduledOperator
extends java.lang.Object

Represents a data structure for the timing of an action : | duration | | interruptableDuration | |-------------------------|------------------------------| startTime interTime endTime

Author:
swartjes Created on 15-jul-2005

Field Summary
static int ABORTED
           
static int CREATED
           
static int FINISHED
           
static int NO_LONGER_INTERRUPTABLE
           
static int SCHEDULED
           
static int STARTED
           
 
Constructor Summary
ScheduledOperator(Operator operator, int startTime, int interTime, int endTime)
          Constructor
 
Method Summary
 int getEndTime()
           
 int getInterTime()
           
 Operator getOperator()
           
 int getStartTime()
           
 int getStatus()
          Get status of this scheduled action
 void setStatus(int newStatus)
          Set status of this scheduled action
 java.lang.String toString()
          String representation of scheduled action
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
See Also:
Constant Field Values

SCHEDULED

public static final int SCHEDULED
See Also:
Constant Field Values

STARTED

public static final int STARTED
See Also:
Constant Field Values

NO_LONGER_INTERRUPTABLE

public static final int NO_LONGER_INTERRUPTABLE
See Also:
Constant Field Values

FINISHED

public static final int FINISHED
See Also:
Constant Field Values

ABORTED

public static final int ABORTED
See Also:
Constant Field Values
Constructor Detail

ScheduledOperator

public ScheduledOperator(Operator operator,
                         int startTime,
                         int interTime,
                         int endTime)
Constructor

Parameters:
startTime - The starting time of this schedule
interTime - The time when the intereffects are applied
endTime - The time when this schedule ends and the effects are applied
Method Detail

getEndTime

public int getEndTime()
Returns:
end time

getInterTime

public int getInterTime()
Returns:
intereffects time

getOperator

public Operator getOperator()
Returns:
the action

getStartTime

public int getStartTime()
Returns:
start time

getStatus

public int getStatus()
Get status of this scheduled action

Returns:
the status of this scheduled action

setStatus

public void setStatus(int newStatus)
Set status of this scheduled action

Parameters:
newStatus - the new status of this scheduled action

toString

public java.lang.String toString()
String representation of scheduled action

Overrides:
toString in class java.lang.Object