ibi.broker.api.data.schedule
Class TimeInterval

java.lang.Object
  extended by ibi.broker.api.data.schedule.TimeInterval
All Implemented Interfaces:
java.io.Serializable

public class TimeInterval
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TimeInterval()
           
 
Method Summary
 int getDuration()
          Obtains the duration of a scheduled event, in minutes.
 int getInterval()
          Obtains the interval for a scheduled event, in minutes.
 java.util.Calendar getUntilTime()
          Obtains the time until which a scheduled even will run, as a String, in the format HHmm, where HH is the hour and mm is the minute.
 boolean isEnabled()
           
 boolean isUseUntilTime()
           
 void setDuration(int duration)
          Assigns the duration of a scheduled event, in minutes.
 void setEnabled(boolean isEnabled)
           
 void setInterval(int frequency)
          Assigns the interval for a scheduled event, in minutes.
 void setUntilTime(java.util.Calendar untilTime)
          Assigns the time until which a scheduled even will run, as a String, in the format HHmm, where HH is the hour and mm is the minute.
 void setUseUntilTime(boolean isUseUntilTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInterval

public TimeInterval()
Method Detail

getInterval

public int getInterval()
Obtains the interval for a scheduled event, in minutes.

Returns:
An integer representing the interval, in minutes.
See Also:
setInterval(int)

setInterval

public void setInterval(int frequency)
Assigns the interval for a scheduled event, in minutes.

Parameters:
frequency - An integer representing run interval, in minutes.
See Also:
getInterval()

getDuration

public int getDuration()
Obtains the duration of a scheduled event, in minutes.

Returns:
An integer representing the duration of a scheduled event, in minutes.
See Also:
setDuration(int)

setDuration

public void setDuration(int duration)
Assigns the duration of a scheduled event, in minutes.

Parameters:
duration - An integer representing the duration of a scheduled event, in minutes.
See Also:
getDuration()

getUntilTime

public java.util.Calendar getUntilTime()
Obtains the time until which a scheduled even will run, as a String, in the format HHmm, where HH is the hour and mm is the minute.

Returns:
Returns the untilTime.

setUntilTime

public void setUntilTime(java.util.Calendar untilTime)
Assigns the time until which a scheduled even will run, as a String, in the format HHmm, where HH is the hour and mm is the minute.

Parameters:
untilTime - The time until which a scheduled even will run.

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean isEnabled)

isUseUntilTime

public boolean isUseUntilTime()

setUseUntilTime

public void setUseUntilTime(boolean isUseUntilTime)


Copyright © 2006 Information Builders, Incorporated.