org.mars_sim.msp.simulation.structure
Class Structure

java.lang.Object
  extended by org.mars_sim.msp.simulation.Unit
      extended by org.mars_sim.msp.simulation.structure.Structure
All Implemented Interfaces:
java.io.Serializable, Malfunctionable
Direct Known Subclasses:
Settlement

public abstract class Structure
extends Unit
implements Malfunctionable

The Structure class is an abstract class that represents a man-made structure such as a settlement, a transponder or a supply cache.

See Also:
Serialized Form

Field Summary
protected  MalfunctionManager malfunctionManager
           
 
Fields inherited from class org.mars_sim.msp.simulation.Unit
CONTAINER_UNIT_EVENT, DESCRIPTION_EVENT, LOCATION_EVENT, MASS_EVENT, NAME_EVENT
 
Method Summary
 MalfunctionManager getMalfunctionManager()
          Gets the unit's malfunction manager.
 
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
 
Methods inherited from interface org.mars_sim.msp.simulation.malfunction.Malfunctionable
getAffectedPeople, getInventory, getName
 

Field Detail

malfunctionManager

protected MalfunctionManager malfunctionManager
Method Detail

getMalfunctionManager

public MalfunctionManager getMalfunctionManager()
Gets the unit's malfunction manager.

Specified by:
getMalfunctionManager in interface Malfunctionable
Returns:
malfunction manager