|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceState
Represents the state of a device (State Pattern). A device usually has a worker thread that starts the execution of states. When a state has finished executing, it returns the next state that the device's worker thread should execute.
| Method Summary | |
|---|---|
void |
abort()
Aborts this state. |
DeviceState |
execute(DeviceStateContext context)
Executes this state, optionally processing a JDF node. |
org.cip4.jdflib.auto.JDFAutoDeviceInfo.EnumDeviceStatus |
getDeviceStatus()
Returns the status of this device during this state. |
java.lang.String |
getDeviceStatusDetails()
Returns a more detailed information about the device's status during this state. |
org.cip4.jdflib.core.JDFElement.EnumNodeStatus |
getNodeStatus()
|
java.lang.String |
getNodeStatusDetails()
|
boolean |
isExecuting()
|
void |
stop()
Stops this state. |
void |
suspend()
Suspends this state. |
| Method Detail |
|---|
DeviceState execute(DeviceStateContext context)
context - the context this state is executing invoid stop()
execute(DeviceStateContext) method of this
state should return with a DeviceState implementation that
represents a stopped state.
void suspend()
execute(DeviceStateContext) method of this state should return
with a DeviceState implementation that represents an idle
state.
void abort()
execute(DeviceStateContext) method of this state should return
with a DeviceState implementation that represents an
aborted state.
boolean isExecuting()
true if this state is executing; false otherwise.org.cip4.jdflib.auto.JDFAutoDeviceInfo.EnumDeviceStatus getDeviceStatus()
java.lang.String getDeviceStatusDetails()
org.cip4.jdflib.core.JDFElement.EnumNodeStatus getNodeStatus()
java.lang.String getNodeStatusDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||