public class TAMECommand
extends java.lang.Object
TAction
.Modifier and Type | Method and Description |
---|---|
static TAMECommand |
create(TAction action)
Creates a general action item to execute later.
|
static TAMECommand |
create(TAction action,
TObject object)
Creates a transitive action item to execute later.
|
static TAMECommand |
create(TAction action,
TObject object1,
TObject object2)
Creates a ditransitive action item to execute later.
|
static TAMECommand |
create(TAction action,
java.lang.String target)
Creates a modal or open action item to execute later.
|
TAction |
getAction()
Gets the action to call.
|
TObject |
getObject1()
Gets the first object.
|
TObject |
getObject2()
Gets the second object.
|
java.lang.String |
getTarget()
Gets the open target.
|
java.lang.String |
toString() |
public static TAMECommand create(TAction action)
action
- the action to call.java.lang.IllegalArgumentException
- if the action provided is not a general one.public static TAMECommand create(TAction action, java.lang.String target)
action
- the action to call.target
- the open target.java.lang.IllegalArgumentException
- if the action provided is not a modal or open one.public static TAMECommand create(TAction action, TObject object)
action
- the action to call.object
- the first object.java.lang.IllegalArgumentException
- if the action provided is not a transitive or ditransitive one.public static TAMECommand create(TAction action, TObject object1, TObject object2)
action
- the action to call.object1
- the first object.object2
- the second object.java.lang.IllegalArgumentException
- if the action provided is not a ditransitive one.public TAction getAction()
public java.lang.String getTarget()
public TObject getObject1()
public TObject getObject2()
public java.lang.String toString()
toString
in class java.lang.Object