com.rubecula.darwin.core
Class EcoFactor_Default

java.lang.Object
  extended by com.rubecula.util.AuditableObject
      extended by com.rubecula.darwin.core.Attribute_Abstract
          extended by com.rubecula.darwin.core.EcoFactor_Abstract
              extended by com.rubecula.darwin.core.EcoFactor_Default
All Implemented Interfaces:
Attribute, EcoFactor, Auditable, Identifiable, Cloneable

public final class EcoFactor_Default
extends EcoFactor_Abstract
implements EcoFactor

This default implementer of EcoFactor represents an environmental factor with a double value.

Version:
$Revision: 1.1 $
Author:
Robin Hillyard

Field Summary
 
Fields inherited from interface com.rubecula.darwin.core.EcoFactor
$IdealPopulation
 
Constructor Summary
EcoFactor_Default(double value)
          Construct an EcoFactor_Default with the identifier "default ecofactor" and with a specific value.
EcoFactor_Default(String identifier, double value)
          Construct an EcoFactor_Default from an identifier string and a value.
 
Method Summary
 double doubleValue()
           
 
Methods inherited from class com.rubecula.darwin.core.EcoFactor_Abstract
toString
 
Methods inherited from class com.rubecula.darwin.core.Attribute_Abstract
audit, getAttribute, getIdentifier, getValue, setValue
 
Methods inherited from class com.rubecula.util.AuditableObject
audit, audit, audit, clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rubecula.darwin.core.Attribute
getAttribute, getValue, setValue
 
Methods inherited from interface com.rubecula.util.Identifiable
getIdentifier
 

Constructor Detail

EcoFactor_Default

public EcoFactor_Default(String identifier,
                         double value)
Construct an EcoFactor_Default from an identifier string and a value.

Parameters:
identifier -
value -

EcoFactor_Default

public EcoFactor_Default(double value)
Construct an EcoFactor_Default with the identifier "default ecofactor" and with a specific value.

Parameters:
value -
Method Detail

doubleValue

public double doubleValue()
Specified by:
doubleValue in interface EcoFactor
Returns:
the value of this EcoFactor, assuming that it has a value that can be rendered as a double