Package hec.rss.model
Class TrapezoidalChannel
java.lang.Object
hec.rss.model.Channel
hec.rss.model.TrapezoidalChannel
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
PrismaticChannel is used to compute flow characteristics of uniform
rectangular/trapezoidal/triangular channels.
- See Also:
-
Field Summary
Fields inherited from class hec.rss.model.Channel
_length, _slope, _unitSystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetArea(double depth) doublevoidgetBottomWidth(hec.data.ParamDouble pd) doublegetCelerity(double depth) doublegetDepth(double flow) Computes depth for given flow rate.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubledoubledoublegetTopWidth(double depth) doublegetVelocity(double depth) doublegetWetPerimeter(double depth) booleanisValid()Checks if parameter values are valid for this channel.voidsetBottomWidth(double width) voidsetBottomWidth(hec.data.ParamDouble pd) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetManningsN(double n) voidsetSideSlope(double z) Methods inherited from class hec.rss.model.Channel
getLength, getLength, getSlope, getUnitSystem, setchannelLength, setLength, setSlope, setUnitSystem
-
Constructor Details
-
TrapezoidalChannel
public TrapezoidalChannel()
-
-
Method Details
-
getChannelType
- Overrides:
getChannelTypein classChannel
-
getBottomWidth
public double getBottomWidth() -
getSideSlope
public double getSideSlope() -
getManningsN
public double getManningsN() -
setBottomWidth
public void setBottomWidth(double width) -
setSideSlope
public void setSideSlope(double z) -
setManningsN
public void setManningsN(double n) -
getBottomWidth
public void getBottomWidth(hec.data.ParamDouble pd) -
setBottomWidth
public void setBottomWidth(hec.data.ParamDouble pd) -
isValid
Checks if parameter values are valid for this channel.- Overrides:
isValidin classChannel- Returns:
- true, if parameters are valid, otherwise false.
- Throws:
InvalidStateException
-
getArea
public double getArea(double depth) -
getTopWidth
public double getTopWidth(double depth) - Specified by:
getTopWidthin classChannel
-
getWetPerimeter
public double getWetPerimeter(double depth) -
getVelocity
public double getVelocity(double depth) -
getCelerity
public double getCelerity(double depth) - Specified by:
getCelerityin classChannel
-
getDepth
public double getDepth(double flow) Computes depth for given flow rate. -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classChannel- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classChannel- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-