public interface PrimitiveSet
Modifier and Type | Method and Description |
---|---|
boolean |
hasFunctions(Type type)
Returns
true if the primitive set contains at least one function which has a return type of the specified type, else false . |
boolean |
hasTerminals(Type type)
Returns
true if the primitive set contains at least one terminal node of the specified type, else false . |
Function |
nextAlternativeFunction(Function current)
Returns a randomly selected
Function that is not the same as the specified Function . |
Node |
nextAlternativeTerminal(Node current)
Returns a randomly selected terminal node that is not the same as the specified
Node . |
Function |
nextFunction(Type type)
Returns a randomly selected
Function of the specified Type . |
Node |
nextTerminal(Type type)
Returns a randomly selected terminal node.
|
boolean hasTerminals(Type type)
true
if the primitive set contains at least one terminal node of the specified type, else false
.boolean hasFunctions(Type type)
true
if the primitive set contains at least one function which has a return type of the specified type, else false
.Node nextTerminal(Type type)
Node nextAlternativeTerminal(Node current)
Node
.current
- the current Node
that the returned result should be an alternative to (i.e. not the same as)Node
Function nextFunction(Type type)
Function
of the specified Type
.type
- the required return type of the Function
Function
with a return type of type
Function nextAlternativeFunction(Function current)
Function
that is not the same as the specified Function
.current
- the current Function
that the returned result should be an alternative to (i.e. not the same as)Function
that is not the same as the specified Function
OakGP Genetic Programming Framework