de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph
Class KSlimNode.IncEntry

java.lang.Object
  extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimNode.IncEntry
Enclosing class:
KSlimNode

public static class KSlimNode.IncEntry
extends Object

Single entry of a incidence list.

Rating red

Nested Class Summary
static class KSlimNode.IncEntry.Type
          type of incidence entry: incoming or outgoing edge.
 
Constructor Summary
KSlimNode.IncEntry(KSlimEdge theedge, KSlimNode.IncEntry.Type thetype)
          Creates an incidence list entry.
 
Method Summary
 KSlimNode endpoint()
          Returns the endpoint of this incidence entry, as seen from the containing node.
 KSlimEdge getEdge()
          Returns the edge.
 KSlimNode.IncEntry.Type getType()
          Returns the type.
 KSlimFace leftFace()
          Returns the left face of this incidence entry, as seen from the containing node.
 void setType(KSlimNode.IncEntry.Type thetype)
          Sets the type.
 KSlimNode.Side side()
          Returns the side of the containing node on which this incidence entry lies.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSlimNode.IncEntry

public KSlimNode.IncEntry(KSlimEdge theedge,
                          KSlimNode.IncEntry.Type thetype)
Creates an incidence list entry.

Parameters:
theedge - the edge
thetype - the incidence type
Method Detail

endpoint

public KSlimNode endpoint()
Returns the endpoint of this incidence entry, as seen from the containing node.

Returns:
the source of the edge if this is an incoming type, else the target of the edge

leftFace

public KSlimFace leftFace()
Returns the left face of this incidence entry, as seen from the containing node.

Returns:
the right face of the edge if this is an incoming type, else the left face of the edge

side

public KSlimNode.Side side()
Returns the side of the containing node on which this incidence entry lies.

Returns:
the target side of the edge if this is an incoming type, else the source side

toString

public String toString()

Overrides:
toString in class Object

getEdge

public KSlimEdge getEdge()
Returns the edge.

Returns:
the edge

setType

public void setType(KSlimNode.IncEntry.Type thetype)
Sets the type.

Parameters:
thetype - the type to set

getType

public KSlimNode.IncEntry.Type getType()
Returns the type.

Returns:
the type