public interface ComponentProvider
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
Component |
createComponent(PositionInformation positionInformation,
Configuration configuration)
Creates a measurement component for the given configuration.
|
<T extends Component> |
createComponent(PositionInformation positionInformation,
Configuration configuration,
java.lang.Class<T> componentKind)
Creates a measurement component of a given type for the given configuration.
|
Component |
createComponent(PositionInformation positionInformation,
java.lang.String typeIdentifier)
Creates a component with the given type identifier and its default configuration
Note that not all components support default construction.
|
<T extends Component> |
createComponent(PositionInformation positionInformation,
java.lang.String typeIdentifier,
java.lang.Class<T> componentInterface)
Creates a component with the given type identifier and its default configuration, which additionally has a given interface.
|
Job |
createJob(PositionInformation positionInformation,
JobConfiguration jobConfiguration)
Creates a job for the given configuration.
|
<T extends Job> |
createJob(PositionInformation positionInformation,
JobConfiguration jobConfiguration,
java.lang.Class<T> jobInterface)
Creates a job of a given class for the given configuration.
|
Job |
createJob(PositionInformation positionInformation,
java.lang.String typeIdentifier)
Creates a job which has a given type identifier with its default configuration.
|
<T extends Job> |
createJob(PositionInformation positionInformation,
java.lang.String typeIdentifier,
java.lang.Class<T> jobInterface)
Creates a job which has a given type identifier and interface with its default configuration.
|
Component createComponent(PositionInformation positionInformation, Configuration configuration) throws ComponentCreationException, ConfigurationException, java.rmi.RemoteException
configuration
- The configuration of the component.positionInformation
- The abstract position of the newly created component in the measurement.ComponentCreationException
ConfigurationException
java.rmi.RemoteException
<T extends Component> T createComponent(PositionInformation positionInformation, java.lang.String typeIdentifier, java.lang.Class<T> componentInterface) throws ComponentCreationException, java.rmi.RemoteException
positionInformation
- The abstract position of the newly created component in the measurement.typeIdentifier
- The type identifier of the component.componentInterface
- The interface of the component which should be created.ComponentCreationException
java.rmi.RemoteException
Component createComponent(PositionInformation positionInformation, java.lang.String typeIdentifier) throws ComponentCreationException, java.rmi.RemoteException
positionInformation
- The abstract position of the newly created component in the measurement.typeIdentifier
- The type identifier of the component.ComponentCreationException
java.rmi.RemoteException
<T extends Component> T createComponent(PositionInformation positionInformation, Configuration configuration, java.lang.Class<T> componentKind) throws ComponentCreationException, ConfigurationException, java.rmi.RemoteException
componentKind
- The super-class/kind of the component.configuration
- The configuration of the component.positionInformation
- The abstract position of the newly created component in the measurement.ComponentCreationException
ConfigurationException
java.rmi.RemoteException
Job createJob(PositionInformation positionInformation, JobConfiguration jobConfiguration) throws ComponentCreationException, ConfigurationException, java.rmi.RemoteException
createComponent(positionInformation, jobConfiguration, Job.class
. If the component corresponding to the configuration is not a job,
a ComponentCreationException is thrown.jobConfiguration
- The configuration of the job.positionInformation
- The abstract position of the newly created job in the measurement.ComponentCreationException
ConfigurationException
java.rmi.RemoteException
<T extends Job> T createJob(PositionInformation positionInformation, java.lang.String typeIdentifier, java.lang.Class<T> jobInterface) throws ComponentCreationException, java.rmi.RemoteException
positionInformation
- The abstract position of the newly created job in the measurement.typeIdentifier
- Type identifier of job.jobInterface
- The interface of the job which should be created.ComponentCreationException
java.rmi.RemoteException
Job createJob(PositionInformation positionInformation, java.lang.String typeIdentifier) throws ComponentCreationException, java.rmi.RemoteException
positionInformation
- The abstract position of the newly created job in the measurement.typeIdentifier
- Type identifier of job.ComponentCreationException
java.rmi.RemoteException
<T extends Job> T createJob(PositionInformation positionInformation, JobConfiguration jobConfiguration, java.lang.Class<T> jobInterface) throws ComponentCreationException, ConfigurationException, java.rmi.RemoteException
createComponent(positionInformation, jobConfiguration, jobInterface)
. If the component corresponding to the configuration does not implement the given job interface,
a ComponentCreationException is thrown.jobConfiguration
- The configuration of the job.positionInformation
- The abstract position of the newly created job in the measurement.jobInterface
- The interface of the job which should be created.ComponentCreationException
ConfigurationException
java.rmi.RemoteException