public class nop
extends jason.asSemantics.DefaultInternalAction
Modifier and Type | Field and Description |
---|---|
protected static int |
RESULT_ARG_INDEX
The index of Result variable for a TuCSoN internal action.
|
protected static int |
TUPLE_ARG_INDEX
The index of Tuple for a TuCSoN internal action.
|
NETID_ARG_INDEX, PORTNO_ARG_INDEX, TCNAME_ARG_INDEX, TUCSON_INTERNAL_ACTION_MIN_ARGS
Constructor and Description |
---|
nop() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(jason.asSemantics.TransitionSystem ts,
jason.asSyntax.Term[] args)
Method to configure everything that is needed to execute TuCSoN internal
actions.
|
java.lang.Object |
execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args) |
protected alice.tucson.asynchSupport.actions.AbstractTucsonOrdinaryAction |
generateTucsonOperation(jason.asSyntax.Term[] args,
alice.tucson.api.TucsonTupleCentreId tcid)
Method to generate the TuCSoN operation to execute.
|
int |
getMaxArgs() |
int |
getMinArgs() |
protected int |
getNumberOfArguments()
Method to get the number of arguments needed for a specific TuCSoN
internal action.
|
protected int |
getResultArgumentIndex()
Method to get the index of Result variable for a TuCSoN internal action.
|
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
protected static final int RESULT_ARG_INDEX
protected static final int TUPLE_ARG_INDEX
protected final alice.tucson.asynchSupport.actions.AbstractTucsonOrdinaryAction generateTucsonOperation(jason.asSyntax.Term[] args, alice.tucson.api.TucsonTupleCentreId tcid) throws alice.logictuple.exceptions.InvalidLogicTupleException
args
- The arguments of the internal action.tcid
- The Tuple Centre ID.alice.logictuple.exceptions.InvalidLogicTupleException
- Invalid Logic Tuple Exception.protected final int getNumberOfArguments()
protected final int getResultArgumentIndex()
public final java.lang.Object execute(jason.asSemantics.TransitionSystem ts, jason.asSemantics.Unifier un, jason.asSyntax.Term[] args) throws java.lang.Exception
execute
in interface jason.asSemantics.InternalAction
execute
in class jason.asSemantics.DefaultInternalAction
java.lang.Exception
public final int getMaxArgs()
getMaxArgs
in class jason.asSemantics.DefaultInternalAction
public final int getMinArgs()
getMinArgs
in class jason.asSemantics.DefaultInternalAction
protected final void configure(jason.asSemantics.TransitionSystem ts, jason.asSyntax.Term[] args) throws jason.JasonException
ts
- The transition system.args
- The TuCSoN internal action arguments.jason.JasonException
- Jason exception.