public class NodeRuleBase extends Node
Class for management of a node rule base. Internal Node (root node, in general). A vector of pairs integer/weight is evaluated
Constructor and Description |
---|
NodeRuleBase(NodeRule[] br)
Constructor.
|
NodeRuleBase(NodeRuleBase br)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Node |
clone()
This method clones a node from a node rule base
|
protected boolean |
compatibleData(Node n)
This method evaluates if two nodes are the same type
|
IntDouble[] |
CrispEval()
This method evaluates the node rule base
|
void |
debug()
This method is for debug
|
java.lang.String |
output()
This method is for debug
|
void |
set(NodeRuleBase br)
This method sets a node rule base to another one
|
changeChild, child, children, compatible, nChildren, replaceTerminals, set, type
public NodeRuleBase(NodeRule[] br)
Constructor. Generate a new node rule base from list of rule node
br
- The list of rule nodepublic NodeRuleBase(NodeRuleBase br)
Constructor. Generate a new node rule base from another one
br
- The node rule basepublic void set(NodeRuleBase br)
This method sets a node rule base to another one
br
- The node rule basepublic Node clone()
This method clones a node from a node rule base
protected boolean compatibleData(Node n)
This method evaluates if two nodes are the same type
compatibleData
in class Node
n
- The node to be compared (Node)public IntDouble[] CrispEval()
This method evaluates the node rule base