Package hec.rss.model

Class Channel

java.lang.Object
hec.rss.model.Channel
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable
Direct Known Subclasses:
CircularChannel, EightPointChannel, TrapezoidalChannel

public abstract class Channel extends Object implements AsciiSerializable
Channel is a parent class for classes describing channels for routing methods.
See Also:
  • Field Details

    • _length

      protected double _length
    • _slope

      protected double _slope
    • _unitSystem

      protected int _unitSystem
  • Constructor Details

    • Channel

      public Channel()
  • Method Details

    • getLength

      public double getLength()
    • getSlope

      public double getSlope()
    • setLength

      public void setLength(double length)
    • setSlope

      public void setSlope(double slope)
    • getLength

      public void getLength(hec.data.ParamDouble pd)
    • setchannelLength

      public void setchannelLength(hec.data.ParamDouble pd)
    • getUnitSystem

      public int getUnitSystem()
    • setUnitSystem

      public void setUnitSystem(int unitSystem)
    • getChannelType

      public ChannelType getChannelType()
    • isValid

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

      public abstract double getCelerity(double depth)
    • getTopWidth

      public abstract double getTopWidth(double depth)
    • getDepth

      public abstract double getDepth(double flow)
    • 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
      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
      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