public class NodeValue extends NodeExprArit
Class for management nodes with the number of the variable and the value of the variable as a string. It's evaluated to a fuzzy constant GAP implementation requires, this node must contains a pointer to a fuzzy set instead a copy. You must remove every calling to "Clona"
Constructor and Description |
---|
NodeValue(int i,
FuzzyAlphaCut[] c)
Constructor.
|
NodeValue(NodeValue n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FuzzyAlphaCut |
Beval()
this method return the fuzzy alpha cuts of a node
|
Node |
clone()
This method generate a new node from a NodeValue
|
protected boolean |
compatibleData(Node n)
This method evaluate if two nodes are the same type
|
void |
debug()
This method is for debug
|
int |
getIndex()
This method return the index of the node
|
java.lang.String |
output()
Returns the output of the node.
|
void |
set(NodeValue n)
This method sets a node to another
|
void |
setString(FuzzyAlphaCut[] c)
This method replace replace the fuzzy alpha cuts
|
changeChild, child, children, compatible, nChildren, replaceTerminals, set, type
public NodeValue(int i, FuzzyAlphaCut[] c)
Constructor. Generates a new node value
i
- The indexc
- The fuzzy alpha cutspublic NodeValue(NodeValue n)
Constructor. Generates a new node from another one
n
- The nodepublic void set(NodeValue n)
This method sets a node to another
n
- The node to be assignedprotected boolean compatibleData(Node n)
This method evaluate if two nodes are the same type
compatibleData
in class Node
n
- The node to be comparedpublic void setString(FuzzyAlphaCut[] c)
This method replace replace the fuzzy alpha cuts
c
- The fuzzy alpha cutspublic Node clone()
This method generate a new node from a NodeValue
clone
in class NodeExprArit
public FuzzyAlphaCut Beval()
this method return the fuzzy alpha cuts of a node
Beval
in class NodeExprArit
public int getIndex()
This method return the index of the node