public interface MeasurementAddonFactory
Modifier and Type | Method and Description |
---|---|
ComponentAddonUI<? extends MeasurementConfiguration> |
createMeasurementUI(java.lang.String typeIdentifier,
YouScopeClient client,
YouScopeServer server)
Returns a new measurement configuration addon for the given ID, or null if addon does not support the configuration of measurements witht the given ID.
|
ComponentMetadata<? extends MeasurementConfiguration> |
getComponentMetadata(java.lang.String typeIdentifier)
Returns the metadata (like human readable name) for a given measurement type.
|
java.lang.String[] |
getSupportedTypeIdentifiers()
Returns a list of all measurement configuration types supported by this addon
|
void |
initializeMeasurement(Measurement measurement,
MeasurementConfiguration configuration,
ConstructionContext constructionContext)
Called when this addon should initialize the the measurement according to its configuration.
|
boolean |
isSupportingTypeIdentifier(java.lang.String ID)
Returns true if this addon supports measurement configurations with the given ID, false otherwise.
|
void initializeMeasurement(Measurement measurement, MeasurementConfiguration configuration, ConstructionContext constructionContext) throws ConfigurationException, AddonException
measurement
- The measurement which should be initialized.configuration
- The configuration according to which the measurement should be initialized.constructionContext
- An interface to an object allowing to initialize the various measurement components.ConfigurationException
- Thrown if the configuration is invalid.AddonException
- Thrown if an error occurred during the initialization.ComponentAddonUI<? extends MeasurementConfiguration> createMeasurementUI(java.lang.String typeIdentifier, YouScopeClient client, YouScopeServer server) throws AddonException
typeIdentifier
- The type identifier of the measurement.client
- Interface to allow the addon to communicate with the client.server
- Interface to the server.AddonException
java.lang.String[] getSupportedTypeIdentifiers()
boolean isSupportingTypeIdentifier(java.lang.String ID)
ID
- The ID of the measurement configuration for which it should be querried if this addon supports its construction.ComponentMetadata<? extends MeasurementConfiguration> getComponentMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- The type identifier of the configuration for which the metadata should be returned.AddonException
- Thrown if identifier is not supported by the addon.