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

java.lang.Object
  extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimGraphElement
      extended by de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimFace
All Implemented Interfaces:
Comparable<KSlimGraphElement>

public class KSlimFace
extends KSlimGraphElement

A face in the slim graph structure.

Rating proposed yellow
(2009-12-11) msp

Nested Class Summary
static class KSlimFace.BorderEntry
          An entry of a list associated with a face.
 
Constructor Summary
KSlimFace(KSlimGraph graph, boolean addToInternal)
          Creates a face and optionally adds it to the given graph.
 
Method Summary
 List<List<KSlimFace.BorderEntry>> getBorders()
          Returns the borders.
 ListIterator<KSlimFace.BorderEntry> getIterator(KSlimEdge edge, boolean forward)
          Gets a list iterator with the current position at the given edge.
 
Methods inherited from class de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimGraphElement
compareTo, equals, getId, getObject, getRank, hashCode, setId, setObject, setRank, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSlimFace

public KSlimFace(KSlimGraph graph,
                 boolean addToInternal)
Creates a face and optionally adds it to the given graph.

Parameters:
graph - graph to which the new face shall be added
addToInternal - if true, the new face is added to the graph's list of internal faces
Method Detail

getIterator

public ListIterator<KSlimFace.BorderEntry> getIterator(KSlimEdge edge,
                                                       boolean forward)
Gets a list iterator with the current position at the given edge. The returned iterator has its cursor directly after the edge.

Parameters:
edge - edge at which the iterator shall point
forward - is the given edge forward for this face?
Returns:
iterator pointing at edge, or null if the edge was not found

getBorders

public List<List<KSlimFace.BorderEntry>> getBorders()
Returns the borders.

Returns:
the borders