public class StandardSaveSettings extends ResourceAdapter<StandardSaveSettingsConfiguration> implements SaveSettings
Constructor and Description |
---|
StandardSaveSettings(PositionInformation positionInformation,
StandardSaveSettingsConfiguration configuration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImageExtension(ImageEvent<?> event,
java.lang.String imageName)
Returns a extension/file type (without a dot, e.g.
|
java.lang.String |
getImageFilePath(ImageEvent<?> event,
java.lang.String imageName)
Returns a file path (with extension) where an image with a given name should be saved.
|
java.lang.String |
getImageMetadataTableFilePath()
Returns a file path (with extension) where the table storing metadata about the images should be stored.
|
java.lang.String |
getLogErrFilePath()
Returns the file path for the error log file (with extension).
|
java.lang.String |
getLogOutFilePath()
Returns the file path for the standard output log file (with extension).
|
java.lang.String |
getMeasurementBasePath(java.lang.String measurementName,
long timeMs)
Returns the name of the base folder/path where the measurement is saved, and relative to which all other paths are given.
|
java.lang.String |
getMeasurementConfigurationFilePath()
Path of the file (with extension) where the measurement configuration should be saved into.
|
java.lang.String |
getMicroscopeConfigurationFilePath()
Path of the file (with extension) where the microscope configuration should be saved into.
|
java.lang.String |
getScopeSettingsFilePath()
Path of the XML file (with extension) where the scope and channel settings are saved into.
|
java.lang.String |
getTableFilePath(java.lang.String tableName)
Returns a file path (with extension) where a table with a given name should be saved.
|
addMessageListener, assertInitialized, getConfiguration, getName, getPositionInformation, getTypeIdentifier, getUUID, initialize, isInitialized, removeMessageListener, sendErrorMessage, sendMessage, setName, uninitialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeIdentifier, initialize, isInitialized, uninitialize
addMessageListener, getName, getPositionInformation, getUUID, removeMessageListener, setName
public StandardSaveSettings(PositionInformation positionInformation, StandardSaveSettingsConfiguration configuration) throws ConfigurationException
positionInformation
- Position information.configuration
- configuration of the save settings.ConfigurationException
public java.lang.String getScopeSettingsFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getScopeSettingsFilePath
in interface SaveSettings
public java.lang.String getMeasurementConfigurationFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getMeasurementConfigurationFilePath
in interface SaveSettings
public java.lang.String getMicroscopeConfigurationFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getMicroscopeConfigurationFilePath
in interface SaveSettings
public java.lang.String getLogErrFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getLogErrFilePath
in interface SaveSettings
public java.lang.String getLogOutFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getLogOutFilePath
in interface SaveSettings
public java.lang.String getMeasurementBasePath(java.lang.String measurementName, long timeMs)
SaveSettings
getMeasurementBasePath
in interface SaveSettings
measurementName
- Name of the measurement.timeMs
- Time in ms when measurement was started. See System.currentTimeMillis()
.public java.lang.String getTableFilePath(java.lang.String tableName)
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getTableFilePath
in interface SaveSettings
tableName
- User chosen table name.public java.lang.String getImageMetadataTableFilePath()
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getImageMetadataTableFilePath
in interface SaveSettings
public java.lang.String getImageFilePath(ImageEvent<?> event, java.lang.String imageName)
SaveSettings
SaveSettings.getMeasurementBasePath(String, long)
.getImageFilePath
in interface SaveSettings
event
- image event.imageName
- user chosen name of the image.public java.lang.String getImageExtension(ImageEvent<?> event, java.lang.String imageName)
SaveSettings
SaveSettings.getImageExtension(ImageEvent, String)
. This extension is internally used to determine how the image should be saved, and should match
be a supported image type (for more, see YouScope server details).getImageExtension
in interface SaveSettings
event
- image event.imageName
- user chosen name of the image.