ix.ip2
Class Ip2WorldStateManager
java.lang.Object
ix.ip2.Ip2WorldStateManager
- Direct Known Subclasses:
- IPlanWorldStateManager
public class Ip2WorldStateManager
- extends java.lang.Object
Stores the current world state and certain things about it.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S_WORLD_STATE
public static final Symbol S_WORLD_STATE
S_CONDITION
public static final Symbol S_CONDITION
S_EFFECT
public static final Symbol S_EFFECT
modelManager
protected Ip2ModelManager modelManager
nodeToConditions
protected ContextMultiMap nodeToConditions
nodeToEffects
protected ContextMultiMap nodeToEffects
worldStateMap
protected ContextMap worldStateMap
Ip2WorldStateManager
public Ip2WorldStateManager(Ip2ModelManager modelManager)
reset
public void reset()
clear
public void clear()
makeWorldStateMap
protected ContextMap makeWorldStateMap()
makeNodeConstraintsMap
protected ContextMultiMap makeNodeConstraintsMap()
getNodeConditions
public ix.icore.domain.ListOfConstraint getNodeConditions(PNode node)
getNodeEffects
public java.util.List getNodeEffects(PNode node)
getWorldStateMap
public java.util.Map getWorldStateMap()
getPatternValue
public java.lang.Object getPatternValue(LList pattern)
addConstraint
public void addConstraint(PNode node,
Constraint c)
handleEffects
public java.util.Map handleEffects(PNode node,
java.util.List effects)
handleEffects
public java.util.Map handleEffects(java.util.List effects)
deleteEffect
public void deleteEffect(PatternAssignment pv)
assign
protected void assign(LList p,
java.lang.Object v,
PNode at)