public class TrapezoidalChannel extends Channel
| Constructor and Description |
|---|
TrapezoidalChannel() |
| Modifier and Type | Method and Description |
|---|---|
double |
getArea(double depth) |
double |
getBottomWidth() |
void |
getBottomWidth(hec.data.ParamDouble pd) |
double |
getCelerity(double depth) |
ChannelType |
getChannelType() |
double |
getDepth(double flow)
Computes depth for given flow rate.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getManningsN() |
double |
getSideSlope() |
double |
getTopWidth(double depth) |
double |
getVelocity(double depth) |
double |
getWetPerimeter(double depth) |
boolean |
isValid()
Checks if parameter values are valid for this channel.
|
void |
setBottomWidth(double width) |
void |
setBottomWidth(hec.data.ParamDouble pd) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setManningsN(double n) |
void |
setSideSlope(double z) |
getLength, getLength, getSlope, getUnitSystem, setchannelLength, setLength, setSlope, setUnitSystempublic ChannelType getChannelType()
getChannelType in class Channelpublic double getBottomWidth()
public double getSideSlope()
public double getManningsN()
public void setBottomWidth(double width)
public void setSideSlope(double z)
public void setManningsN(double n)
public void getBottomWidth(hec.data.ParamDouble pd)
public void setBottomWidth(hec.data.ParamDouble pd)
public boolean isValid()
throws InvalidStateException
isValid in class ChannelInvalidStateExceptionpublic double getArea(double depth)
public double getTopWidth(double depth)
getTopWidth in class Channelpublic double getWetPerimeter(double depth)
public double getVelocity(double depth)
public double getCelerity(double depth)
getCelerity in class Channelpublic double getDepth(double flow)
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Channelfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Channelfld - The java field object representing the member field to be setfobj - The data to set in that field