|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mitre.sim.api3.WaitResult
Structure returned by Entity
methods
waitForTime
,
waitForAction
, and
waitForActionOrTrigger
giving the circumstainces of the return.
Copyright © 2003-2004 The MITRE Corporation
Constructor Summary | |
WaitResult(boolean actionOccurred,
boolean triggerOccurred,
Trigger trigger,
double returnTime,
LogicalProcess lp)
|
|
WaitResult(double returnTime,
java.lang.String comment,
LogicalProcess lp)
Used only for infrastructure development |
Method Summary | |
boolean |
actionOccurred()
The wait method returned because an action method invocation was received. |
boolean |
eventOccurred()
The wait method returned because either an action method invocation was received or a trigger became true. |
java.lang.String |
getComment()
Used only for infrastructure development |
LogicalProcess |
getLP()
Used only for infrastructure development |
double |
returnTime()
Simulation time when the wait method returned. |
java.lang.String |
toString()
|
Trigger |
trigger()
If the wait method returned because a trigger became true, that
trigger is return here. |
boolean |
triggerOccurred()
The wait method returned because a trigger became true. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WaitResult(boolean actionOccurred, boolean triggerOccurred, Trigger trigger, double returnTime, LogicalProcess lp)
public WaitResult(double returnTime, java.lang.String comment, LogicalProcess lp)
Method Detail |
public boolean actionOccurred()
true
Wait method returned when an
action method
invocation was received.false
Wait method did not return because an
action method
invocation was received.public boolean triggerOccurred()
trigger
became true.
true
Wait method returned when an
trigger
became true.false
Wait method did not return because a
trigger
became true.public boolean eventOccurred()
trigger
became true.
This method is equivalent to:
actionOccurred() || triggerOccurred().
actionOccurred
or
triggerOccurred
.public Trigger trigger()
trigger
became true, that
trigger
is return here.
If the wait method returned for other reasons, this method returns
null
.
trigger
that trigger the wait method return ornull
if a trigger
did not trigger the return.public double returnTime()
public java.lang.String toString()
WaitResult
object.public LogicalProcess getLP()
public java.lang.String getComment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |