public class RunTimeStep
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
flag |
int |
nstep |
RunTimeWindow |
rtw |
int |
step |
| Constructor and Description |
|---|
RunTimeStep()
create a new RunTimeStep
|
RunTimeStep(RunTimeStep rts)
create a new RunTimeStep initialized to rts
|
RunTimeStep(RunTimeWindow runTimeWindow)
create a new RunTimeStep initialized to runTimeWindow with a step of 0 and number of steps of 1
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dateTimeString()
get the date and time at the current step as a String
|
java.lang.String |
dateTimeString(int theStep)
get the date and time at theStep.
|
int |
getDayOfWeek()
return the zero based integer day of week where 0000 hours belongs to the previous day.
|
static int |
getDayOfWeek(HecTime htime)
return the zero based integer day of week where 0000 hours belongs to the previous day.
|
HecTime |
getHecTime()
get the time at the current step
|
int |
getPrevStep()
get the previous time step index.
|
RunTimeWindow |
getRunTimeWindow()
get the RunTimeWindow
|
int |
getStep()
get the current time step index
|
int |
getTimeStepMinutes()
get the time step in minutes
|
int |
getTimeStepSeconds()
get the time step in seconds
|
int |
getTotalNumSteps()
get the total number of steps from the RunTimeWindow
|
int |
hecJulian()
get the julian date at the current step
|
int |
hecMinutes()
get the minutes since midnight for the current step
|
void |
increment()
increment the current step by 1
|
void |
init(RunTimeStep rts)
initialize the RunTimeStep to rts
|
boolean |
isPerAvgTimeStep() |
int |
month()
get the month at the current step
|
void |
setStep(int i)
set the current step
|
int |
valueMinutes()
return the time step value in minutes
|
public RunTimeWindow rtw
public int step
public int flag
public int nstep
public RunTimeStep()
public RunTimeStep(RunTimeStep rts)
rts - the RunTimeStep to initialize topublic RunTimeStep(RunTimeWindow runTimeWindow)
runTimeWindow - the runTimeWindowpublic boolean isPerAvgTimeStep()
public void init(RunTimeStep rts)
rts - the RunTimeStep to initialze topublic int getTotalNumSteps()
public void setStep(int i)
i - the new current steppublic int getStep()
public int getPrevStep()
public void increment()
public int getTimeStepSeconds()
public int getTimeStepMinutes()
public java.lang.String dateTimeString()
public java.lang.String dateTimeString(int theStep)
step - the step to get the date time atpublic int month()
public int hecJulian()
public int hecMinutes()
public HecTime getHecTime()
public int getDayOfWeek()
public static int getDayOfWeek(HecTime htime)
public int valueMinutes()
public RunTimeWindow getRunTimeWindow()