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

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

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

The CropType class is a type of crop.

See Also:
Serialized Form

Constructor Summary
CropType(java.lang.String name, double growingTime)
          Constructor
 
Method Summary
 double getGrowingTime()
          Gets the length of the crop type's growing phase.
 java.lang.String getName()
          Gets the crop type's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropType

public CropType(java.lang.String name,
                double growingTime)
Constructor

Parameters:
name - - The name of the type of crop.
growingTime - - Length of growing phase for crop. (millisols)
Method Detail

getName

public java.lang.String getName()
Gets the crop type's name.

Returns:
name

getGrowingTime

public double getGrowingTime()
Gets the length of the crop type's growing phase.

Returns:
crop type's growing time in millisols.