public class my_name extends DefaultInternalAction
Internal action: .my_name
.
Description: gets the agent's unique identification in the multi-agent system. This identification is given by the runtime infrastructure of the system (centralised, saci, jade, ...).
Parameter:
Example:
.my_name(N)
: unifies N
with the
agent's name.send
,
broadcast
,
all_names
,
Serialized FormConstructor and Description |
---|
my_name() |
Modifier and Type | Method and Description |
---|---|
static InternalAction |
create() |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
public static InternalAction create()
public int getMinArgs()
getMinArgs
in class DefaultInternalAction
public int getMaxArgs()
getMaxArgs
in class DefaultInternalAction
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
execute
in class DefaultInternalAction
java.lang.Exception