|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.contactcenters.msk.model.TimeInterval
public class TimeInterval
Represents a time interval.
Constructor Summary | |
---|---|
TimeInterval(CallCenter cc,
TimeIntervalParams par)
Constructs a time interval from the call center cc, and the parameters par. |
|
TimeInterval(double startingTime,
double endingTime)
Constructs a new time interval from the given starting and ending times. |
Method Summary | |
---|---|
static void |
checkIntervals(TimeInterval... intervals)
Verifies that the intervals of the given array are non-decreasing and do not overlap. |
static TimeInterval[] |
create(CallCenter cc,
List<TimeIntervalParams> intervalList)
Constructs an array of time intervals from the list of interval parameters. |
double |
getEndingTime()
Returns the ending time of this interval. |
double |
getStartingTime()
Returns the starting time of this interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeInterval(CallCenter cc, TimeIntervalParams par)
cc
- the call center.par
- the parameters.public TimeInterval(double startingTime, double endingTime)
startingTime
- the starting time.endingTime
- the ending time.Method Detail |
---|
public double getStartingTime()
public double getEndingTime()
public static void checkIntervals(TimeInterval... intervals)
intervals
- the array of intervals to check.public static TimeInterval[] create(CallCenter cc, List<TimeIntervalParams> intervalList)
cc
- the call center.intervalList
- the list of interval parameters.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |