public interface YouScopeServer
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(MessageListener listener)
Adds a listener which detects new messages from the server/microscope.
|
void |
addStateListener(MicroscopeStateListener listener)
Adds a listener which detects state changes from the server/microscope.
|
void |
emergencyStop()
Stops the XY stage of the microscope and prevents ASAP any other thread to obtain access to
the microscope.
|
ComponentProvider |
getComponentProvider(CallbackProvider callbackProvider)
Returns a provider for the construction of measurement components, e.g.
|
Measurement |
getCurrentMeasurement()
Returns the currently running measurement or NULL, if none is running.
|
MeasurementProvider |
getMeasurementProvider()
Returns a provider for the construction of new measurements.
|
Measurement[] |
getMeasurementQueue()
Returns the currently queued measurements.
|
Microscope |
getMicroscope()
Returns an object allowing the access to the microscope.
|
YouScopeServerProperties |
getProperties()
Returns the properties of the server.
|
boolean |
isEmergencyStopped()
Returns true if microscope is currently in the emergency-stop state.
|
void |
removeMessageListener(MessageListener listener)
Removes a previously added listener.
|
void |
removeStateListener(MicroscopeStateListener listener)
Removes a previously added listener.
|
void |
resetEmergencyStop()
Resets the emergency-stop state, such that microscope can be accessed again.
|
YouScopeServerProperties getProperties() throws java.rmi.RemoteException
java.rmi.RemoteException
MeasurementProvider getMeasurementProvider() throws java.rmi.RemoteException
java.rmi.RemoteException
ComponentProvider getComponentProvider(CallbackProvider callbackProvider) throws java.rmi.RemoteException
measurementUUID
- Unique identifier of measurement to which the newly created components belong.callbackProvider
- A provider for callback interfaces. Can be null.java.rmi.RemoteException
Microscope getMicroscope() throws java.rmi.RemoteException
java.rmi.RemoteException
void addMessageListener(MessageListener listener) throws java.rmi.RemoteException
listener
- Listener which detects new messages.java.rmi.RemoteException
void removeMessageListener(MessageListener listener) throws java.rmi.RemoteException
listener
- the listener.java.rmi.RemoteException
void addStateListener(MicroscopeStateListener listener) throws java.rmi.RemoteException
listener
- Listener which detects state changes.java.rmi.RemoteException
void removeStateListener(MicroscopeStateListener listener) throws java.rmi.RemoteException
listener
- the listener.java.rmi.RemoteException
Measurement getCurrentMeasurement() throws java.rmi.RemoteException
java.rmi.RemoteException
Measurement[] getMeasurementQueue() throws java.rmi.RemoteException
java.rmi.RemoteException
void emergencyStop() throws java.rmi.RemoteException
java.rmi.RemoteException
void resetEmergencyStop() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isEmergencyStopped() throws java.rmi.RemoteException
java.rmi.RemoteException