jildt
Class getCurrentBels
java.lang.Object
jason.asSemantics.DefaultInternalAction
jildt.getCurrentBels
- All Implemented Interfaces:
- jason.asSemantics.InternalAction, java.io.Serializable
public class getCurrentBels
- extends jason.asSemantics.DefaultInternalAction
Internal action to get the current beliefs of an agent to form training examples. Rules, literals starting
with jildt prefix, and the ones defined in the literal jildt_settings(exclude,[b0,...,
bn]) are excluded from the result.
Use:
jildt.getCurrentBels(Bs)
Parameters:
- +/- current beliefs (List): the beliefs of the agent when the internal action is executed.
Examples: Given an environment like the shown in the image below:
-
jildt.getCurrentBels(Bs)
: Bs unifies with the list [clear(table), on(z,table), on(b,a),
on(c,table), on(a,table)].
-
jildt.getCurrentBels([on(a,table),on(z,c),on(b,a),on(c,table),clear(table)])
: Returns false.
-
jildt.getCurrentBels([clear(table), on(a,table),on(z,table),on(b,a),on(c,table)])
: Returns true.
-
jildt.getCurrentBels(Bs,X)
: Throws an exception due to only one argument is needed for executing
the internal action.
-
jildt.getCurrentBels(a)
: Throws an exception because the argument must be either an unbounded
variable or a list.
- Author:
- Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args)
|
int |
getMaxArgs()
|
int |
getMinArgs()
|
Methods inherited from class jason.asSemantics.DefaultInternalAction |
canBeUsedInContext, prepareArguments, suspendIntention |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCurrentBels
public getCurrentBels()
execute
public java.lang.Object execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args)
throws java.lang.Exception
- Specified by:
execute
in interface jason.asSemantics.InternalAction
- Overrides:
execute
in class jason.asSemantics.DefaultInternalAction
- Throws:
java.lang.Exception
getMinArgs
public int getMinArgs()
- Overrides:
getMinArgs
in class jason.asSemantics.DefaultInternalAction
getMaxArgs
public int getMaxArgs()
- Overrides:
getMaxArgs
in class jason.asSemantics.DefaultInternalAction