|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.platform.tmote.Action
public class Action
Tmote implementation of the Action interface.
Field Summary | |
---|---|
protected byte |
actionAuto
|
protected byte |
actionId
|
protected byte |
actionState
|
protected Isolate |
isolateOwner
|
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Constructor Summary | |
---|---|
protected |
Action()
|
Method Summary | |
---|---|
Action |
block()
Block an indefinite amount of time until this Action is no longer pending. |
Action |
block(int timeoutMilli)
Block a defined amount of time or until the Action is no longer pending. |
Action |
cancel()
Cancel this Action if PENDING. |
byte |
getActionState()
Get the current state of this Action: IDLE, PENDING, DONE, or ERROR. |
protected void |
initAction(byte id)
|
boolean |
isDone()
Return true is this Action is DONE. |
static int |
lookup(String action_name)
|
Action |
submit()
Submit this Action for processing by the action engine. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte actionId
protected byte actionState
protected byte actionAuto
protected Isolate isolateOwner
Constructor Detail |
---|
protected Action()
Method Detail |
---|
protected void initAction(byte id)
public Action submit()
Action
submit
in interface Action
public Action block() throws ActionException
Action
block
in interface Action
ActionException
public Action block(int timeoutMilli) throws ActionException
Action
block
in interface Action
timeoutMilli
- the maximum number of milliseconds to block
ActionException
public Action cancel()
Action
cancel
in interface Action
public byte getActionState()
Action
getActionState
in interface Action
public boolean isDone() throws ActionException
Action
isDone
in interface Action
ActionException
public static int lookup(String action_name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |