org.autopipes
Class ConfigurationMgrImp.LayerImp

java.lang.Object
  extended by org.autopipes.ConfigurationMgrImp.LayerImp
All Implemented Interfaces:
ConfigurationMgr.Layer
Enclosing class:
ConfigurationMgrImp

public static class ConfigurationMgrImp.LayerImp
extends java.lang.Object
implements ConfigurationMgr.Layer

Primary implementation of ConfigurationMgr.Layer.


Field Summary
 
Fields inherited from interface org.autopipes.ConfigurationMgr.Layer
BRNCH_TYPE, MAIN_TYPE
 
Constructor Summary
ConfigurationMgrImp.LayerImp()
           
 
Method Summary
 java.math.BigDecimal getBranchDiameter(int headCount)
          Diamter for head pipes with specified down-stream head count.
 java.math.BigDecimal getMainDiameter()
          Fixed diamter for main pipes.
 java.lang.String getName()
          Gets layer's name.
 java.lang.String getType()
          Gets layer's type.
 boolean isMain()
          Checks if this is a main layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationMgrImp.LayerImp

public ConfigurationMgrImp.LayerImp()
Method Detail

isMain

public boolean isMain()
Checks if this is a main layer.

Specified by:
isMain in interface ConfigurationMgr.Layer
Returns:
true if it is

getName

public java.lang.String getName()
Gets layer's name.

Specified by:
getName in interface ConfigurationMgr.Layer
Returns:
the name

getType

public java.lang.String getType()
Gets layer's type.

Specified by:
getType in interface ConfigurationMgr.Layer
Returns:
the type

getMainDiameter

public java.math.BigDecimal getMainDiameter()
Fixed diamter for main pipes. Used only if the layer has main type.

Specified by:
getMainDiameter in interface ConfigurationMgr.Layer
Returns:
the diameter

getBranchDiameter

public java.math.BigDecimal getBranchDiameter(int headCount)
Diamter for head pipes with specified down-stream head count.

Specified by:
getBranchDiameter in interface ConfigurationMgr.Layer
Parameters:
headCount - the head count
Returns:
the diameter