org.jactr.core.module.procedural.map.template
Class GeneralInstantiationMapTemplate
java.lang.Object
org.jactr.core.module.procedural.map.template.GeneralInstantiationMapTemplate
- All Implemented Interfaces:
- IInstantiationMapTemplate<java.lang.Object>
public class GeneralInstantiationMapTemplate
- extends java.lang.Object
- implements IInstantiationMapTemplate<java.lang.Object>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneralInstantiationMapTemplate
public GeneralInstantiationMapTemplate(java.lang.Object key)
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot in interface IInstantiationMapTemplate<java.lang.Object>
get
public java.util.Set<IProduction> get(java.util.Set<IProduction> container)
- Specified by:
get in interface IInstantiationMapTemplate<java.lang.Object>
getRETEMapping
public java.util.Map<java.lang.String,java.util.Set<IProduction>> getRETEMapping()
- returns a mutable copy of the slotName to production mappings
- Returns:
add
public boolean add(IProduction production,
ICondition condition)
remove
public void remove(IProduction production,
ICondition condition)
add
public boolean add(IProduction production)
- Specified by:
add in interface IInstantiationMapTemplate<java.lang.Object>
- Returns:
- true if this map is accepting the production
remove
public void remove(IProduction production)
- Specified by:
remove in interface IInstantiationMapTemplate<java.lang.Object>
getSize
public int getSize()
- Specified by:
getSize in interface IInstantiationMapTemplate<java.lang.Object>
instantiate
public IInstaniationMap<java.lang.Object> instantiate(java.lang.Object... params)
- Specified by:
instantiate in interface IInstantiationMapTemplate<java.lang.Object>
- Parameters:
params - [root, parent]
- Returns:
- See Also:
IInstantiationMapTemplate.instantiate(java.lang.Object[])