|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mitre.sim.api3.flow.direct.DirectFlow
Constructor Summary | |
DirectFlow()
|
Method Summary | |
void |
delayExecutive(long period)
Suspend the executive execution for the supplied number of millisesconds. |
void |
elaborate(LogicalProcess lp)
Create a new process for the supplied LogicalProcess. |
void |
elaborated(LogicalProcess lp)
Informs the Flow implementation that a new process is created and then suspends that new process. |
void |
pauseExecutive()
Suspend the executive execution until a call to resumeExecutive is made. |
void |
registerExecutive(Executive e)
Create the linkage between the Flow implementation and the Executive inplementation it supports. |
void |
resumeExecutive()
Resume the executive execution that was suspended by a call to pauseExecutive . |
void |
setDebug(boolean b)
|
void |
setLogger(java.util.logging.Logger l)
Provides a logger that the executive uses to log diagnostic and other error messages. |
void |
setProperties(java.util.Properties p)
Provide the current propertes to the Flow implementation. |
void |
terminateLP(LogicalProcess lp)
Called by the Executive process. |
void |
terminateSelf(LogicalProcess lp)
Called by the LogicalProcess process. |
java.lang.String |
version()
Returns the version of the class implementing interface Flow. |
void |
yieldToExecutive(LogicalProcess lp)
Pass control from the specified LogicalProcess to the Executive. |
void |
yieldToLP(LogicalProcess lp)
Pass control from the Executive to the specified LogicalProcess. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirectFlow()
Method Detail |
public java.lang.String version()
Flow
version
in interface Flow
public void registerExecutive(Executive e)
Flow
Call by the executive process.
Precondition: Executive has control
Postcondition: Executive has control
registerExecutive
in interface Flow
e
- public void yieldToLP(LogicalProcess lp)
Flow
Called by the Executive process.
Precondition: Executive has control
Postcondition: lp has control
yieldToLP
in interface Flow
lp
- The LogicalProcess choosen for activation bt the Executive.public void yieldToExecutive(LogicalProcess lp)
Flow
Called by the LogicalProcess process.
Precondition: lp has control
Postcondition: Executive has control
yieldToExecutive
in interface Flow
lp
- LogicalProcess wishing to yield control to the Executive.public void elaborate(LogicalProcess lp)
Flow
Call by the executive process.
Precondition: Executive has control and lp process does not exist
Postcondition: Executive has control and lp process exist and lp process is suspended
elaborate
in interface Flow
lp
- public void elaborated(LogicalProcess lp)
Flow
Called by the LogicalProcess process.
Precondition: lp has control
Postcondition: Executive has control
elaborated
in interface Flow
lp
- LogicalProcess that has finished its elaboration process and is
ready to be suspended.public void terminateSelf(LogicalProcess lp)
Flow
Precondition: lp has control
Postcondition: lp process does not exist and Executive has control
terminateSelf
in interface Flow
lp
- LogicalProcess to the destroyed.public void terminateLP(LogicalProcess lp)
Flow
Precondition: Executive has control
Postcondition: lp process does not exist and Executive has control
terminateLP
in interface Flow
lp
- LogicalProcess to the destroyed.public void delayExecutive(long period)
Flow
Called by the Executive process.
delayExecutive
in interface Flow
period
- Number of milliseconds to pause the Executive.public void pauseExecutive()
Flow
resumeExecutive
is made.
This method has no effect if the Executive is already paused.
Called by a process outside of the Executive.
pauseExecutive
in interface Flow
public void resumeExecutive()
Flow
pauseExecutive
.
This method has no effect if the Executive is already running.
Called by a process outside of the Executive.
resumeExecutive
in interface Flow
public void setDebug(boolean b)
public void setProperties(java.util.Properties p)
Flow
setProperties
in interface Flow
p
- The set of properties.public void setLogger(java.util.logging.Logger l)
Flow
setLogger
in interface Flow
l
- The logger for the executive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |