|
||||||||||
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.Environment_ com.rubecula.darwin.domain.environment.Environment_Susceptible com.rubecula.darwin.examples.travelingsalesman.Environment_TS
public class Environment_TS
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.domain.environment.Environment_ |
---|
idealPopulation, LOG |
Fields inherited from interface com.rubecula.darwin.domain.helper.Environment |
---|
IDEAL_POPULATION_DEFAULT, S_ID_UNIDENTIFIED |
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 | |
---|---|
Environment_TS(Realm realm)
|
Method Summary | |
---|---|
Route |
formRoute()
|
double |
getTravelTime()
|
void |
init()
Initialize this environment programatically (normally, initialization is done in the configuration). |
protected void |
logUpdate()
This implementation forms the route from this Environment_TS and
logs its details. |
boolean |
update(java.lang.String factorKey,
java.lang.Object source)
Find and set the eco factor to have the factor value, then, if successful, invoke Environment_.fireEnvironmentChanged() . |
protected boolean |
updateFromSource(java.lang.Object source)
This implementation updates the EcoFactor_Clients factor of the environment from the client map (which is what source actually is). |
Methods inherited from class com.rubecula.darwin.domain.environment.Environment_Susceptible |
---|
updateFromSource |
Methods inherited from class com.rubecula.darwin.domain.environment.Environment_ |
---|
addFactor, addListener, censusMe, clone, environmentChanged, equals, factorKeys, fireEnvironmentChanged, getCensusibleChildren, getCount, getEcoFactorValue, getEcoSystem, getFactor, getIdealPopulation, getIdentifier, getIndividuals, getListeners, getRealm, getSignature, getSink, hashCode, setEcoSystem, setIdealPopulation, setListeners, setSink |
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Environment_TS(Realm realm)
realm
- Method Detail |
---|
public Route formRoute()
public double getTravelTime()
getTravelTime
in interface TakesTravelTime
TakesTravelTime.getTravelTime()
,
formRoute()
public void init()
Environment
init
in interface Environment
Environment.init()
public boolean update(java.lang.String factorKey, java.lang.Object source)
Environment_
Environment_.fireEnvironmentChanged()
.
update
in interface Environment
update
in class Environment_
Environment_.update(java.lang.String,
java.lang.Object)
protected void logUpdate()
Environment_TS
and
logs its details.
logUpdate
in class Environment_Susceptible
Environment_Susceptible.logUpdate()
protected boolean updateFromSource(java.lang.Object source)
updateFromSource
in class Environment_Susceptible
Environment_Susceptible.updateFromSource(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |