public class NodeLabel extends Node
Class for management terminal nodes witch are evaluated as linguistic fuzzy labels
Constructor and Description |
---|
NodeLabel(Fuzzy b)
Constructor.
|
NodeLabel(NodeLabel n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Node |
clone()
This method clone a node
|
protected boolean |
compatibleData(Node n)
This method evaluate if a Node is teh same type as another one
|
Fuzzy |
CrispEval()
This method return the membership level
|
void |
debug()
This method is for debug
|
java.lang.String |
output()
Returns the output of the node.
|
void |
set(NodeLabel n)
This method asing to a NodeLabel the properties from another
|
changeChild, child, children, compatible, nChildren, replaceTerminals, set, type
public NodeLabel(Fuzzy b)
Constructor. Generate a label terminal node
b
- The label (Fuzzy)public NodeLabel(NodeLabel n)
Constructor. Generate a label terminal node from another one
n
- The node (NodeLabel)public void set(NodeLabel n)
This method asing to a NodeLabel the properties from another
n
- The node (NodeLabel)protected boolean compatibleData(Node n)
This method evaluate if a Node is teh same type as another one
compatibleData
in class Node
n
- The node to be evaluated (Node)public Node clone()
This method clone a node
public Fuzzy CrispEval()
This method return the membership level