Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CRPrefix |
Constructor and Description |
---|
Include() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkPathAndFixWithSourcePath(java.lang.String f,
java.util.List<java.lang.String> srcpath,
java.lang.String urlPrefix)
fix path of the asl code based on aslSourcePath, also considers code from a jar file (if urlPrefix is not null)
|
Agent |
process(Pred directive,
Agent outerContent,
Agent innerContent)
This method is called to process the directive.
|
void |
setSourcePath(java.util.List<java.lang.String> sp) |
public static final java.lang.String CRPrefix
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)public void setSourcePath(java.util.List<java.lang.String> sp)
public static java.lang.String checkPathAndFixWithSourcePath(java.lang.String f, java.util.List<java.lang.String> srcpath, java.lang.String urlPrefix)