com.rubecula.darwin.domain.environment
Class EcoFactor_Number
java.lang.Object
net.sf.tostring0.AToString
com.rubecula.darwin.domain.helper.Attribute_
com.rubecula.darwin.domain.environment.EcoFactor_
com.rubecula.darwin.domain.environment.EcoFactor_Number
- All Implemented Interfaces:
- Attribute, Censusible, EcoFactor, Quantifiable, Individual, java.lang.Cloneable, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString
- Direct Known Subclasses:
- EcoFactor_Humboldtian, EcoFactor_SootDensity
public abstract class EcoFactor_Number
- extends EcoFactor_
- implements Quantifiable
This abstract implementer of EcoFactor
represents an environmental
factor with a double value.
- Version:
- $Revision: 1.11 $
- Author:
- Robin Hillyard
Fields inherited from class com.rubecula.darwin.domain.environment.EcoFactor_ |
LOG |
Fields inherited from interface net.sf.tostring0.IToString |
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
Constructor Summary |
EcoFactor_Number(java.lang.String identifier,
java.lang.Number value)
Construct an EcoFactor_Number from an identifier string and a value. |
Methods inherited from class net.sf.tostring0.AToString |
toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.tostring0.Identifiable |
getIdentifier |
EcoFactor_Number
public EcoFactor_Number(java.lang.String identifier,
java.lang.Number value)
- Construct an EcoFactor_Number from an identifier string and a value.
- Parameters:
identifier
- value
-
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from class:
EcoFactor_
- Note that if an EcoFactor's value (or identifier) is mutable, i.e. is not
a primitive (or String) and is dynamically changeable, it probably needs
deep-copying. Therefore sub-classes should probably override this method.
- Overrides:
clone
in class EcoFactor_
- Throws:
java.lang.CloneNotSupportedException
- See Also:
EcoFactor_.clone()
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in interface Quantifiable
- Returns:
- the value of this eco factor as a double.
- See Also:
Quantifiable.doubleValue()
getVisualizable
public Visualizable getVisualizable()
- Specified by:
getVisualizable
in interface Individual
- Overrides:
getVisualizable
in class EcoFactor_
- Returns:
- the
Visualizable
object of which this Individual
is a member. - See Also:
EcoFactor_.getVisualizable()
isNew
public boolean isNew()
- Specified by:
isNew
in interface Individual
- Returns:
- true if this individual has not yet been visualized.
- See Also:
Individual.isNew()
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interface Individual
- Returns:
- true if this individual should be visualized.
- See Also:
Individual.isVisible()
update
public boolean update(EcoFactor other)
- Specified by:
update
in interface EcoFactor
- Parameters:
other
-
- Returns:
- true if this
EcoFactor
has been updated
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.