|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Environment
Defines the concept of an Environment,
modeled as a map of EcoFactor objects.
A Population of Organisms exist in an Environment,
whose properties (the EcoFactor objects) can vary over time.
| Method Summary | |
|---|---|
void |
addListener(EnvironmentListener listener)
Mutating method to add a listener to changes in this Environment. |
double |
getDoubleValue(String name)
Method to retrieve the value of the eco factor defined by name. |
EcoFactor |
getFactor(String name)
Method to retrieve the eco factor defined by name. |
Collection<String> |
keySet()
|
Object |
put(EcoFactor factor)
Add an eco factor to this environment. |
| Methods inherited from interface com.rubecula.util.StringMap |
|---|
get, put |
| Method Detail |
|---|
void addListener(EnvironmentListener listener)
listener - the listener.double getDoubleValue(String name)
name.
name - the name (identifier, key) of the eco factor.
EcoFactor getFactor(String name)
name.
name - the name (identifier, key) of the eco factor.
Collection<String> keySet()
Object put(EcoFactor factor)
factor - the eco factor, whose identifier
will be used as the key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||