Package hec.rss.model

Class SunriseSunsetModel

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

public class SunriseSunsetModel extends Object implements AsciiSerializable, AltInputReportInfc

Title: HecJava Development

Description:

Copyright: Copyright (c) 2003

Company:

See Also:
  • Constructor Details

    • SunriseSunsetModel

      public SunriseSunsetModel()
  • Method Details

    • getLongitude

      public double getLongitude()
    • setLongitude

      public void setLongitude(double longitude)
    • getLatitude

      public double getLatitude()
    • setLatitude

      public void setLatitude(double lat)
    • getNumberValues

      public int getNumberValues()
    • setNumberValues

      public void setNumberValues(int size)
    • setValueAt

      public void setValueAt(int row, int date, double afterSS, double beforeSR, int noUnits)
    • getDateAt

      public int getDateAt(int pos)
      Parameters:
      pos -
      Returns:
    • getAfterSunsetAt

      public double getAfterSunsetAt(int pos)
    • getBeforeSunriseAt

      public double getBeforeSunriseAt(int pos)
    • getNumOfUnitsAt

      public int getNumOfUnitsAt(int pos)
    • getPumpInterval

      public boolean getPumpInterval(RunTimeStep rts, TimeZone tz, 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, TimeZone tz)
    • computePumpingWindow

      public int computePumpingWindow(RunTimeStep rts, TimeZone tz)
    • computeHoursLeftInPumpingTime

      public int computeHoursLeftInPumpingTime(RunTimeStep rts, TimeZone tz)
    • 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