PSE 2000 Group 4

jobmatch.business.company.profile.tree
Class OperationNode

java.lang.Object
  |
  +--jobmatch.business.company.profile.tree.AbstractNode
        |
        +--jobmatch.business.company.profile.tree.MemoryNode
              |
              +--jobmatch.business.company.profile.tree.OperationNode
Direct Known Subclasses:
ANDNode, NOTNode, ORNode

abstract class OperationNode
extends MemoryNode

Common behaviour for Operation Nodes

Since:
May 16 2000
Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
protected  List children
           
 
Constructor Summary
protected OperationNode(MatchTree tree, TreeNode parent)
           
 
Method Summary
 void addNode(TreeNode node)
           
 Object clone()
           
 boolean equals(Object other)
           
protected  String getDelimiter()
           
 String getDescription()
           
 int numChildren()
           
protected static boolean semanticEquality(OperationNode a, OperationNode b)
           
 String toString()
           
 
Methods inherited from class jobmatch.business.company.profile.tree.MemoryNode
getLeafNo, setLeafNo
 
Methods inherited from class jobmatch.business.company.profile.tree.AbstractNode
and, getParent, getTree, not, or, semanticEquality, setParent, setTree
 
Methods inherited from class java.lang.Object
, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

children

protected List children
Constructor Detail

OperationNode

protected OperationNode(MatchTree tree,
                        TreeNode parent)
Method Detail

getDescription

public String getDescription()
Overrides:
getDescription in class AbstractNode

getDelimiter

protected String getDelimiter()

addNode

public void addNode(TreeNode node)
Preconditions:
node != null

numChildren

public int numChildren()

equals

public boolean equals(Object other)
Overrides:
equals in class AbstractNode
See Also:
Object.equals

semanticEquality

protected static boolean semanticEquality(OperationNode a,
                                          OperationNode b)
Returns:
true if a is considered the same as b

toString

public String toString()
Overrides:
toString in class AbstractNode
See Also:
Object.toString

clone

public Object clone()
Overrides:
clone in class AbstractNode
See Also:
Object.clone

PSE 2000 Group 4