public interface Job extends Component
Modifier and Type | Method and Description |
---|---|
void |
addJobListener(JobListener listener)
Adds a listener which should e.g.
|
void |
executeJob(ExecutionInformation executionInformation,
Microscope microscope,
MeasurementContext measurementContext)
Function which is called at every evaluation of the job.
|
void |
initializeJob(Microscope microscope,
MeasurementContext measurementContext)
Called before the first evaluation of a job in a measurement.
|
void |
removeJobListener(JobListener listener)
Removes a previously added listener.
|
void |
uninitializeJob(Microscope microscope,
MeasurementContext measurementContext)
Called before the first evaluation of a job in a measurement.
|
addMessageListener, getName, getPositionInformation, getUUID, removeMessageListener, setName
void addJobListener(JobListener listener) throws java.rmi.RemoteException
listener
- The listener to add.java.rmi.RemoteException
void removeJobListener(JobListener listener) throws java.rmi.RemoteException
listener
- The listener to be removed.java.rmi.RemoteException
void executeJob(ExecutionInformation executionInformation, Microscope microscope, MeasurementContext measurementContext) throws JobException, java.lang.InterruptedException, java.rmi.RemoteException
executionInformation
- Information about how many times the job has been executed, and if it is executed in a loop.microscope
- Interface to control and get information of the microscope.measurementContext
- the context of the measurement, allowing to transfer data between measurement components and similar.JobException
java.lang.InterruptedException
java.rmi.RemoteException
void initializeJob(Microscope microscope, MeasurementContext measurementContext) throws JobException, java.lang.InterruptedException, java.rmi.RemoteException
microscope
- Interface to control and get information of the microscope.measurementContext
- the context of the measurement, allowing to transfer data between measurement components and similar.JobException
java.lang.InterruptedException
java.rmi.RemoteException
void uninitializeJob(Microscope microscope, MeasurementContext measurementContext) throws JobException, java.lang.InterruptedException, java.rmi.RemoteException
microscope
- Interface to control and get information of the microscope.measurementContext
- the context of the measurement, allowing to transfer data between measurement components and similar.JobException
java.lang.InterruptedException
java.rmi.RemoteException