| java.lang.Object de.danet.an.workflow.domain.Deadline
Deadline | public class Deadline implements Serializable(Code) | | This class represents a defined deadline with all its attributes.
author: Michael Lipp version: $Revision: 1.4 $ |
Field Summary | |
final public static int | ASYNCHR Denotes asynchronous execution of the deadline. | final public static int | STATE_INITIAL Deadline is in initial state. | final public static int | STATE_REACHED Deadline has been reached. | final public static int | SYNCHR Denotes synchronous execution of the deadline. |
Constructor Summary | |
public | Deadline(int execMode, String cond, String exception) Creates an instance of Deadline
with all attributes initialized to the given values. |
Method Summary | |
public void | arm(TimedObject to, Date expirationDate, Serializable info) Set a timer for the given timed object as specified by this
deadline for the given date. | public void | arm(TimedObject to, Date baseTime, ExtProcessLocal process, Serializable info) Set a timer for the given timed object as specified by this deadline. | public static void | armDeadlines(TimedObject to, Date baseTime, ExtProcessLocal proc, List dls) Arms the given list of deadlines on the given object, providing
the index in the list as info to be delivered. | public Date | expirationDate(Date baseTime, ExtProcessLocal process) Evaluate the expiration date for the given deadline. | public String | getCondition() Get the value of Condition. | public String | getExceptionName() Get the value of ExceptionName. | public int | getExecution() Get the value of execution. | public int | getState() Get the value of state. | public void | setState(int v) Set the value of state. | public String | toString() Return string representation for debugging purposes. |
ASYNCHR | final public static int ASYNCHR(Code) | | Denotes asynchronous execution of the deadline.
|
STATE_INITIAL | final public static int STATE_INITIAL(Code) | | Deadline is in initial state.
|
STATE_REACHED | final public static int STATE_REACHED(Code) | | Deadline has been reached.
|
SYNCHR | final public static int SYNCHR(Code) | | Denotes synchronous execution of the deadline.
|
Deadline | public Deadline(int execMode, String cond, String exception)(Code) | | Creates an instance of Deadline
with all attributes initialized to the given values.
Parameters: execMode - the execution mode Parameters: cond - the condition Parameters: exception - the exception to be thrown |
arm | public void arm(TimedObject to, Date expirationDate, Serializable info)(Code) | | Set a timer for the given timed object as specified by this
deadline for the given date. This method may be used if the
expiration date has been evaluated already.
Parameters: to - the TimedObject Parameters: expirationDate - the expiration date Parameters: info - the information to be delivered to the timed objecton timeout |
arm | public void arm(TimedObject to, Date baseTime, ExtProcessLocal process, Serializable info)(Code) | | Set a timer for the given timed object as specified by this deadline.
Parameters: to - the TimedObject Parameters: baseTime - the point in time used to resolve relative timespecifications in the condition Parameters: process - used for evaluation of the deadline expiration time Parameters: info - the information to be delivered to the timed objecton timeout |
armDeadlines | public static void armDeadlines(TimedObject to, Date baseTime, ExtProcessLocal proc, List dls)(Code) | | Arms the given list of deadlines on the given object, providing
the index in the list as info to be delivered.
Parameters: to - the TimedObject Parameters: baseTime - the point in time used to resolve relative timespecifications in the condition Parameters: proc - used for evaluation of the deadline expiration time Parameters: dls - the deadlines |
expirationDate | public Date expirationDate(Date baseTime, ExtProcessLocal process) throws ParseException(Code) | | Evaluate the expiration date for the given deadline.
Parameters: baseTime - the point in time used to resolve relative timespecifications in the condition Parameters: process - used for evaluation of the deadline expiration time the expiration date throws: ParseException - if the condition cannot be evaluated |
getCondition | public String getCondition()(Code) | | Get the value of Condition.
value of Condition. |
getExceptionName | public String getExceptionName()(Code) | | Get the value of ExceptionName.
value of ExceptionName. |
getExecution | public int getExecution()(Code) | | Get the value of execution.
value of execution. |
setState | public void setState(int v)(Code) | | Set the value of state.
Parameters: v - value to assign to state. See Also: Deadline.getState |
toString | public String toString()(Code) | | Return string representation for debugging purposes.
a string representation. |
|
|