org.autopipes
Interface ConfigurationMgr.Layer

All Known Implementing Classes:
ConfigurationMgrImp.LayerImp
Enclosing interface:
ConfigurationMgr

public static interface ConfigurationMgr.Layer

Wraps access to layer-related information.


Field Summary
static java.lang.String BRNCH_TYPE
          branch type.
static java.lang.String MAIN_TYPE
          main type.
 
Method Summary
 java.math.BigDecimal getBranchDiameter(int headCnt)
          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 it is a main type.
 

Field Detail

MAIN_TYPE

static final java.lang.String MAIN_TYPE
main type.

See Also:
Constant Field Values

BRNCH_TYPE

static final java.lang.String BRNCH_TYPE
branch type.

See Also:
Constant Field Values
Method Detail

isMain

boolean isMain()
Checks if it is a main type.

Returns:
true if it is

getName

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

Returns:
the name

getType

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

Returns:
the type

getMainDiameter

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

Returns:
the diameter

getBranchDiameter

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

Parameters:
headCnt - the head count
Returns:
the diameter