|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.irs.jam.PlanRuntimeThreadState
Represents the runtime state of a threaded sequence of constructs This class re-implements the PlanRuntimeState members simply because it's easier.
Field Summary | |
protected Binding |
_binding
|
protected Goal |
_goal
|
protected PlanRuntimeSequenceState |
_substate
|
protected PlanSequenceConstruct |
_thisConstruct
|
protected int |
_threadNumber
|
protected int[] |
_threadState
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PlanRuntimeThreadState(PlanSequenceConstruct be,
Binding b,
Goal thisGoal,
int threadNumber,
int[] threadState)
|
Method Summary | |
protected void |
myResume()
Resume the currently executing thread safely. |
protected void |
myStop()
Stop the currently executing thread safely. |
protected void |
mySuspend()
Suspend the currently executing thread safely. |
void |
run()
|
protected boolean |
stepComplete()
Returns true if this thread has executed the next action/construct
and suspended itself. |
protected boolean |
stopped()
Returns true if this thread has been stopped. |
protected boolean |
suspended()
Returns true if this thread has been suspended. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected PlanSequenceConstruct _thisConstruct
protected PlanRuntimeSequenceState _substate
protected Binding _binding
protected Goal _goal
protected int _threadNumber
protected int[] _threadState
Constructor Detail |
public PlanRuntimeThreadState(PlanSequenceConstruct be, Binding b, Goal thisGoal, int threadNumber, int[] threadState)
Method Detail |
protected void mySuspend()
protected boolean suspended()
true
if this thread has been suspended.mySuspend()
protected void myResume()
protected void myStop()
protected boolean stopped()
true
if this thread has been stopped.myStop()
protected boolean stepComplete()
true
if this thread has executed the next action/construct
and suspended itself. If this thread is still in the middle of execution the
main thread waits until it gets notified.suspended()
public void run()
run
in class java.lang.Thread
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |