jildt
Class getContext

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

public class getContext
extends jason.asSemantics.DefaultInternalAction

Internal action to get the current context of a plan. When a plan has an empty context, a "true" atom is returned.

Use:
jildt.getCurrentCtxt(P,C)

Parameters:

Examples: Given the next plan: @put_label +!put(X,Y) : clear(X) & clear(Y) <- move(X,Y).

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

Constructor Summary
getContext()
           
 
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
 

Constructor Detail

getContext

public getContext()
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