com.rubecula.darwin.domain.environment
Interface Susceptible
- All Known Implementing Classes:
- Environment_Susceptible, Environment_TS
public interface Susceptible
This interface defines a method which makes an Environment susceptible to
change due to the extended phenotypes of organisms. This is particularly
useful for splitting-type Populations, e.g. Population_Managed
objects, which tend to be be based on asexual reproduction.
- Author:
- Robin Hillyard
Method Summary |
boolean |
updateFromSource(Best<? extends ComparableValue> best,
java.lang.Object source)
This implementation attempts to update the given environment from the
given source. |
updateFromSource
boolean updateFromSource(Best<? extends ComparableValue> best,
java.lang.Object source)
- This implementation attempts to update the given environment from the
given source. If an update occurs, we reset the bestForEnvironment value,
and log the new route and its corresponding travel time.
- Parameters:
best
- the best object that should be reset if there is an update in
this method.source
- the source of the update
- Returns:
- true if the environment was updated
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.