Class DefaultDirective

java.lang.Object
jason.asSyntax.directives.DefaultDirective
All Implemented Interfaces:
Directive
Direct Known Subclasses:
BC, DG, EBDG, FunctionRegister, Include, MG, OMC, RC, SGA, SMC

public abstract class DefaultDirective extends Object implements Directive
  • Constructor Details

    • DefaultDirective

      public DefaultDirective()
  • Method Details

    • isSingleton

      public boolean isSingleton()
      Description copied from interface: Directive
      returns true if the same instance will be used by all agents/parsers in the JVM
      Specified by:
      isSingleton in interface Directive
    • begin

      public void begin(Pred directive, as2j parser)
      Description copied from interface: Directive
      called when the directive is declared
      Specified by:
      begin in interface Directive
    • process

      public Agent process(Pred directive, Agent outerContent, Agent innerContent)
      Description copied from interface: Directive
      This method is called to process the directive.
      Specified by:
      process in interface Directive
      Parameters:
      directive - the directive as defined in the source (e.g. "include("bla.asl")")
      outerContent - the representation of the agent where the directive is being processed (the method should not change this agent state)
      innerContent - the content (plans, beliefs, ...) inside the begin/end directive (as in goal patterns)
      Returns:
      the agent (plans, bels, ...) with the result of the directive.
    • end

      public void end(Pred directive, as2j parser)
      Description copied from interface: Directive
      called when the directive ends
      Specified by:
      end in interface Directive