Constructor and Description |
---|
FunctionRegister() |
Modifier and Type | Method and Description |
---|---|
static void |
addFunction(java.lang.Class<? extends ArithFunction> c)
add new global function (shared among all agents in the JVM)
|
static java.lang.String |
checkFunctionName(java.lang.String fName) |
static ArithFunction |
getFunction(java.lang.String function,
int arity) |
Agent |
process(Pred directive,
Agent outerContent,
Agent innerContent)
This method is called to process the directive.
|
public static void addFunction(java.lang.Class<? extends ArithFunction> c)
public static java.lang.String checkFunctionName(java.lang.String fName)
public static ArithFunction getFunction(java.lang.String function, int arity)
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)