de.cau.cs.kieler.krep.compiler.dependencies
Class DepNode

java.lang.Object
  extended by de.cau.cs.kieler.krep.compiler.dependencies.DepNode

public class DepNode
extends Object

A node, ie, a variable in the Dependency graph. A node has in- and outgoing edges and a variable.

Rating yellow
(2010-02-05) review by cmot, msp, tam

Constructor Summary
DepNode(String n)
           
 
Method Summary
 void addIn(DepEdge e)
           
 void addOut(DepEdge e)
           
 Set<DepEdge> getIn()
           
 String getName()
           
 Set<DepEdge> getOut()
           
 int getPrio()
           
 boolean isEqual(DepNode n)
           
 boolean isInput()
           
 boolean isOutput()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DepNode

public DepNode(String n)
Parameters:
n - name of the new node
Method Detail

addIn

public void addIn(DepEdge e)
Parameters:
e - new in-going edge

addOut

public void addOut(DepEdge e)
Parameters:
e - new outgoing edge

getIn

public Set<DepEdge> getIn()
Returns:
set of ingoing edges

getName

public String getName()
Returns:
name of the node

getOut

public Set<DepEdge> getOut()
Returns:
set of out-going edges

isInput

public boolean isInput()
Returns:
true if the node is an input variable (source node)

isOutput

public boolean isOutput()
Returns:
true if the node is an output variable (sink node)

isEqual

public boolean isEqual(DepNode n)
Parameters:
n - node to test
Returns:
true, if names are equal

toString

public String toString()
Overrides:
toString in class Object

getPrio

public int getPrio()
Returns:
priority of this node