org.mars_sim.msp.core.equipment
Class Barrel

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.Barrel
All Implemented Interfaces:
Serializable, Comparable<Unit>, Container, Salvagable

public class Barrel
extends Equipment
implements Container, Serializable

A barrel container for holding liquid amount resources.

See Also:
Serialized Form

Field Summary
static double CAPACITY
           
static double EMPTY_MASS
           
static 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
Barrel(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
destroy, getAffectedPeople, getSalvageInfo, isSalvaged, startSalvage
 
Methods inherited from class org.mars_sim.msp.core.Unit
addUnitListener, compareTo, fireUnitUpdate, fireUnitUpdate, getBaseMass, getContainerUnit, getCoordinates, getDescription, getInventory, getMass, getName, getTopContainerUnit, getUnitManager, hasUnitListener, 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 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

Barrel

public Barrel(Coordinates location)
Constructor

Parameters:
location - the location of the barrel.
Throws:
Exception - if error creating barrel.
Method Detail

getContainingResourcePhase

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

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


Copyright © 2009-2013. All Rights Reserved.