org.autopipes
Class FloorImp.AreaImp

java.lang.Object
  extended by org.autopipes.FloorImp.AreaImp
All Implemented Interfaces:
Floor.Area
Enclosing class:
FloorImp

public static class FloorImp.AreaImp
extends java.lang.Object
implements Floor.Area

Default implementation.


Constructor Summary
FloorImp.AreaImp(org._3pq.jgrapht.DirectedGraph graph, HydroVertex raiser)
          Constructor.
 
Method Summary
 void addBranchLabels(DwgRoot dwg)
          Iterates over branch roots and produces a number-label for each visited root.
 java.util.List branchRoots()
          Lists entry vertices for all branches.
 org._3pq.jgrapht.DirectedGraph getGraph()
          Gets underlying graph.
 HydroVertex getRaiser()
          Finds a flow entry vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloorImp.AreaImp

public FloorImp.AreaImp(org._3pq.jgrapht.DirectedGraph graph,
                        HydroVertex raiser)
Constructor.

Parameters:
graph - underlying graph
raiser - flow entry vertex
Method Detail

getRaiser

public HydroVertex getRaiser()
Finds a flow entry vertex.

Specified by:
getRaiser in interface Floor.Area
Returns:
the vertex

getGraph

public org._3pq.jgrapht.DirectedGraph getGraph()
Gets underlying graph.

Specified by:
getGraph in interface Floor.Area
Returns:
the graph

branchRoots

public java.util.List branchRoots()
Lists entry vertices for all branches.

Specified by:
branchRoots in interface Floor.Area
Returns:
the list.

addBranchLabels

public void addBranchLabels(DwgRoot dwg)
Iterates over branch roots and produces a number-label for each visited root.

Specified by:
addBranchLabels in interface Floor.Area
Parameters:
dwg - container for the generated labels.