jildt
Class inductionLevel
java.lang.Object
jason.asSemantics.DefaultInternalAction
jildt.inductionLevel
- All Implemented Interfaces:
- jason.asSemantics.InternalAction, java.io.Serializable
public class inductionLevel
- extends jason.asSemantics.DefaultInternalAction
Internal action for getting the induction mechanism. Induction of learning may be done in a java
level, or in an agentSpeak level. This option is configurable after a believe jildt_settings
(inductionLevel, Level), where Level is an atom in the set {java, agentSpeak}. By default, learner
agents will execute learning by java mechanism if the previous configuration is not defined.
Use:
jildt.inductionLevel(Level)
Parameters:
- +/- level (Atom): the level defined for executing induction of learning.
Examples: Assuming the agent believes: jildt_settings(inductionLevel, agentSpeak).
-
jildt.inductionLevel(Level)
: Level unifies with agentSpeak.
-
jildt.inductionLevel(agentSpeak)
: returns true.
-
jildt.inductionLevel(java)
: returns false. If agent stops believing jildt_settings
(inductionLevel, agentSpeak) then returns true.
-
jildt.inductionLevel(Level, X)
: Throws an exception because only one
argument is needed for executing the internal action.
-
jildt.inductionLevel(prolog)
: Throws an exception because the argument must be either
an atom ∈ {java, agentSpeak} or an unbounded variable.
- 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 |
inductionLevel
public inductionLevel()
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