|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.app.tester.ScheduledDowntimes
public class ScheduledDowntimes
Contains information about scheduled downtimes (times when tests should not be executed)
Constructor Summary | |
---|---|
ScheduledDowntimes()
default constructor |
Method Summary | |
---|---|
void |
addScheduledDowntime(TimestampRange tr)
Adds the range of time to stop conducting tests if it is in the future. |
TimestampRange |
getScheduledDowntime(int index)
Gets the downtime at the specified index from the scheduled downtimes list. |
java.util.Vector<TimestampRange> |
getScheduledDowntimes()
Gets all scheduled downtimes in order from earliest starting time to latest. |
java.util.Vector<TimestampRange> |
getScheduledDowntimesCopy()
Gets a COPY of all scheduled downtimes in order from earliest starting time to latest. |
void |
removeScheduledDowntime(int index)
Removes the downtime at the specified index from the scheduled downtimes list. |
void |
removeScheduledDowntime(TimestampRange downtime)
Removes the specified downtime from the scheduled downtimes list. |
int |
size()
gets the number of scheduled downtimes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduledDowntimes()
Method Detail |
---|
public void addScheduledDowntime(TimestampRange tr)
tr
- time period during which tests should not be runpublic TimestampRange getScheduledDowntime(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- returns the downtime at the specified index
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public void removeScheduledDowntime(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the downtime at the specified index
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public void removeScheduledDowntime(TimestampRange downtime)
downtime
- remove this downtimepublic java.util.Vector<TimestampRange> getScheduledDowntimes()
public java.util.Vector<TimestampRange> getScheduledDowntimesCopy()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |