Modifier and Type | Method and Description |
---|---|
void |
addFinishDeviceSetting(DeviceSetting setting)
Adds a device settings which should be applied (once) the measurement ends.
|
void |
addMeasurementListener(MeasurementListener listener)
Adds a listener which is notified about the state of the measurement.
|
MeasurementTask |
addMultiplePeriodTask(int[] periods,
int breakTime,
int startTime)
Adds a new task to the measurement so that at times {startTime, startTime + periods[0],
startTime + periods[0] + periods[1], ..., startTime + sum_{i=0:size-2}(periods[i]), startTime
+ sum_{i=0:size-1}(periods[i]) + breakTime, startTime + sum_{i=0:size-1}(periods[i]) +
breakTime + periods[0]} the jobs of the task will be executed.
|
MeasurementTask |
addMultiplePeriodTask(int[] periods,
int breakTime,
int startTime,
int numExecutions)
Adds a new task to the measurement so that at times {startTime, startTime + periods[0],
startTime + periods[0] + periods[1], ..., startTime + sum_{i=0:size-2}(periods[i]), startTime
+ sum_{i=0:size-1}(periods[i]) + breakTime, startTime + sum_{i=0:size-1}(periods[i]) +
breakTime + periods[0]} the jobs of the task will be executed.
|
void |
addStartupDeviceSetting(DeviceSetting setting)
Adds a device setting which should be applied (once) the measurement starts.
|
MeasurementTask |
addTask(int period,
boolean fixedTimes,
int startTime)
Adds a new task to the measurement so that at times (
|
MeasurementTask |
addTask(int period,
boolean fixedTimes,
int startTime,
int numExecutions)
Adds a new task to the measurement so that at times (
|
java.util.Date |
getEndTime()
Returns the time when the last execution of this measurement stopped regularly, or null, if it did not yet stop regularly.
|
int |
getRuntime()
Returns the runtime of the measurement.
|
MeasurementSaver |
getSaver()
Returns an interface which defines how (and if) the measurement should be saved.
|
java.util.Date |
getStartTime()
Returns the time when the last execution of this measurement started, or null, if it did not yet start.
|
MeasurementState |
getState()
Returns the current state of the measurement.
|
MeasurementTask[] |
getTasks()
Returns a list of all tasks of this measurement.
|
java.lang.String |
getTypeIdentifier()
Returns a previously defined type identifier.
|
void |
interruptMeasurement()
Interrupts the execution of the measurement.
|
boolean |
isLockMicroscopeWhileRunning()
Returns if write access to the microscope is locked during the measurement.
|
boolean |
isRunning()
Returns if measurement is currently running or not.
|
void |
quickStopMeasurement()
Stops the execution of the measurement after all queued jobs were finished.
|
void |
removeMeasurementListener(MeasurementListener listener)
Removes a previously added listener.
|
void |
setFinishDeviceSettings(DeviceSetting[] settings)
Sets the device settings which should be applied (once) the measurement ends.
|
void |
setInitialMeasurementContextProperty(java.lang.String identifier,
java.io.Serializable property)
Sets a measurement context property.
|
void |
setLockMicroscopeWhileRunning(boolean lock)
Sets if write access to the microscope is locked during the measurement.
|
void |
setRuntime(int measurementRuntime)
Sets the runtime of the measurement.
|
void |
setStartupDeviceSettings(DeviceSetting[] settings)
Sets the device settings which should be applied (once) the measurement starts.
|
void |
setTypeIdentifier(java.lang.String type)
Sets an identifier for the type of this measurement.
|
void |
startMeasurement()
Starts the execution of the measurement.
|
void |
stopMeasurement()
Stops the execution of the measurement after all queued jobs were finished.
|
void |
waitForMeasurementFinish()
Stops the execution of the calling thread until the measurement is finished.
|
addMessageListener, getName, getPositionInformation, getUUID, removeMessageListener, setName
boolean isRunning() throws java.rmi.RemoteException
java.rmi.RemoteException
void quickStopMeasurement() throws java.rmi.RemoteException
java.rmi.RemoteException
void setInitialMeasurementContextProperty(java.lang.String identifier, java.io.Serializable property) throws java.rmi.RemoteException
identifier
- a short identifier for the property.property
- The property which should be saved.java.rmi.RemoteException
MeasurementState getState() throws java.rmi.RemoteException
java.rmi.RemoteException
void startMeasurement() throws java.rmi.RemoteException
java.rmi.RemoteException
void stopMeasurement() throws java.rmi.RemoteException
java.rmi.RemoteException
void waitForMeasurementFinish() throws java.rmi.RemoteException
java.rmi.RemoteException
void interruptMeasurement() throws java.rmi.RemoteException
java.rmi.RemoteException
void addMeasurementListener(MeasurementListener listener) throws java.rmi.RemoteException
listener
- Listener which should be notified.java.rmi.RemoteException
void removeMeasurementListener(MeasurementListener listener) throws java.rmi.RemoteException
listener
- The listener to remove.java.rmi.RemoteException
void setRuntime(int measurementRuntime) throws java.rmi.RemoteException, MeasurementRunningException
measurementRuntime
- Runtime of the measurement in milliseconds. Set to -1 for an
infinite runtime.java.rmi.RemoteException
MeasurementRunningException
int getRuntime() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Date getStartTime() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Date getEndTime() throws java.rmi.RemoteException
java.rmi.RemoteException
void setLockMicroscopeWhileRunning(boolean lock) throws java.rmi.RemoteException, MeasurementRunningException
lock
- True if should be locked.java.rmi.RemoteException
MeasurementRunningException
boolean isLockMicroscopeWhileRunning() throws java.rmi.RemoteException
java.rmi.RemoteException
void setTypeIdentifier(java.lang.String type) throws java.rmi.RemoteException, MeasurementRunningException
type
- Type identifier.java.rmi.RemoteException
MeasurementRunningException
java.lang.String getTypeIdentifier() throws java.rmi.RemoteException
java.rmi.RemoteException
MeasurementSaver getSaver() throws java.rmi.RemoteException
java.rmi.RemoteException
MeasurementTask addTask(int period, boolean fixedTimes, int startTime) throws java.rmi.RemoteException, MeasurementRunningException
period
- Time between single executions (in milliseconds).fixedTimes
- TRUE if jobs should be done at fixed time intervals, FALSE if job may be
delayed if microscope runs slow.startTime
- The time when the jobs are started first (in ms).java.rmi.RemoteException
MeasurementRunningException
MeasurementTask addTask(int period, boolean fixedTimes, int startTime, int numExecutions) throws java.rmi.RemoteException, MeasurementRunningException
period
- Time between single executions (in milliseconds).fixedTimes
- TRUE if jobs should be done at fixed time intervals, FALSE if job may be
delayed if microscope runs slow.startTime
- The time when the jobs are started first (in ms).numExecutions
- Maximal number of executions. -1 for an infinite amount.java.rmi.RemoteException
MeasurementRunningException
MeasurementTask addMultiplePeriodTask(int[] periods, int breakTime, int startTime) throws java.rmi.RemoteException, MeasurementRunningException
periods
- Times between single executions (in milliseconds).breakTime
- After all periods are run through, the job will pause for startTime
- The time when the jobs should be started first (in ms).java.rmi.RemoteException
MeasurementRunningException
MeasurementTask addMultiplePeriodTask(int[] periods, int breakTime, int startTime, int numExecutions) throws java.rmi.RemoteException, MeasurementRunningException
periods
- Times between single executions (in milliseconds).breakTime
- After all periods are run through, the job will pause for startTime
- The time when the jobs should be started first (in ms).numExecutions
- Maximal number of executions. -1 for an infinite amount.java.rmi.RemoteException
MeasurementRunningException
MeasurementTask[] getTasks() throws java.rmi.RemoteException
java.rmi.RemoteException
void setStartupDeviceSettings(DeviceSetting[] settings) throws java.rmi.RemoteException, MeasurementRunningException
settings
- The device settings which should be applied.java.rmi.RemoteException
MeasurementRunningException
void setFinishDeviceSettings(DeviceSetting[] settings) throws java.rmi.RemoteException, MeasurementRunningException
settings
- The device settings which should be applied.java.rmi.RemoteException
MeasurementRunningException
void addStartupDeviceSetting(DeviceSetting setting) throws java.rmi.RemoteException, MeasurementRunningException
setting
- The device settings which should be added.java.rmi.RemoteException
MeasurementRunningException
void addFinishDeviceSetting(DeviceSetting setting) throws java.rmi.RemoteException, MeasurementRunningException
setting
- The device settings which should be added.java.rmi.RemoteException
MeasurementRunningException