org.mars_sim.msp.core.equipment
Class LargeBag

java.lang.Object
  extended by org.mars_sim.msp.core.Unit
      extended by org.mars_sim.msp.core.equipment.Equipment
          extended by org.mars_sim.msp.core.equipment.LargeBag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Unit>, Container

public class LargeBag
extends Equipment
implements Container, java.io.Serializable

A large bag container for holding solid amount resources.

See Also:
Serialized Form

Field Summary
static double CAPACITY
           
static double EMPTY_MASS
           
static java.lang.String TYPE
           
 
Fields inherited from class org.mars_sim.msp.core.Unit
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT
 
Constructor Summary
LargeBag(Coordinates location)
          Constructor
 
Method Summary
 Phase getContainingResourcePhase()
          Gets the phase of resources this container can hold.
 
Methods inherited from class org.mars_sim.msp.core.equipment.Equipment
getAffectedPeople
 
Methods inherited from class org.mars_sim.msp.core.Unit
addUnitListener, compareTo, fireUnitUpdate, fireUnitUpdate, getBaseMass, getContainerUnit, getCoordinates, getDescription, getInventory, getMass, getName, getTopContainerUnit, getUnitManager, removeUnitListener, setBaseMass, setContainerUnit, setCoordinates, setDescription, setName, timePassing, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

CAPACITY

public static final double CAPACITY
See Also:
Constant Field Values

EMPTY_MASS

public static final double EMPTY_MASS
See Also:
Constant Field Values
Constructor Detail

LargeBag

public LargeBag(Coordinates location)
         throws java.lang.Exception
Constructor

Parameters:
location - the location of the large bag.
Throws:
java.lang.Exception - if error creating large bag.
Method Detail

getContainingResourcePhase

public Phase getContainingResourcePhase()
Gets the phase of resources this container can hold.

Specified by:
getContainingResourcePhase in interface Container
Returns:
resource phase.