Package hec.model

Class ProbabilityDistributionFunction

All Implemented Interfaces:
FieldAccessor, DistributionErrorTypes, Serializable

public class ProbabilityDistributionFunction extends FloatArray2dContainer implements Serializable, FieldAccessor, DistributionErrorTypes
See Also:
  • Constructor Details

    • ProbabilityDistributionFunction

      public ProbabilityDistributionFunction(int type, int cols, int rows)
  • Method Details

    • copyInto

      public void copyInto(ProbabilityDistributionFunction pdf)
    • getType

      public int getType()
      Returns the error type.
      Returns:
      The error type constant.
      See Also:
    • setType

      public boolean setType(int type)
      Validates and sets the error type.
      Parameters:
      type - : The error type.
      Returns:
      Returns a boolean indicating success.
      See Also:
    • 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 FloatArray2dContainer
      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 FloatArray2dContainer
      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