Package hec.rss.model
Class PumpingHourRangeModel
java.lang.Object
hec.rss.model.PumpingHourRangeModel
- 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 TypeMethodDescriptionintintcomputeIndex(RunTimeStep rts) intintgetBeginDateAt(int pos) intgetEndDateAt(int pos) getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intintgetNumOfUnitsAt(int pos) intReturns the number of pumping units on at a given time.booleangetPumpInterval(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 arraysbooleanstatic 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.voidsetNumberValues(int size) voidsetValueAt(int row, int beginDate, int endDate, int noUnits)
-
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
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
-
computeIndex
-
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
-