|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.tree.Environment
public class Environment
The execution context, or environment, storing the named variables used by a program. Defined functions are first-class objects and also stored in the environment.
| Constructor Summary | |
|---|---|
Environment()
Constructs a new, empty environment. |
|
Environment(Environment parent)
Constructs a new environment enclosed within the specified enclosing environment. |
|
| Method Summary | ||
|---|---|---|
|
get(Class<T> type,
String name)
Returns the content of the named variable stored in this environment or its enclosing environment; or null if the variable has not yet
been defined. |
|
void |
set(String name,
Object value)
Sets the content of the named variable to the specified value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Environment()
public Environment(Environment parent)
parent - the enclosing environment| Method Detail |
|---|
public <T> T get(Class<T> type,
String name)
null if the variable has not yet
been defined.
type - the type of the variablename - the name of the variable
null if the variable has
not yet been defined
public void set(String name,
Object value)
name - the name of the variablevalue - the value to store in the variable
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||