public class NodeAdd extends NodeExprArit
The class define a node with two children. It's evaluated to an alfa-cuts family
Constructor and Description |
---|
NodeAdd(NodeAdd n)
Constructor: Generate a new NodeAdd from a given one (NodeAdd)
|
NodeAdd(NodeExprArit aserto1,
NodeExprArit aserto2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FuzzyAlphaCut |
Beval()
This method evaluate the alphacut of two nodes with the sum
|
Node |
clone()
This method generates a new NodeAdd
|
void |
debug()
This method is for debug
|
java.lang.String |
output()
Returns the output of the node.
|
void |
set(NodeAdd n)
This method sets to a NodeAdd the properties from another
|
changeChild, child, children, compatible, compatibleData, nChildren, replaceTerminals, set, type
public NodeAdd(NodeExprArit aserto1, NodeExprArit aserto2)
Constructor. Generate a new NodeAdd with two children: asert1 and asert2
aserto1
- Children for the NodeAdd (NodeExprArit)aserto2
- Children for the NodeAdd (NodeExprArit)public NodeAdd(NodeAdd n)
Constructor: Generate a new NodeAdd from a given one (NodeAdd)
n
- The NodeAddpublic void set(NodeAdd n)
This method sets to a NodeAdd the properties from another
n
- The NodeAddpublic Node clone()
This method generates a new NodeAdd
clone
in class NodeExprArit
public FuzzyAlphaCut Beval()
This method evaluate the alphacut of two nodes with the sum
Beval
in class NodeExprArit