public class BeliefbaseWrapper extends java.lang.Object implements IMapAccess, IBeliefbase
Modifier and Type | Field and Description |
---|---|
protected IBeliefbase |
beliefbase
The flat belief base.
|
protected java.lang.String[] |
names
The local belief names (cached on first access).
|
protected java.lang.String |
prefix
The full capability prefix.
|
protected java.lang.String[] |
setnames
The local belief set names (cached on first access).
|
Constructor and Description |
---|
BeliefbaseWrapper(IBeliefbase beliefbase,
java.lang.String prefix)
Create a belief base wrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsBelief(java.lang.String name)
Returns
|
boolean |
containsBeliefSet(java.lang.String name)
Returns
|
java.lang.Object |
get(java.lang.Object name)
Get an object from the map.
|
IBelief |
getBelief(java.lang.String name)
Get a belief for a name.
|
java.lang.String[] |
getBeliefNames()
Returns the names of all beliefs.
|
IBeliefSet |
getBeliefSet(java.lang.String name)
Get a belief set for a name.
|
java.lang.String[] |
getBeliefSetNames()
Returns the names of all belief sets.
|
MElement |
getModelElement()
Get the model element.
|
protected IBeliefbase beliefbase
protected java.lang.String prefix
protected java.lang.String[] names
protected java.lang.String[] setnames
public BeliefbaseWrapper(IBeliefbase beliefbase, java.lang.String prefix)
public java.lang.Object get(java.lang.Object name)
get
in interface IMapAccess
name
- The namepublic MElement getModelElement()
getModelElement
in interface IElement
public IBelief getBelief(java.lang.String name)
getBelief
in interface IBeliefbase
name
- The belief name.public IBeliefSet getBeliefSet(java.lang.String name)
getBeliefSet
in interface IBeliefbase
name
- The belief set name.public boolean containsBelief(java.lang.String name)
containsBelief
in interface IBeliefbase
name
- the name of a belief.true
if contained, false
is not contained, or
the specified name refer to a belief set.containsBeliefSet(java.lang.String)
public boolean containsBeliefSet(java.lang.String name)
containsBeliefSet
in interface IBeliefbase
name
- the name of a belief set.true
if contained, false
is not contained, or
the specified name refer to a belief.containsBelief(java.lang.String)
public java.lang.String[] getBeliefNames()
getBeliefNames
in interface IBeliefbase
public java.lang.String[] getBeliefSetNames()
getBeliefSetNames
in interface IBeliefbase