public class BDIParserHelper
extends jadex.rules.parser.conditions.javagrammar.DefaultParserHelper
Modifier and Type | Class and Description |
---|---|
static class |
BDIParserHelper.SetToArray
Convert belief set or parameter set contents to array.
|
Constructor and Description |
---|
BDIParserHelper(jadex.rules.rulesystem.ICondition condition,
Object mcapa,
Object melement,
jadex.rules.state.IOAVState state)
Create a BDI parser helper.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getReplacementType(jadex.rules.state.OAVObjectType type)
Get the replacement type for an object type in an existential declaration
E.g. when a flyweight should be replaced by the real state type
(IGoal $g instead of goal $g)
|
jadex.rules.rulesystem.rules.Variable |
getVariable(String name)
Get a variable with a given name.
|
boolean |
isPseudoVariable(String name)
Test, if a name refers to a pseudo variable (e.g.
|
public BDIParserHelper(jadex.rules.rulesystem.ICondition condition, Object mcapa, Object melement, jadex.rules.state.IOAVState state)
condition
- The predefined condition.mcapa
- The local scope (mcapability).melement
- The local element, if any (e.g. mgoal or mplan).state
- The state.returnvar
- The return value variable (if return value condition).public jadex.rules.rulesystem.rules.Variable getVariable(String name)
getVariable
in interface jadex.rules.parser.conditions.javagrammar.IParserHelper
getVariable
in class jadex.rules.parser.conditions.javagrammar.DefaultParserHelper
name
- The variable name.public boolean isPseudoVariable(String name)
isPseudoVariable
in interface jadex.rules.parser.conditions.javagrammar.IParserHelper
isPseudoVariable
in class jadex.rules.parser.conditions.javagrammar.DefaultParserHelper
name
- The variable name.public Object[] getReplacementType(jadex.rules.state.OAVObjectType type)
getReplacementType
in interface jadex.rules.parser.conditions.javagrammar.IParserHelper
getReplacementType
in class jadex.rules.parser.conditions.javagrammar.DefaultParserHelper
type
- The type to be replaced.Copyright © 2012. All Rights Reserved.