edu.cmu.cs.coral.icf.plan_based.planners
Class Binding

java.lang.Object
  |
  +--edu.cmu.cs.coral.icf.plan_based.planners.Binding

public class Binding
extends java.lang.Object

Represents a binding of Variable's to PlannerObject's.

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  java.util.AbstractMap bindings
           
 
Constructor Summary
Binding()
          Constructs a new empty Binding.
 
Method Summary
 void bind(Variable var, PlannerObject value)
          Bind a variable to a value.
 PlannerObject getBinding(Variable var)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

bindings

private java.util.AbstractMap bindings
Constructor Detail

Binding

public Binding()
Constructs a new empty Binding.
Since:
ICF 0.0
Method Detail

bind

public void bind(Variable var,
                 PlannerObject value)
Bind a variable to a value. If the variable was previously bound to an old value, the new value replaces the old value.
Parameters:
var - the variable
value - the value for the variable
Since:
ICF 0.0

getBinding

public PlannerObject getBinding(Variable var)