Package hec.rss.model

Class EightPointChannel

java.lang.Object
hec.rss.model.Channel
hec.rss.model.EightPointChannel
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable

public class EightPointChannel extends Channel
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:
  • Constructor Details

    • EightPointChannel

      public EightPointChannel()
  • Method Details

    • getChannelType

      public ChannelType getChannelType()
      Overrides:
      getChannelType in class Channel
    • 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

      public boolean isValid() throws InvalidStateException
      Checks if parameter values are valid for this channel.
      Overrides:
      isValid in class Channel
      Returns:
      true, if parameters are valid, otherwise false.
      Throws:
      InvalidStateException
    • getTopWidth

      public double getTopWidth(double depth)
      Specified by:
      getTopWidth in class Channel
    • getCelerity

      public double getCelerity(double depth)
      Specified by:
      getCelerity in class Channel
    • getDepth

      public double getDepth(double flowRate)
      Specified by:
      getDepth in class Channel
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class Channel
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class Channel
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful