|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.environment.ExPhen_ com.rubecula.darwin.examples.travelingsalesman.ExPhen_TS
public class ExPhen_TS
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.domain.environment.ExPhen_ |
---|
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 | |
---|---|
ExPhen_TS(EcoFactor factor,
java.lang.Object value)
|
Method Summary | |
---|---|
protected boolean |
evaluate(java.lang.Object bestTime)
This method is used to determine whether there should be follow-up action on the processing of this ExPhen object. |
protected EcoFactor |
getRevisedFactor()
Method to get an updated eco factor for this ExPhen object which
will be suitable to substitute in the environment as the outcome of
processing this extended phenotype. |
Route |
getRoute()
|
protected void |
postProcess(EcoFactor factor,
java.lang.Object value)
Method which is called as a post-processor as the final step of ExPhen.applyToEnvironment(Object) . |
Methods inherited from class com.rubecula.darwin.domain.environment.ExPhen_ |
---|
applyToEnvironment, getEcoFactor, getValue |
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExPhen_TS(EcoFactor factor, java.lang.Object value)
factor
- value
- Method Detail |
---|
public Route getRoute()
protected boolean evaluate(java.lang.Object bestTime)
ExPhen_
ExPhen
object. By convention, this
method returns true only if derived value is less than criterion.
It should be overridden by concrete implementers of ExPhen
.
evaluate
in class ExPhen_
bestTime
- the higher this value, the more likely the method will return
true, in general.
ExPhen_.evaluate(Object)
protected EcoFactor getRevisedFactor()
ExPhen_
ExPhen
object which
will be suitable to substitute in the environment as the outcome of
processing this extended phenotype.
This method should be overridden by concrete implementers of
ExPhen
.
getRevisedFactor
in class ExPhen_
Route
which is the value of this
ExPhen
.protected void postProcess(EcoFactor factor, java.lang.Object value)
ExPhen_
ExPhen.applyToEnvironment(Object)
. By default, this method does
nothing.
Concrete implementations of ExPhen
should consider overriding
this method.
postProcess
in class ExPhen_
factor
- the updated eco factorvalue
- the value of this ExPhen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |