Package jason.asSyntax.directives
Class NameSpace
java.lang.Object
jason.asSyntax.directives.NameSpace
- All Implemented Interfaces:
Directive
Implementation of the
namespace directive.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalled when the directive is declaredvoidcalled when the directive endsstatic intbooleanbooleanreturns true if the same instance will be used by all agents/parsers in the JVMThis method is called to process the directive.
-
Field Details
-
LOCAL_PREFIX
- See Also:
-
-
Constructor Details
-
NameSpace
public NameSpace()
-
-
Method Details
-
isSingleton
public boolean isSingleton()Description copied from interface:Directivereturns true if the same instance will be used by all agents/parsers in the JVM- Specified by:
isSingletonin interfaceDirective
-
process
Description copied from interface:DirectiveThis method is called to process the directive.- Specified by:
processin interfaceDirective- 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.
-
begin
Description copied from interface:Directivecalled when the directive is declared -
end
Description copied from interface:Directivecalled when the directive ends -
isLocalNS
-
map
-
getUniqueID
public static int getUniqueID()
-