|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.representation.Node<TYPE>
com.epochx.representation.FunctionNode<java.lang.Boolean>
com.epochx.representation.bool.IfAndOnlyIfFunction
public class IfAndOnlyIfFunction
A FunctionNode which performs the biconditional logical
connective of IFF (if and only if).
| Constructor Summary | |
|---|---|
IfAndOnlyIfFunction()
Construct an IfAndOnlyIfFunction with no children. |
|
IfAndOnlyIfFunction(Node<java.lang.Boolean> child1,
Node<java.lang.Boolean> child2)
Construct an IfAndOnlyIfFunction with two children. |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
evaluate()
Evaluating an IfAndOnlyIfFunction involves combining the
evaluation of the children according to the rules of IFF where if both
children evaluate to true or both evaluate to false, then the result
will be true. |
java.lang.String |
getFunctionName()
Get the unique name that identifies this function. |
| Methods inherited from class com.epochx.representation.FunctionNode |
|---|
equals, toString |
| Methods inherited from class com.epochx.representation.Node |
|---|
clone, getArity, getChild, getChildren, getDepth, getFunctionNodes, getLength, getNodesAtDepth, getNoDistinctFunctions, getNoDistinctTerminals, getNoFunctions, getNoTerminals, getNthNode, getTerminalNodes, hashCode, setChild, setChildren, setNthNode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IfAndOnlyIfFunction()
public IfAndOnlyIfFunction(Node<java.lang.Boolean> child1,
Node<java.lang.Boolean> child2)
child1 - The first child node.child2 - The second child node.| Method Detail |
|---|
public java.lang.Boolean evaluate()
IfAndOnlyIfFunction involves combining the
evaluation of the children according to the rules of IFF where if both
children evaluate to true or both evaluate to false, then the result
will be true. All other combinations will return a result of false.
evaluate in class Node<java.lang.Boolean>public java.lang.String getFunctionName()
getFunctionName in class FunctionNode<java.lang.Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||