public class save_agent extends DefaultInternalAction
Internal action: .save_agent
.
Description: stores the beliefs, rules, and plans of the agent into a file.
Parameters:
Examples:
.save_agent("/tmp/x.asl")
: save the agent at file "/tmp/x.asl"..save_agent("/tmp/x.asl", [start, say(hello)])
: includes start
and say(hello)
as initial goals.kill_agent
,
create_agent
,
stopMAS
,
RuntimeServicesInfraTier
,
Serialized FormConstructor and Description |
---|
save_agent() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
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