Modifier and type | Property and description |
---|---|
org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> | guard
Replies the guard of this task. |
java.lang.Object | initiator
Replies the object that has initiated the execution of this task. |
java.lang.String | name
Replies the name of this task. |
org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Param> | procedure
Replies the procedure that is associated to this task. |
Modifier and type | Field and description |
---|---|
public static val org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> | FALSE_GUARD
A guard that is always false. |
public static val org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> | TRUE_GUARD
A guard that is always true. |
Constructor and description |
---|
new(String,[Object])
Construct an AgentTask with the given initiator. |
Modifier and type | Action and description |
---|---|
org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result> | getGuard
Replies the guard of this task. |
java.lang.Object | getInitiator
Replies the object that has initiated the execution of this task. |
java.lang.String | getName
Replies the name of this task. |
org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Param> | getProcedure
Replies the procedure that is associated to this task. |
AgentTask | ifTrue(Function1<Param,Result>)
Change the guard to the given predicate. |
void | setGuard(Function1<Param,Result>)
Change the guard of this task. |
void | setProcedure(Procedure1<Param>)
Change the procedure associated to this task. |
void | setTaskName(String)
Change the name of this task. |
java.lang.String | toString |
AgentTask | unless(Function1<Param,Result>)
Change the guard of this that with the negation of the given predicate. |
var guard : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
This property is an alias for the action: getGuard
val initiator : java.lang.Object
null
, the agent is assumed to be the initiator.
This property is an alias for the action: getInitiator
val name : java.lang.String
This property is an alias for the action: getName
var procedure : org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Param>
This property is an alias for the action: getProcedure
public static val FALSE_GUARD : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
public static val TRUE_GUARD : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
new(String,[Object])
def getGuard : org.eclipse.xtext.xbase.lib.Functions.Function1<Param,Result>
def getInitiator : java.lang.Object
null
, the agent is assumed to be the initiator.
def getName : java.lang.String
def getProcedure : org.eclipse.xtext.xbase.lib.Procedures.Procedure1<Param>
def ifTrue(Function1<Param,Result>) : AgentTask
def setGuard(Function1<Param,Result>)
def setProcedure(Procedure1<Param>)
def setTaskName(String)
def toString : java.lang.String
def unless(Function1<Param,Result>) : AgentTask