Package | Description |
---|---|
org.oakgp.primitive |
Provides classes for specifying the contents of a primitive set.
|
org.oakgp.serialize |
Provides class for the serialisation and deserialisation of
Node instances. |
org.oakgp.util |
Utility classes that support the functionality provided by the rest of the framework.
|
Modifier and Type | Method and Description |
---|---|
List<ConstantNode> |
ConstantSet.getByType(Type type)
Returns a list of all constants in this set that are of the specified type.
|
Constructor and Description |
---|
ConstantSet(ConstantNode... constants)
Constructs a constant set containing the specified constants.
|
Constructor and Description |
---|
NodeReader(String input,
Function[] functions,
ConstantNode[] constants,
VariableSet variableSet)
Creates a
NodeReader that reads from the given java.lang.String . |
Modifier and Type | Field and Description |
---|---|
static ConstantNode |
Utils.FALSE_NODE
Represents the boolean value
false . |
static ConstantNode |
Utils.TRUE_NODE
Represents the boolean value
true . |
static ConstantNode |
Void.VOID_CONSTANT
A constant node containing
Void.VOID . |
Modifier and Type | Method and Description |
---|---|
static ConstantNode[] |
Utils.createEnumConstants(Class<? extends Enum<?>> e,
Type t)
Returns an array consisting of a
ConstantNode instance for each of the possible values of the specified enum. |
static ConstantNode[] |
Utils.createIntegerConstants(int minInclusive,
int maxInclusive)
Returns an array consisting of a
ConstantNode instance for each of the integer values in the specified range. |
Modifier and Type | Method and Description |
---|---|
RunBuilder.VariablesSetter |
RunBuilder.PrimitiveSetSetter.setConstants(ConstantNode... constants)
Sets the constants that are available for use in the construction of programs generated by the run.
|
Modifier and Type | Method and Description |
---|---|
RunBuilder.VariablesSetter |
RunBuilder.PrimitiveSetSetter.setConstants(List<ConstantNode> constants)
Sets the constants that are available for use in the construction of programs generated by the run.
|
OakGP Genetic Programming Framework