org.mars_sim.msp.simulation.structure.building.function
Class CropConfig

java.lang.Object
  extended by org.mars_sim.msp.simulation.structure.building.function.CropConfig
All Implemented Interfaces:
java.io.Serializable

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

Provides configuration information about greenhouse crops. Uses a DOM document to get the information.

See Also:
Serialized Form

Constructor Summary
CropConfig(org.w3c.dom.Document cropDoc)
          Constructor
 
Method Summary
 java.util.List<CropType> getCropList()
          Gets a list of crop types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropConfig

public CropConfig(org.w3c.dom.Document cropDoc)
Constructor

Parameters:
cropDoc - the crop DOM document.
Method Detail

getCropList

public java.util.List<CropType> getCropList()
                                     throws java.lang.Exception
Gets a list of crop types.

Returns:
list of crop types
Throws:
java.lang.Exception - when crops could not be parsed.