public class MicroscopeConnectionFactoryImpl extends java.lang.Object implements MicroscopeConnectionFactory
Constructor and Description |
---|
MicroscopeConnectionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
MicroscopeInternal |
createMicroscopeConnection(java.lang.String microscopeConnectionID,
java.lang.String driverPath)
Returns a new interface through which the drivers of the microscope can be accessed.
|
java.lang.String |
getMicroscopeConnectionDescription(java.lang.String microscopeConnectionID)
Returns a human readable description of the plug-in.
|
java.lang.String |
getShortMicroscopeConnectionDescription(java.lang.String microscopeConnectionID)
Returns a short (one line) human readable description of the plug-in.
|
java.lang.String[] |
getSupportedMicroscopeConnectionIDs()
Returns a list of all types of microscope connections the plug-in supports.
|
boolean |
needsDriverPath(java.lang.String microscopeConnectionID)
Returns true if the given connection type needs an URL to the folder where the microscope drivers are, false if such a folder is not needed.
|
boolean |
supportsMicroscopeConnectionID(java.lang.String microscopeConnectionID)
Returns true if the plug-in supports the given microscope connection type, false otherwise.
|
public MicroscopeInternal createMicroscopeConnection(java.lang.String microscopeConnectionID, java.lang.String driverPath) throws MicroscopeConnectionException
MicroscopeConnectionFactory
createMicroscopeConnection
in interface MicroscopeConnectionFactory
microscopeConnectionID
- The identifier of the microscope connection type.driverPath
- An URL to the local folder where the drivers are stored, or null if the respective connection type does not need such a folder.MicroscopeConnectionException
- Thrown if error in connecting to microManager occured.public boolean supportsMicroscopeConnectionID(java.lang.String microscopeConnectionID)
MicroscopeConnectionFactory
supportsMicroscopeConnectionID
in interface MicroscopeConnectionFactory
microscopeConnectionID
- The identifier of the microscope connection type.public java.lang.String[] getSupportedMicroscopeConnectionIDs()
MicroscopeConnectionFactory
getSupportedMicroscopeConnectionIDs
in interface MicroscopeConnectionFactory
public boolean needsDriverPath(java.lang.String microscopeConnectionID)
MicroscopeConnectionFactory
needsDriverPath
in interface MicroscopeConnectionFactory
microscopeConnectionID
- The identifier of the microscope connection type.public java.lang.String getMicroscopeConnectionDescription(java.lang.String microscopeConnectionID)
MicroscopeConnectionFactory
getMicroscopeConnectionDescription
in interface MicroscopeConnectionFactory
microscopeConnectionID
- The identifier of the microscope connection type.public java.lang.String getShortMicroscopeConnectionDescription(java.lang.String microscopeConnectionID)
MicroscopeConnectionFactory
getShortMicroscopeConnectionDescription
in interface MicroscopeConnectionFactory
microscopeConnectionID
- The identifier of the microscope connection type.