com.rubecula.darwin.foundation
Interface Valuable

All Superinterfaces:
net.sf.tostring0.Identifiable
All Known Subinterfaces:
Best<T>, ComparableValue, Organism
All Known Implementing Classes:
Best_, Best_Organism, ComparableValue_, MutableValuable, Organism_, Organism_Asexual, Organism_Sexual, Organism_TS

public interface Valuable
extends net.sf.tostring0.Identifiable

Interface to define the properties of an object which has an intrinsic value.

Author:
Robin Hillyard

Method Summary
 java.lang.Number getValue()
          Get the value which we can use to compare this object with other Valuable objects, for example in conjunction with Best interface.
 
Methods inherited from interface net.sf.tostring0.Identifiable
getIdentifier
 

Method Detail

getValue

java.lang.Number getValue()
                          throws ValueException
Get the value which we can use to compare this object with other Valuable objects, for example in conjunction with Best interface. NOTE: that this method gets called a lot. Therefore, if invoking it requires a significant amount of work, the Valuable implementation should consider caching the value.

Returns:
the value for this object which will be used to determine which is the "best".
Throws:
ValueException


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.