PSE 2000 Group 4

jobmatch.business.company.profile.tree.test
Class BooleanNode

java.lang.Object
  |
  +--jobmatch.business.company.profile.tree.AbstractNode
        |
        +--jobmatch.business.company.profile.tree.MemoryNode
              |
              +--jobmatch.business.company.profile.tree.test.BooleanNode

public class BooleanNode
extends MemoryNode

This node gives a constants answer for match(candidate)

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

Constructor Summary
BooleanNode(MatchTree tree, TreeNode parent, boolean value)
           
 
Method Summary
 void and(TreeNode other)
           
 String getDescription()
           
 int getLeafNo()
           
 TreeNode getParent()
           
 MatchTree getTree()
           
 boolean match(Candidate candidate)
           
 void not()
           
 int numChildren()
           
 void or(TreeNode other)
           
 void setLeafNo(int number)
           
 void setParent(TreeNode parent)
           
 void setTree(MatchTree tree)
           
 
Methods inherited from class jobmatch.business.company.profile.tree.AbstractNode
clone, equals, semanticEquality, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanNode

public BooleanNode(MatchTree tree,
                   TreeNode parent,
                   boolean value)
Method Detail

getParent

public TreeNode getParent()
Overrides:
getParent in class AbstractNode

setParent

public void setParent(TreeNode parent)
Overrides:
setParent in class AbstractNode

getTree

public MatchTree getTree()
Overrides:
getTree in class AbstractNode

setTree

public void setTree(MatchTree tree)
Overrides:
setTree in class AbstractNode

getLeafNo

public int getLeafNo()
Overrides:
getLeafNo in class MemoryNode

setLeafNo

public void setLeafNo(int number)
Overrides:
setLeafNo in class MemoryNode

and

public void and(TreeNode other)
Overrides:
and in class AbstractNode

or

public void or(TreeNode other)
Overrides:
or in class AbstractNode

not

public void not()
Overrides:
not in class AbstractNode

numChildren

public int numChildren()

getDescription

public String getDescription()
Overrides:
getDescription in class AbstractNode

match

public boolean match(Candidate candidate)

PSE 2000 Group 4