package schedframe.scheduling.plan; import java.util.ArrayList; import schedframe.DescriptionContainer; public interface SchedulingPlanInterface extends DescriptionContainer { /** * * * @param vTask * @throws java.lang.IndexOutOfBoundsException if the index * given is outside the bounds of the collection */ public void addTask(final ScheduledTaskInterface vTask) throws java.lang.IndexOutOfBoundsException; /** * * * @param index * @param vTask * @throws java.lang.IndexOutOfBoundsException if the index * given is outside the bounds of the collection */ public void addTask(final int index, final ScheduledTaskInterface vTask) throws java.lang.IndexOutOfBoundsException; /** * Method getTask. * * @param index * @throws java.lang.IndexOutOfBoundsException if the index * given is outside the bounds of the collection * @return the value of the schedframe.schedulingplan.impl.Task * at the given index */ public ScheduledTaskInterface getTask(final int index) throws java.lang.IndexOutOfBoundsException; /** * Method getTask.Returns the contents of the collection in an * Array.

Note: Just in case the collection contents are * changing in another thread, we pass a 0-length Array of the * correct type into the API call. This way we know * that the Array returned is of exactly the correct length. * * @return this collection as an Array */ public ScheduledTaskInterface[] getTask(); /** * Method getTaskCount. * * @return the size of this collection */ public int getTaskCount(); /** */ public void removeAllTask(); /** * Method removeTask. * * @param vTask * @return true if the object was removed from the collection. */ public boolean removeTask(final ScheduledTaskInterface vTask); /** * Method removeTaskAt. * * @param index * @return the element removed from the collection */ public ScheduledTaskInterface removeTaskAt(final int index); /** * * * @param index * @param vTask * @throws java.lang.IndexOutOfBoundsException if the index * given is outside the bounds of the collection */ public void setTask(final int index, final ScheduledTaskInterface vTask) throws java.lang.IndexOutOfBoundsException; /** * * * @param vTaskArray */ public void setTask(final ScheduledTaskInterface[] vTaskArray); public ArrayList> getTasks(); }