public interface EditableJobContainer extends JobContainer
Modifier and Type | Method and Description |
---|---|
void |
addJob(Job job)
Adds a job to the end of the container.
|
void |
clearJobs()
Removes all jobs from this container.
|
void |
insertJob(Job job,
int jobIndex)
Inserts a job at the given index.
|
void |
removeJob(Job job)
Removes a previously added job.
|
getJob, getJobs, getNumJobs
void addJob(Job job) throws java.rmi.RemoteException, MeasurementRunningException
job
- The job to be added.java.rmi.RemoteException
MeasurementRunningException
- Thrown if job could not be added, e.g. because measurement is already running.void insertJob(Job job, int jobIndex) throws java.rmi.RemoteException, MeasurementRunningException, java.lang.IndexOutOfBoundsException
job
- The job to be inserted.jobIndex
- Index where the job should be inserted.java.rmi.RemoteException
MeasurementRunningException
- Thrown if job could not be added, e.g. because measurement is already running.java.lang.IndexOutOfBoundsException
- Thrown if index is smaller than zero, or greater or equal JobContainer.getNumJobs()
.void removeJob(Job job) throws java.rmi.RemoteException, MeasurementRunningException
job
- The job to be removed.java.rmi.RemoteException
MeasurementRunningException
- Thrown if job could not be removed, e.g. because measurement is already running.void clearJobs() throws java.rmi.RemoteException, MeasurementRunningException
java.rmi.RemoteException
MeasurementRunningException
- Thrown if jobs could not be removed, e.g. because measurement is already running.