soot
Interface UnitBox

All Known Implementing Classes:
AbstractUnitBox

public interface UnitBox

A box which can contain units.

See Also:
Unit

Method Summary
 boolean canContainUnit(Unit u)
          Returns true if this box can contain the given Unit.
 Unit getUnit()
          Returns the unit contained within this box.
 void setUnit(Unit u)
          Sets this box to contain the given unit.
 

Method Detail

setUnit

public void setUnit(Unit u)
Sets this box to contain the given unit. Subject to canContainValue() checks.

getUnit

public Unit getUnit()
Returns the unit contained within this box.

canContainUnit

public boolean canContainUnit(Unit u)
Returns true if this box can contain the given Unit.