|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.lc.Node
public abstract class Node
This abstract class represents nodes of a join tree. The tree itself is built from a double
linked set of Node
objects and the JoinTree
object points to the root node of
the tree.
Field Summary | |
---|---|
protected Adapter |
adapter
|
protected Labeled |
content
|
Constructor Summary | |
---|---|
Node(Adapter adapter)
Constructor: |
Method Summary | |
---|---|
void |
addParent(Node parent)
Adds a new parent node to this node instance. |
void |
addParents(List<Node> parents)
Adds new new parent nodes to this node instance. |
abstract void |
collect()
Executes the collect algorithm for this node. |
abstract void |
distribute()
Executes the distribute algorithm for this node. |
Node |
findCoveringNode(Domain query)
|
protected Domain |
findLargestDomain()
|
Set<Uuid> |
findProcessors()
|
Node |
getChild()
|
Labeled |
getContent()
|
Domain |
getDomain()
|
Set<Node> |
getLeaves()
|
protected Set<Node> |
getNodes(Set<Node> nodes)
|
List<Node> |
getParents()
|
protected Domain |
getTotalDomain()
|
Valuation |
getValuation()
|
protected boolean |
isBinary()
|
boolean |
isFull()
|
protected void |
makeBinary(JoinTree.Construction data)
Transforms the subtree of this to a binary tree. |
protected void |
removeParent(Node parent)
Removes a parent node from this node instance. |
void |
setChild(Node child)
Assigns a unique child element to this node. |
void |
setContent(Labeled val)
Sets the content of this node instance. |
void |
setDomain(Domain domain)
Sets the domain of this node. |
int |
subTreeSize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Labeled content
protected Adapter adapter
Constructor Detail |
---|
public Node(Adapter adapter)
adapter
- The adapter to execute valuation algebra operations.Method Detail |
---|
public abstract void collect() throws LCException
LCException
- Exception caused by the collect propagation.public abstract void distribute() throws LCException
LCException
- Exception caused by the distribute propagation.public void setChild(Node child)
child
- The node's new child element.public Node getChild()
public void addParent(Node parent)
parent
- The new parent node to add.public void addParents(List<Node> parents)
parents
- A list of new parent nodes to add.public List<Node> getParents()
protected void removeParent(Node parent)
parent
- The parent to remove.public Set<Node> getLeaves()
public boolean isFull()
true
, if this node is not empty.public Domain getDomain()
public void setDomain(Domain domain)
domain
- The domain to set.public void setContent(Labeled val)
val
- The content of this node.public Valuation getValuation() throws LCException
LCException
- Wrapper exception.public Labeled getContent()
public int subTreeSize()
protected boolean isBinary()
true
, if this node's subtree is binary.protected Domain findLargestDomain()
protected Domain getTotalDomain()
public Set<Uuid> findProcessors()
public Node findCoveringNode(Domain query)
query
- The query domain to find.
null
.protected void makeBinary(JoinTree.Construction data)
data
- The information for the join tree construction process.protected Set<Node> getNodes(Set<Node> nodes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |