Package org.netxms.client
Class TimePeriod
- java.lang.Object
-
- org.netxms.client.TimePeriod
-
public class TimePeriod extends Object
-
-
Constructor Summary
Constructors Constructor Description TimePeriod()TimePeriod(int timeFrameType, int timeRangeValue, int timeUnitValue, Date timeFromValue, Date timeToValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetPeriodEnd()DategetPeriodStart()intgetTimeFrameType()DategetTimeFromValue()intgetTimeRangeValue()DategetTimeToValue()intgetTimeUnitValue()booleanisBackFromNow()voidsetTimeFrameType(int timeFrameType)voidsetTimeFromValue(Date timeFromValue)voidsetTimeRangeValue(int timeRangeValue)voidsetTimeToValue(Date timeToValue)voidsetTimeUnitValue(int timeUnitValue)
-
-
-
Method Detail
-
isBackFromNow
public boolean isBackFromNow()
-
getTimeFrameType
public int getTimeFrameType()
- Returns:
- the timeFrameType
-
setTimeFrameType
public void setTimeFrameType(int timeFrameType)
- Parameters:
timeFrameType- the timeFrameType to set
-
getTimeRangeValue
public int getTimeRangeValue()
- Returns:
- the timeRangeValue
-
setTimeRangeValue
public void setTimeRangeValue(int timeRangeValue)
- Parameters:
timeRangeValue- the timeRangeValue to set
-
getTimeUnitValue
public int getTimeUnitValue()
- Returns:
- the timeUnitValue
-
setTimeUnitValue
public void setTimeUnitValue(int timeUnitValue)
- Parameters:
timeUnitValue- the timeUnitValue to set
-
getTimeFromValue
public Date getTimeFromValue()
- Returns:
- the timeFromValue
-
setTimeFromValue
public void setTimeFromValue(Date timeFromValue)
- Parameters:
timeFromValue- the timeFromValue to set
-
getTimeToValue
public Date getTimeToValue()
- Returns:
- the timeToValue
-
setTimeToValue
public void setTimeToValue(Date timeToValue)
- Parameters:
timeToValue- the timeToValue to set
-
getPeriodStart
public Date getPeriodStart()
- Returns:
- Start date of request period
-
getPeriodEnd
public Date getPeriodEnd()
- Returns:
- end date for request period
-
-