public final class VariableSet extends Object
Modifier and Type | Method and Description |
---|---|
static VariableSet |
createVariableSet(Type... variableTypes)
Constructs a variable set containing variables of the specified types.
|
VariableNode |
getById(int id)
Returns the
VariableNode from this set that is associated with the specified ID. |
List<VariableNode> |
getByType(Type type)
Returns a list of all variables in this set that are of the specified type.
|
public static VariableSet createVariableSet(Type... variableTypes)
public List<VariableNode> getByType(Type type)
type
- the type to find matching variables ofnull
if there are no variables of the required type in this setpublic VariableNode getById(int id)
VariableNode
from this set that is associated with the specified ID.OakGP Genetic Programming Framework