|
|||||||||
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 TaskFactory |
factory
|
protected Locator |
locator
|
Constructor Summary | |
---|---|
Node(TaskFactory factory)
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(Allocator allocator)
Executes the collect algorithm for this node. |
abstract void |
distribute()
Executes the distribute algorithm for this node. |
protected Node |
findCoveringNode(Domain query)
|
protected Domain |
findLargestDomain()
|
Set<Processor> |
findProcessors()
|
Node |
getChild()
|
Domain |
getDomain()
|
Set<Node> |
getLeaves()
|
Locator |
getLocator()
|
protected Set<Node> |
getNodes(Set<Node> nodes)
|
List<Node> |
getParents()
|
Processor |
getProcessor()
|
protected Domain |
getTotalDomain()
|
Valuation |
getValuation()
|
protected boolean |
isBinary()
|
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 |
setDomain(Domain domain)
Sets the domain of this node. |
void |
setLocator(Locator loc)
Sets the content locator of this node instance. |
boolean |
setProcessor(Processor proc)
Assigns a processor to 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 Locator locator
protected TaskFactory factory
Constructor Detail |
---|
public Node(TaskFactory factory)
factory
- The task factory to construct new tasks.Method Detail |
---|
public abstract void collect(Allocator allocator) throws LCException, RemoteException
allocator
- The processor allocation strategy for this node.
LCException
- Exception caused by the collect propagation.
RemoteException
- Exceptions caused by communication problems when accessing processors.public abstract void distribute() throws LCException, RemoteException
LCException
- Exception caused by the distribute propagation.
RemoteException
- Exceptions caused by communication problems when accessing processors.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 Domain getDomain()
public void setDomain(Domain domain)
domain
- The domain to set.public Valuation getValuation() throws RemoteException
RemoteException
- Exception thrown while reading the node content from the remote processor.public void setLocator(Locator loc)
loc
- The locator pointing to the content of this node.public Locator getLocator()
public Processor getProcessor()
public boolean setProcessor(Processor proc) throws RemoteException
true
.false
is returned.
proc
- The processor to assign.
true
, if the processor assigned to this nodes changes.
RemoteException
- Exception caused by communication proclems when the new processor is accessed.public int subTreeSize()
protected boolean isBinary()
true
, if this node's subtree is binary.protected Domain findLargestDomain()
protected Domain getTotalDomain()
public Set<Processor> findProcessors()
protected 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 |