|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.isim.TimedEvent
public class TimedEvent
Field Summary | |
---|---|
static int |
COMPLETED
|
protected Activity |
event
the agenda entry for the activity of this event |
static int |
EXECUTING
|
static int |
FAILED
|
protected int |
status
the status of this event |
static java.lang.String[] |
statusString
|
protected java.lang.String |
thread
the thread to which this event belongs |
protected long |
timeInMillis
the time after the start of the simulation when this event should occur (given as a duration) |
static int |
WAITING
the stutus values for events |
Method Summary | |
---|---|
Activity |
getActivity()
|
long |
getRelativeTime()
|
int |
getStatus()
|
java.lang.String |
getThread()
|
static TimedEvent |
getTimedEvent(LList list)
This factory method must be used to create new timed events. |
protected void |
setRelativeTime(long delay)
|
protected void |
setStatus(int status)
|
protected void |
setThread(java.lang.String thread)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int WAITING
public static final int EXECUTING
public static final int COMPLETED
public static final int FAILED
public static final java.lang.String[] statusString
protected long timeInMillis
protected Activity event
protected java.lang.String thread
protected int status
Method Detail |
---|
public long getRelativeTime()
protected void setRelativeTime(long delay)
public Activity getActivity()
protected void setThread(java.lang.String thread)
public java.lang.String getThread()
protected void setStatus(int status)
public int getStatus()
public java.lang.String toString()
toString
in class java.lang.Object
public static TimedEvent getTimedEvent(LList list) throws java.text.ParseException
This factory method must be used to create new timed events. It attempts to parse the the given LList into a timed event assuming the following syntax:
TimedEvent ::= ( atTimeSy ISO-duration Activity )
A ParseException will be thrown if any of the components do not correspond to the expected syntax.
list
- the LList representing the timed event
java.text.ParseException
- if the syntax in incorrect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |