org.mars_sim.msp.simulation.equipment
Class GasCanister

java.lang.Object
  extended by org.mars_sim.msp.simulation.Unit
      extended by org.mars_sim.msp.simulation.equipment.Equipment
          extended by org.mars_sim.msp.simulation.equipment.GasCanister
All Implemented Interfaces:
java.io.Serializable, Container

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

A canister container for holding gas amount resources.

See Also:
Serialized Form

Field Summary
static java.lang.String TYPE
           
 
Fields inherited from class org.mars_sim.msp.simulation.Unit
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT
 
Constructor Summary
GasCanister(Coordinates location, double capacity)
          Constructor
 
Method Summary
 Phase getContainingResourcePhase()
          Gets the phase of resources this container can hold.
 
Methods inherited from class org.mars_sim.msp.simulation.equipment.Equipment
getAffectedPeople
 
Methods inherited from class org.mars_sim.msp.simulation.Unit
addUnitListener, 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
Constructor Detail

GasCanister

public GasCanister(Coordinates location,
                   double capacity)
            throws java.lang.Exception
Constructor

Parameters:
location - the location of the gas canister.
capacity - the gas capacity of the canister (kg).
Throws:
java.lang.Exception - if error creating gas canister.
Method Detail

getContainingResourcePhase

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

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