public class NodeConsequent extends Node
Class for management the consequent of a node. Internal Node. It's evaluated to a integer number
Constructor and Description |
---|
NodeConsequent(int c)
Constructor.
|
NodeConsequent(NodeConsequent n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Node |
clone()
This method creates a clone from the object of the class
|
protected boolean |
compatibleData(Node n)
This method evaluate if two nodes are compatibles
looking for the type and the consequent
|
int |
CrispEval()
This method return the consequent of a node
|
void |
debug()
This method is for debug
|
java.lang.String |
output()
This method is for debug
|
void |
set(NodeConsequent n)
This method asign to a NodeConsequente the properties of another
|
changeChild, child, children, compatible, nChildren, replaceTerminals, set, type
public NodeConsequent(int c)
Constructor. Genetare a new node with a consequent
c
- The consequent (int)public NodeConsequent(NodeConsequent n)
Constructor. Generate a new node with from another one
n
- The node (NodeConsequent)public void set(NodeConsequent n)
This method asign to a NodeConsequente the properties of another
n
- The NodeConsequent (NodeConsequent)protected boolean compatibleData(Node n)
This method evaluate if two nodes are compatibles looking for the type and the consequent
compatibleData
in class Node
n
- The node (Node)public int CrispEval()
This method return the consequent of a node
public Node clone()
This method creates a clone from the object of the class