Package hec.rss.model
Class EightPointChannel
java.lang.Object
hec.rss.model.Channel
hec.rss.model.EightPointChannel
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
EightPointChannel is used to compute flow parameters for a uniform channel
described by an 8-point cross-section.
0 1 2 3 4 5 6 7
|invalid input: '<'-Left Overbank->|invalid input: '<'-Main Channel->|invalid input: '<'-Right Overbank->|
\ /
\ /
\_______________ ________________/
\ /
\ /
\___________/
- See Also:
-
Field Summary
Fields inherited from class hec.rss.model.Channel
_length, _slope, _unitSystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCelerity(double depth) doublegetDepth(double flowRate) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.double[]doublegetTopWidth(double depth) double[]double[]booleanisValid()Checks if parameter values are valid for this channel.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetManningsN(double[] n) voidsetXCoordinates(double[] x) voidsetYCoordinates(double[] y) Methods inherited from class hec.rss.model.Channel
getLength, getLength, getSlope, getUnitSystem, setchannelLength, setLength, setSlope, setUnitSystem
-
Constructor Details
-
EightPointChannel
public EightPointChannel()
-
-
Method Details
-
getChannelType
- Overrides:
getChannelTypein classChannel
-
getXCoordinates
public double[] getXCoordinates() -
getYCoordinates
public double[] getYCoordinates() -
getManningsN
public double[] getManningsN() -
setXCoordinates
public void setXCoordinates(double[] x) -
setYCoordinates
public void setYCoordinates(double[] y) -
setManningsN
public void setManningsN(double[] n) -
isValid
Checks if parameter values are valid for this channel.- Overrides:
isValidin classChannel- Returns:
- true, if parameters are valid, otherwise false.
- Throws:
InvalidStateException
-
getTopWidth
public double getTopWidth(double depth) - Specified by:
getTopWidthin classChannel
-
getCelerity
public double getCelerity(double depth) - Specified by:
getCelerityin classChannel
-
getDepth
public double getDepth(double flowRate) -
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
-