public abstract class Action extends Object implements Comparable<Action>
Modifier and Type | Field and Description |
---|---|
private static ActionIO |
defaultIO |
private ActionIO |
IO |
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Action arg0) |
boolean |
equals(Object obj) |
abstract Status |
execute(Object... paramValues)
Perform the action.
|
static ActionIO |
getDefaultIO() |
ActionIO |
getIO() |
abstract String |
getName()
The name of the action should generally be an entry in the ontology subsumed
by the action type.
|
static void |
setDefaultIO(ActionIO defaultIO) |
void |
setIO(ActionIO iO) |
String |
toString()
The contract of this method is that it will return a String which can
be used as the parameter to
#fromStringLocal(String) to create an
object identical to this one. |
public ActionIO getIO()
public void setIO(ActionIO iO)
iO
- the iO to setpublic static ActionIO getDefaultIO()
public static void setDefaultIO(ActionIO defaultIO)
defaultIO
- the defaultIO to setpublic abstract Status execute(Object... paramValues) throws IllegalOperationException, ClassCastException
Status
; the value part of the
status should be -ve to indicate failure, 0 to indicate success, ad +ve to
indicate a warning.IllegalOperationException
ClassCastException
public abstract String getName()
public int compareTo(Action arg0)
compareTo
in interface Comparable<Action>