de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph
Class KSlimFace.BorderEntry

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

public static class KSlimFace.BorderEntry
extends Object

An entry of a list associated with a face.

Rating red

Constructor Summary
KSlimFace.BorderEntry(KSlimEdge theedge, boolean theforward)
          Creates a border entry for the given edge.
KSlimFace.BorderEntry(KSlimFace.BorderEntry entry)
          Creates a border entry copying an existing one.
 
Method Summary
 KSlimNode firstNode()
          Returns the first node encountered when traversing the edge in forward direction.
 KSlimNode.Side firstSide()
          Returns the side of the contained edge at the first encountered node.
 KSlimEdge getEdge()
          Returns the edge.
 boolean isForward()
          Returns whether the bordering edge is traversed forward.
 KSlimFace opposed()
          Returns the opposed face, as seen from the containing face.
 KSlimNode secondNode()
          Returns the second node encountered when traversing the edge in forward direction.
 KSlimNode.Side secondSide()
          Returns the side of the contained edge at the second encountered node.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSlimFace.BorderEntry

public KSlimFace.BorderEntry(KSlimEdge theedge,
                             boolean theforward)
Creates a border entry for the given edge.

Parameters:
theedge - edge bordering the containing face
theforward - indicates whether the bordering edge is traversed forward

KSlimFace.BorderEntry

public KSlimFace.BorderEntry(KSlimFace.BorderEntry entry)
Creates a border entry copying an existing one.

Parameters:
entry - border entry to copy
Method Detail

opposed

public KSlimFace opposed()
Returns the opposed face, as seen from the containing face.

Returns:
the left face if the contained edge is forward, else the right face

firstNode

public KSlimNode firstNode()
Returns the first node encountered when traversing the edge in forward direction.

Returns:
the source if the contained edge is forward, else the target

secondNode

public KSlimNode secondNode()
Returns the second node encountered when traversing the edge in forward direction.

Returns:
the target if the contained edge is forward, else the source

firstSide

public KSlimNode.Side firstSide()
Returns the side of the contained edge at the first encountered node.

Returns:
the side at source if the contained edge is forward, else the side at target

secondSide

public KSlimNode.Side secondSide()
Returns the side of the contained edge at the second encountered node.

Returns:
the side at target if the contained edge is forward, else the side at source

toString

public String toString()

Overrides:
toString in class Object

getEdge

public KSlimEdge getEdge()
Returns the edge.

Returns:
the edge

isForward

public boolean isForward()
Returns whether the bordering edge is traversed forward.

Returns:
the forward