org.mars_sim.msp.core.structure.construction
Class ConstructionManager

java.lang.Object
  extended by org.mars_sim.msp.core.structure.construction.ConstructionManager
All Implemented Interfaces:
java.io.Serializable

public class ConstructionManager
extends java.lang.Object
implements java.io.Serializable

Manager for construction sites at a settlement.

See Also:
Serialized Form

Field Summary
static java.lang.String FINISH_BUILDING_EVENT
           
static java.lang.String FINISH_CONSTRUCTION_STAGE_EVENT
           
static java.lang.String START_CONSTRUCTION_SITE_EVENT
           
static java.lang.String START_CONSTRUCTION_STAGE_EVENT
           
 
Constructor Summary
ConstructionManager(Settlement settlement)
          Constructor
 
Method Summary
 ConstructionSite createNewConstructionSite()
          Creates a new construction site.
 java.util.List<ConstructedBuildingLogEntry> getConstructedBuildingLog()
          Gets a log of all constructed buildings at the settlement.
 java.util.List<ConstructionSite> getConstructionSites()
          Gets all construction sites at the settlement.
 java.util.List<ConstructionSite> getConstructionSitesNeedingMission()
          Gets construction sites needing a construction mission.
 ConstructionValues getConstructionValues()
          Gets the construction values.
 void removeConstructionSite(ConstructionSite site)
          Removes a construction site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_CONSTRUCTION_SITE_EVENT

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

START_CONSTRUCTION_STAGE_EVENT

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

FINISH_CONSTRUCTION_STAGE_EVENT

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

FINISH_BUILDING_EVENT

public static final java.lang.String FINISH_BUILDING_EVENT
See Also:
Constant Field Values
Constructor Detail

ConstructionManager

public ConstructionManager(Settlement settlement)
Constructor

Parameters:
settlement - the settlement.
Method Detail

getConstructionSites

public java.util.List<ConstructionSite> getConstructionSites()
Gets all construction sites at the settlement.

Returns:
list of construction sites.

getConstructionSitesNeedingMission

public java.util.List<ConstructionSite> getConstructionSitesNeedingMission()
Gets construction sites needing a construction mission.

Returns:
list of construction sites.

createNewConstructionSite

public ConstructionSite createNewConstructionSite()
Creates a new construction site.

Returns:
newly created construction site.

removeConstructionSite

public void removeConstructionSite(ConstructionSite site)
                            throws java.lang.Exception
Removes a construction site.

Parameters:
site - the construction site to remove.
Throws:
java.lang.Exception - if site doesn't exist.

getConstructionValues

public ConstructionValues getConstructionValues()
Gets the construction values.

Returns:
construction values.

getConstructedBuildingLog

public java.util.List<ConstructedBuildingLogEntry> getConstructedBuildingLog()
Gets a log of all constructed buildings at the settlement.

Returns:
list of ConstructedBuildingLogEntry