org.autopipes
Interface TakeoutMgr

All Known Implementing Classes:
TakeoutMgrImp

public interface TakeoutMgr

Wrapper around JAXB classes generated by takeout.xsd.


Field Summary
static java.lang.String DATAFILE
          name of the 'golden standard' file.
 
Method Summary
 double getCouplingTakeout(java.math.BigDecimal diam)
          Gets takeout for a branch pipe at a coupling.
 int getDiameterId(java.math.BigDecimal diam)
          Validates and retrieves diameter's surrogate key for all pipes.
 int getMainDiameterId(java.math.BigDecimal diam)
          Validates and retrieves diameter's surrogate key for main pipes.
 double getMainTakeout(java.math.BigDecimal diam, java.lang.String ven)
          Gets takeout for a branch pipe at a main ellbow.
 double getOrthoTakeout(java.math.BigDecimal brdiam, java.math.BigDecimal ordiam, boolean forMain)
          Gets takeout for a branch pipe at an orthogonal join.
 int getVendorId(java.lang.String ven)
          Validates and retrieves vendor's surrogate key.
 

Field Detail

DATAFILE

static final java.lang.String DATAFILE
name of the 'golden standard' file.

See Also:
Constant Field Values
Method Detail

getCouplingTakeout

double getCouplingTakeout(java.math.BigDecimal diam)
Gets takeout for a branch pipe at a coupling.

Parameters:
diam - diameter of the branch.
Returns:
the takeout or -1 if no such coupling exists.
Throws:
java.lang.Exception

getMainTakeout

double getMainTakeout(java.math.BigDecimal diam,
                      java.lang.String ven)
Gets takeout for a branch pipe at a main ellbow.

Parameters:
diam - diameter of the main
ven - vendor who manufactured the ellbow.
Returns:
the takeout or -1 if no such ellbow exists.

getOrthoTakeout

double getOrthoTakeout(java.math.BigDecimal brdiam,
                       java.math.BigDecimal ordiam,
                       boolean forMain)
Gets takeout for a branch pipe at an orthogonal join.

Parameters:
brdiam - diameter of the pipe.
ordiam - maximum diameter of the orthogonal branch at the join.
forMain - true if the pipe orthogonal to the branch is main.
Returns:
the takeout or -1 if no such join exists.

getDiameterId

int getDiameterId(java.math.BigDecimal diam)
Validates and retrieves diameter's surrogate key for all pipes.

Parameters:
diam - diameter's measure in inches.
Returns:
the key.

getMainDiameterId

int getMainDiameterId(java.math.BigDecimal diam)
Validates and retrieves diameter's surrogate key for main pipes.

Parameters:
diam - diameter's measure in inches.
Returns:
the key.

getVendorId

int getVendorId(java.lang.String ven)
Validates and retrieves vendor's surrogate key.

Parameters:
ven - vendor's name
Returns:
the key.