jildt
Class setContext

java.lang.Object
  extended by jason.asSemantics.DefaultInternalAction
      extended by jildt.setContext
All Implemented Interfaces:
jason.asSemantics.InternalAction, java.io.Serializable

public class setContext
extends jason.asSemantics.DefaultInternalAction

Internal action to set the context of a plan to a new learned context. Agents of the classLearner are enabled to redefine the reasons for adopting a plan (Context), whenever a new context has been learned.

Use:
jildt.setContext(P,LC)

Parameters:

Examples:

Author:
Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno
See Also:
Serialized Form

Constructor Summary
setContext()
           
 
Method Summary
 boolean canBeUsedInContext()
           
 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
prepareArguments, suspendIntention
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

setContext

public setContext()
Method Detail

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

canBeUsedInContext

public boolean canBeUsedInContext()
Specified by:
canBeUsedInContext in interface jason.asSemantics.InternalAction
Overrides:
canBeUsedInContext in class jason.asSemantics.DefaultInternalAction