public class getArg
extends jason.asSemantics.DefaultInternalAction
Modifier and Type | Field and Description |
---|---|
protected static int |
INDEX_ARG_INDEX
The index of the argument's index.
|
protected static int |
RESULT_ARG_INDEX
The index of Result variable.
|
protected static int |
TUPLE_ARG_INDEX
The index of the tuple.
|
Constructor and Description |
---|
getArg() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args) |
int |
getMaxArgs()
The maximum number of arguments is 3.
|
int |
getMinArgs()
The minimum number of arguments is 3.
|
protected void |
log(java.lang.String msg)
Method to log a message.
|
protected static final int TUPLE_ARG_INDEX
protected static final int INDEX_ARG_INDEX
protected static final int RESULT_ARG_INDEX
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 getMinArgs()
getMinArgs
in class jason.asSemantics.DefaultInternalAction
public final int getMaxArgs()
getMaxArgs
in class jason.asSemantics.DefaultInternalAction
protected final void log(java.lang.String msg)
msg
- The message to log.