Constructor and Description |
---|
DefaultDirective() |
Modifier and Type | Method and Description |
---|---|
void |
begin(Pred directive,
as2j parser)
called when the directive is declared
|
void |
end(Pred directive,
as2j parser)
called when the directive ends
|
boolean |
isSingleton()
returns true if the same instance will be used by all agents/parsers in the JVM
|
Agent |
process(Pred directive,
Agent outerContent,
Agent innerContent)
This method is called to process the directive.
|
public boolean isSingleton()
Directive
isSingleton
in interface Directive
public void begin(Pred directive, as2j parser)
Directive
public Agent process(Pred directive, Agent outerContent, Agent innerContent)
Directive
process
in interface Directive
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)