public class NodeOr extends NodeAssert
Class for management of or nodes. Internal Node. It's evaluated to a real number
Constructor and Description |
---|
NodeOr(NodeAssert assert1,
NodeAssert assert2)
Constructor.
|
NodeOr(NodeOr n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Node |
clone()
This method clone an or node
|
double |
CrispEval()
This method evaluates two nodes and return the maximun
|
void |
debug()
This method is for debug
|
java.lang.String |
output()
Returns the output of the node.
|
void |
set(NodeOr n)
This method assign an or node to another one
|
changeChild, child, children, compatible, compatibleData, nChildren, replaceTerminals, set, type
public NodeOr(NodeAssert assert1, NodeAssert assert2)
Constructor. Generates a new or node with two childrens
assert1
- The assert nodeassert2
- The assert nodepublic NodeOr(NodeOr n)
Constructor. Generate a new node from anothe one
n
- The or nodepublic void set(NodeOr n)
This method assign an or node to another one
n
- The or node to be assignedpublic Node clone()
This method clone an or node
clone
in class NodeAssert
public double CrispEval()
This method evaluates two nodes and return the maximun
CrispEval
in class NodeAssert