Package hec.rss.model

Class PumpingHourRangeModel

java.lang.Object
hec.rss.model.PumpingHourRangeModel
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, AltInputReportInfc, Serializable

public class PumpingHourRangeModel extends Object implements AsciiSerializable, AltInputReportInfc

Title: HecJava Development

Description:

Copyright: Copyright (c) 2003

Company:

See Also:
  • Constructor Details

    • PumpingHourRangeModel

      public PumpingHourRangeModel()
  • Method Details

    • getNumberValues

      public int getNumberValues()
    • setNumberValues

      public void setNumberValues(int size)
    • setValueAt

      public void setValueAt(int row, int beginDate, int endDate, int noUnits)
    • getBeginDateAt

      public int getBeginDateAt(int pos)
      Parameters:
      pos -
      Returns:
    • getEndDateAt

      public int getEndDateAt(int pos)
      Parameters:
      pos -
      Returns:
    • getNumOfUnitsAt

      public int getNumOfUnitsAt(int pos)
    • getPumpInterval

      public boolean getPumpInterval(RunTimeStep rts, int[] startTime, int[] endTime)
      determines puming interval for the given time step, return minutes from midnight for start and end times in argument arrays
      Parameters:
      rts -
      tz -
      Returns:
    • isInPumpingPeriod

      public boolean isInPumpingPeriod(RunTimeStep rts)
    • computePumpingWindow

      public int computePumpingWindow(RunTimeStep rts)
    • computeHoursLeftInPumpingTime

      public int computeHoursLeftInPumpingTime(RunTimeStep rts)
    • computeIndex

      public int computeIndex(RunTimeStep rts)
    • getNumUnitsAtTime

      public int getNumUnitsAtTime(RunTimeStep rts)
      Returns the number of pumping units on at a given time.
      Parameters:
      rts -
      Returns:
    • main

      public static void main(String[] args)
    • 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
    • outputReport

      public void outputReport(AlternativeInputReport report, org.jdom.Element elem)
      Description copied from interface: AltInputReportInfc
      Alternative Input Report Interface for data.
      Specified by:
      outputReport in interface AltInputReportInfc