|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectit.sauronsoftware.cron4j.TaskTable
public class TaskTable
A table coupling tasks with scheduling patterns.
| Constructor Summary | |
|---|---|
TaskTable()
|
|
| Method Summary | |
|---|---|
void |
add(SchedulingPattern pattern,
Task task)
Adds a task and an associated scheduling pattern to the table. |
SchedulingPattern |
getSchedulingPattern(int index)
Returns the scheduling pattern at the specified position. |
Task |
getTask(int index)
Returns the task at the specified position. |
void |
remove(int index)
Remove a task from the table. |
int |
size()
Returns the size of the table, representing the number of the elements stored in it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskTable()
| Method Detail |
|---|
public void add(SchedulingPattern pattern,
Task task)
pattern - The associated scheduling pattern.task - The task.public int size()
public Task getTask(int index)
throws java.lang.IndexOutOfBoundsException
size() - 1.
index - The index.
java.lang.IndexOutOfBoundsException - If the supplied index is out of range.
public SchedulingPattern getSchedulingPattern(int index)
throws java.lang.IndexOutOfBoundsException
size() - 1.
index - The index.
java.lang.IndexOutOfBoundsException - If the supplied index is out of range.
public void remove(int index)
throws java.lang.IndexOutOfBoundsException
index - The index of the task to remove.
java.lang.IndexOutOfBoundsException - If the supplied index is not valid.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||