Package hec.rss.model
Class SunriseSunsetModel
java.lang.Object
hec.rss.model.SunriseSunsetModel
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,Serializable
Title: HecJava Development
Description:
Copyright: Copyright (c) 2003
Company:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintcomputePumpingWindow(RunTimeStep rts, TimeZone tz) doublegetAfterSunsetAt(int pos) doublegetBeforeSunriseAt(int pos) intgetDateAt(int pos) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.doubledoubleintintgetNumOfUnitsAt(int pos) intReturns the number of pumping units on at a given time.booleangetPumpInterval(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 arraysbooleanisInPumpingPeriod(RunTimeStep rts, TimeZone tz) static voidvoidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLatitude(double lat) voidsetLongitude(double longitude) voidsetNumberValues(int size) voidsetValueAt(int row, int date, double afterSS, double beforeSR, int noUnits)
-
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
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
-
computePumpingWindow
-
computeHoursLeftInPumpingTime
-
getNumUnitsAtTime
Returns the number of pumping units on at a given time.- Parameters:
rts-- Returns:
-
main
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-