org.mars_sim.msp.core.equipment
Class Bag
java.lang.Object
org.mars_sim.msp.core.Unit
org.mars_sim.msp.core.equipment.Equipment
org.mars_sim.msp.core.equipment.Bag
- All Implemented Interfaces:
- Serializable, Comparable<Unit>, Container, Salvagable
public class Bag
- extends Equipment
- implements Container, Serializable
A bag container for holding solid amount resources.
- See Also:
- Serialized Form
| 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 |
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
Bag
public Bag(Coordinates location)
- Constructor
- Parameters:
location - the location of the bag.
- Throws:
Exception - if error creating bag.
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.