public abstract class AbstractProcessImpl extends DescribedObjectImpl implements AbstractProcess, IProcessExec, Runnable
This class implements both AbstractProcess from SensorML v2.0 bindings
and IProcessExec to allow execution if an executable implementation is
provided.
In order to provide execution capabilitiy, this class can wrap an
implementation of IProcessExec corresponding to a particular algorithm.
UUID_CODEDEFAULT_NS_URI| Constructor and Description |
|---|
AbstractProcessImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(String name,
net.opengis.swe.v20.DataComponent input)
Adds a new inputAsAbstractDataComponent property
|
void |
addInput(String name,
DataInterface input)
Adds a new inputAsDataInterface property
|
void |
addInput(String name,
ObservableProperty input)
Adds a new inputAsObservableProperty property
|
void |
addModes(AbstractModes modes)
Adds a new modes property
|
void |
addOutput(String name,
net.opengis.swe.v20.DataComponent output)
Adds a new outputAsAbstractDataComponent property
|
void |
addOutput(String name,
DataInterface output)
Adds a new outputAsDataInterface property
|
void |
addOutput(String name,
ObservableProperty output)
Adds a new outputAsObservableProperty property
|
void |
addParameter(String name,
net.opengis.swe.v20.DataComponent parameter)
Adds a new parameterAsAbstractDataComponent property
|
void |
addParameter(String name,
DataInterface parameter)
Adds a new parameterAsDataInterface property
|
void |
addParameter(String name,
ObservableProperty parameter)
Adds a new parameterAsObservableProperty property
|
boolean |
canRun()
Check that all needed connections are ready for the process
to run in sync mode (not threaded).
|
void |
connectInput(String inputName,
String dataPath,
DataConnection connection)
Connects one of this process inputs with the given connection
|
void |
connectOutput(String outputName,
String dataPath,
DataConnection connection)
Connects one of this process outputs with the given connection
|
void |
connectParameter(String paramName,
String dataPath,
DataConnection connection)
Connects one of this process parameters with the given connection
|
void |
createNewInputBlocks()
Creates new DataBlock for each input signal
|
void |
createNewOutputBlocks()
Creates new DataBlock for each output signal
|
void |
dispose()
Override to dispose of all resources allocated
for the process (stop threads, OS resources, etc...)
Default method does nothing.
|
void |
execute()
Execute is typically called several times on a process and should
contain all the logic to transform input/parameter values to
output values.
|
AbstractSettings |
getConfiguration()
Gets the configuration property
|
String |
getDefinition()
Gets the definition property
|
FeatureList |
getFeaturesOfInterest()
Gets the featuresOfInterest property
|
net.opengis.swe.v20.AbstractSWEIdentifiable |
getInput(String name)
Gets the input property with the given name
|
net.opengis.swe.v20.DataComponent |
getInputComponent(String name)
Gets the data structure of the input with the given name
|
List<DataConnectionList> |
getInputConnections() |
IOPropertyList |
getInputList()
Gets the list of input properties
|
List<AbstractModes> |
getModesList()
Gets the list of modes properties
|
int |
getNumInputs()
Returns number of input properties
|
int |
getNumModes()
Returns number of modes properties
|
int |
getNumOutputs()
Returns number of output properties
|
int |
getNumParameters()
Returns number of parameter properties
|
net.opengis.swe.v20.AbstractSWEIdentifiable |
getOutput(String name)
Gets the output property with the given name
|
net.opengis.swe.v20.DataComponent |
getOutputComponent(String name)
Gets the data structure of the output with the given name
|
List<DataConnectionList> |
getOutputConnections() |
IOPropertyList |
getOutputList()
Gets the list of output properties
|
List<DataConnectionList> |
getParamConnections() |
net.opengis.swe.v20.AbstractSWEIdentifiable |
getParameter(String name)
Gets the parameter property with the given name
|
net.opengis.swe.v20.DataComponent |
getParameterComponent(String name)
Gets the data structure of the parameter with the given name
|
IOPropertyList |
getParameterList()
Gets the list of parameter properties
|
Reference |
getTypeOf()
Gets the typeOf property
|
void |
init()
Initialize the process and its internal variables (fixed parameters).
|
boolean |
isExecutable()
Checks if the process is executable
|
boolean |
isInputConnected(String inputName)
Checks if the specified input has one or more connections
|
boolean |
isOutputConnected(String outputName)
Checks if the specified output has one or more connections
|
boolean |
isParamConnected(String paramName)
Checks if the specified parameter has one or more connections
|
boolean |
isSetConfiguration()
Checks if configuration is set
|
boolean |
isSetDefinition()
Checks if definition is set
|
boolean |
isSetFeaturesOfInterest()
Checks if featuresOfInterest is set
|
boolean |
isSetTypeOf()
Checks if typeOf is set
|
boolean |
isUsingQueueBuffers()
Checks if actual buffered queues are used to connect with this process
|
boolean |
needSync() |
void |
reset()
Resets the process (especially asnchronous ones) before it can be run again.
|
void |
run()
Process thread run method
|
void |
setAvailability(List<DataConnectionList> allConnections,
boolean availability) |
void |
setConfiguration(AbstractSettings configuration)
Sets the configuration property
|
void |
setDefinition(String definition)
Sets the definition property
|
void |
setExecutableImpl(ExecutableProcessImpl processExec) |
void |
setFeaturesOfInterest(FeatureList featuresOfInterest)
Sets the featuresOfInterest property
|
void |
setTypeOf(Reference typeOf)
Sets the typeOf property
|
void |
setUsingQueueBuffers(boolean usingQueueBuffers) |
void |
start()
Start process thread
|
void |
stop()
Stop process thread gracefully
|
String |
toString()
Print process name and I/O info
|
void |
transferData(List<DataConnectionList> allConnections) |
addCapabilities, addCharacteristics, addClassification, addContacts, addDocumentation, addExtension, addHistory, addIdentification, addKeywords, addLegalConstraints, addSecurityConstraints, addValidTimeAsTimeInstant, addValidTimeAsTimePeriod, getCapabilities, getCapabilitiesList, getCharacteristics, getCharacteristicsList, getClassificationList, getContactsList, getDocumentationList, getExtensionList, getHistoryList, getIdentificationList, getKeywordsList, getLang, getLegalConstraintsList, getNumCapabilities, getNumCharacteristics, getNumClassifications, getNumContacts, getNumDocumentations, getNumExtensions, getNumHistorys, getNumIdentifications, getNumKeywords, getNumLegalConstraints, getNumSecurityConstraints, getNumValidTimes, getSecurityConstraintsList, getValidTimeList, isSetLang, setLangequals, getBoundedBy, getLocation, getLocationProperty, getQName, hashCode, isSetBoundedBy, isSetLocation, setBoundedByAsEnvelope, setLocationaddName, getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataPropertyList, getName, getNameList, getNumNames, getUniqueIdentifier, isSetDescription, isSetDescriptionReference, isSetIdentifier, setDescription, setDescriptionReference, setId, setIdentifier, setName, setUniqueIdentifieraddCapabilities, addCharacteristics, addClassification, addContacts, addDocumentation, addExtension, addHistory, addIdentification, addKeywords, addLegalConstraints, addSecurityConstraints, addValidTimeAsTimeInstant, addValidTimeAsTimePeriod, getCapabilities, getCapabilitiesList, getCharacteristics, getCharacteristicsList, getClassificationList, getContactsList, getDocumentationList, getExtensionList, getHistoryList, getIdentificationList, getKeywordsList, getLang, getLegalConstraintsList, getNumCapabilities, getNumCharacteristics, getNumClassifications, getNumContacts, getNumDocumentations, getNumExtensions, getNumHistorys, getNumIdentifications, getNumKeywords, getNumLegalConstraints, getNumSecurityConstraints, getNumValidTimes, getSecurityConstraintsList, getValidTimeList, isSetLang, setLanggetBoundedBy, getLocation, getLocationProperty, getQName, isSetBoundedBy, isSetLocation, setBoundedByAsEnvelope, setLocationaddName, getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataPropertyList, getName, getNameList, getNumNames, getUniqueIdentifier, isSetDescription, isSetDescriptionReference, isSetIdentifier, setDescription, setDescriptionReference, setId, setIdentifier, setName, setUniqueIdentifiergetNamepublic void setExecutableImpl(ExecutableProcessImpl processExec) throws SMLException
SMLExceptionpublic boolean isExecutable()
AbstractProcessisExecutable in interface AbstractProcesspublic void init()
throws SMLException
IProcessExecinit in interface IProcessExecSMLExceptionpublic void reset()
throws SMLException
IProcessExecreset in interface IProcessExecSMLExceptionpublic void execute()
throws SMLException
IProcessExecexecute in interface IProcessExecSMLExceptionpublic void dispose()
IProcessExecdispose in interface IProcessExecpublic boolean canRun()
IProcessExeccanRun in interface IProcessExecpublic void createNewOutputBlocks()
IProcessExeccreateNewOutputBlocks in interface IProcessExecpublic void createNewInputBlocks()
IProcessExeccreateNewInputBlocks in interface IProcessExecpublic void run()
IProcessExecrun in interface Runnablerun in interface IProcessExecpublic void start()
throws SMLException
IProcessExecstart in interface IProcessExecSMLExceptionpublic void stop()
IProcessExecstop in interface IProcessExecpublic String toString()
public void connectInput(String inputName, String dataPath, DataConnection connection) throws SMLException
IProcessExecconnectInput in interface IProcessExecinputName - name of input to connectdataPath - path of component to connectconnection - connection object whose destination will be set to the specified componentSMLExceptionpublic void connectOutput(String outputName, String dataPath, DataConnection connection) throws SMLException
IProcessExecconnectOutput in interface IProcessExecoutputName - name of output to connectdataPath - path of component to connectconnection - connection object whose source will be set to the specified componentSMLExceptionpublic void connectParameter(String paramName, String dataPath, DataConnection connection) throws SMLException
IProcessExecconnectParameter in interface IProcessExecparamName - name of parameter to connectdataPath - path of component to connectconnection - connection object whose destination will be set to the specified componentSMLExceptionpublic boolean isInputConnected(String inputName)
IProcessExecisInputConnected in interface IProcessExecinputName - name of inputpublic boolean isOutputConnected(String outputName)
IProcessExecisOutputConnected in interface IProcessExecoutputName - name of outputpublic boolean isParamConnected(String paramName)
IProcessExecisParamConnected in interface IProcessExecparamName - name of parameterpublic List<DataConnectionList> getInputConnections()
getInputConnections in interface IProcessExecpublic List<DataConnectionList> getParamConnections()
getParamConnections in interface IProcessExecpublic List<DataConnectionList> getOutputConnections()
getOutputConnections in interface IProcessExecpublic boolean isUsingQueueBuffers()
IProcessExecisUsingQueueBuffers in interface IProcessExecpublic void setUsingQueueBuffers(boolean usingQueueBuffers)
setUsingQueueBuffers in interface IProcessExecpublic boolean needSync()
needSync in interface IProcessExecpublic void setAvailability(List<DataConnectionList> allConnections, boolean availability)
setAvailability in interface IProcessExecpublic void transferData(List<DataConnectionList> allConnections)
transferData in interface IProcessExecpublic Reference getTypeOf()
getTypeOf in interface AbstractProcesspublic boolean isSetTypeOf()
isSetTypeOf in interface AbstractProcesspublic void setTypeOf(Reference typeOf)
setTypeOf in interface AbstractProcesspublic AbstractSettings getConfiguration()
getConfiguration in interface AbstractProcesspublic boolean isSetConfiguration()
isSetConfiguration in interface AbstractProcesspublic void setConfiguration(AbstractSettings configuration)
setConfiguration in interface AbstractProcesspublic FeatureList getFeaturesOfInterest()
getFeaturesOfInterest in interface AbstractProcesspublic boolean isSetFeaturesOfInterest()
isSetFeaturesOfInterest in interface AbstractProcesspublic void setFeaturesOfInterest(FeatureList featuresOfInterest)
setFeaturesOfInterest in interface AbstractProcesspublic IOPropertyList getInputList()
AbstractProcessgetInputList in interface AbstractProcessgetInputList in interface IProcessExecpublic int getNumInputs()
AbstractProcessgetNumInputs in interface AbstractProcesspublic net.opengis.swe.v20.AbstractSWEIdentifiable getInput(String name)
AbstractProcessgetInput in interface AbstractProcesspublic net.opengis.swe.v20.DataComponent getInputComponent(String name)
AbstractProcessgetInputComponent in interface AbstractProcesspublic void addInput(String name, net.opengis.swe.v20.DataComponent input)
AbstractProcessaddInput in interface AbstractProcesspublic void addInput(String name, ObservableProperty input)
AbstractProcessaddInput in interface AbstractProcesspublic void addInput(String name, DataInterface input)
AbstractProcessaddInput in interface AbstractProcesspublic IOPropertyList getOutputList()
AbstractProcessgetOutputList in interface AbstractProcessgetOutputList in interface IProcessExecpublic int getNumOutputs()
AbstractProcessgetNumOutputs in interface AbstractProcesspublic net.opengis.swe.v20.AbstractSWEIdentifiable getOutput(String name)
AbstractProcessgetOutput in interface AbstractProcesspublic net.opengis.swe.v20.DataComponent getOutputComponent(String name)
AbstractProcessgetOutputComponent in interface AbstractProcesspublic void addOutput(String name, net.opengis.swe.v20.DataComponent output)
AbstractProcessaddOutput in interface AbstractProcesspublic void addOutput(String name, ObservableProperty output)
AbstractProcessaddOutput in interface AbstractProcesspublic void addOutput(String name, DataInterface output)
AbstractProcessaddOutput in interface AbstractProcesspublic int getNumParameters()
AbstractProcessgetNumParameters in interface AbstractProcesspublic net.opengis.swe.v20.AbstractSWEIdentifiable getParameter(String name)
AbstractProcessgetParameter in interface AbstractProcesspublic net.opengis.swe.v20.DataComponent getParameterComponent(String name)
AbstractProcessgetParameterComponent in interface AbstractProcesspublic void addParameter(String name, net.opengis.swe.v20.DataComponent parameter)
AbstractProcessaddParameter in interface AbstractProcesspublic void addParameter(String name, ObservableProperty parameter)
AbstractProcessaddParameter in interface AbstractProcesspublic void addParameter(String name, DataInterface parameter)
AbstractProcessaddParameter in interface AbstractProcesspublic IOPropertyList getParameterList()
AbstractProcessgetParameterList in interface AbstractProcessgetParameterList in interface IProcessExecpublic List<AbstractModes> getModesList()
getModesList in interface AbstractProcesspublic int getNumModes()
getNumModes in interface AbstractProcesspublic void addModes(AbstractModes modes)
addModes in interface AbstractProcesspublic String getDefinition()
getDefinition in interface AbstractProcesspublic boolean isSetDefinition()
isSetDefinition in interface AbstractProcesspublic void setDefinition(String definition)
setDefinition in interface AbstractProcessCopyright © 2016 VAST Team / Sensia Software LLC. All rights reserved.