public interface IProcessExec
Modifier and Type | Method and Description |
---|---|
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.
|
List<DataConnectionList> |
getInputConnections() |
IOPropertyList |
getInputList() |
String |
getName() |
List<DataConnectionList> |
getOutputConnections() |
IOPropertyList |
getOutputList() |
List<DataConnectionList> |
getParamConnections() |
IOPropertyList |
getParameterList() |
void |
init()
Initialize the process and its internal variables (fixed parameters).
|
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 |
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 |
setUsingQueueBuffers(boolean usingQueueBuffers) |
void |
start()
Start process thread
|
void |
stop()
Stop process thread gracefully
|
void |
transferData(List<DataConnectionList> allConnections) |
String getName()
void init() throws SMLException
SMLException
void execute() throws SMLException
SMLException
void reset() throws SMLException
SMLException
void dispose()
boolean canRun()
void createNewOutputBlocks()
void createNewInputBlocks()
void run()
void start() throws SMLException
SMLException
void stop()
IOPropertyList getInputList()
IOPropertyList getOutputList()
IOPropertyList getParameterList()
List<DataConnectionList> getInputConnections()
List<DataConnectionList> getParamConnections()
List<DataConnectionList> getOutputConnections()
void connectInput(String inputName, String dataPath, DataConnection connection) throws SMLException
inputName
- name of input to connectdataPath
- path of component to connectconnection
- connection object whose destination will be set to the specified componentSMLException
void connectOutput(String outputName, String dataPath, DataConnection connection) throws SMLException
outputName
- name of output to connectdataPath
- path of component to connectconnection
- connection object whose source will be set to the specified componentSMLException
void connectParameter(String paramName, String dataPath, DataConnection connection) throws SMLException
paramName
- name of parameter to connectdataPath
- path of component to connectconnection
- connection object whose destination will be set to the specified componentSMLException
boolean isInputConnected(String inputName)
inputName
- name of inputboolean isOutputConnected(String outputName)
outputName
- name of outputboolean isParamConnected(String paramName)
paramName
- name of parameterboolean isUsingQueueBuffers()
void setUsingQueueBuffers(boolean usingQueueBuffers)
boolean needSync()
void setAvailability(List<DataConnectionList> allConnections, boolean availability)
void transferData(List<DataConnectionList> allConnections)
Copyright © 2016 Sensia Software LLC. All rights reserved.