public class SMLHelper extends SMLFactory
newObservableProperty
Constructor and Description |
---|
SMLHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
applyConfig(AbstractProcess process,
Settings settings)
Applies a configuration on a base process
|
static DataComponent |
findComponentByPath(AbstractProcess parent,
String path)
Finds a component in the process/component tree using a path
|
static DataComponent |
findComponentByPath(AbstractProcess parent,
String[] path)
Finds a component in a process/component tree using a path.
Link path format is either '[components/{component_name}/...][inputs|outputs|parameters]/{name}/{name}/... |
static AbstractProcess |
getConfiguredInstance(AbstractProcess process,
boolean mergeMetadata)
Generates a configured instance by copying I/Os definition from parent instance
(if typeOf property is present), and applying configuration settings.
|
static DataComponent |
getIOComponent(AbstractSWEIdentifiable ioDef)
Helper to get the input/output/parameter component description whether
the IO is wrapped in a DataInterface or DataStream or given as a raw
DataComponent.
|
static DataEncoding |
getIOEncoding(AbstractSWEIdentifiable ioDef)
Helper to get the input/output/parameter encoding description whether
the IO is wrapped in a DataInterface or DataStream.
This method returns null if the IO is described as a raw DataComponent. |
static void |
makeProcessExecutable(AbstractProcessImpl process)
Makes a process executable by instantiating and wrapping an implementation of IProcessExec.
The actual implementation is found using the method URI. |
static void |
makeProcessExecutable(AbstractProcessImpl process,
ProcessLoader processLoader) |
CIResponsibleParty |
newResponsibleParty() |
newAbstractMetadataList, newAbstractModes, newAbstractSettings, newAggregateProcess, newArraySetting, newCapabilityList, newCharacteristicList, newClassifierList, newConstraintSetting, newConstraintSetting, newContactList, newDataInterface, newDocumentList, newEvent, newEventList, newFeatureList, newIdentifierList, newKeywordList, newLink, newMode, newModeChoice, newModeSetting, newModeSetting, newObservableProperty, newPhysicalComponent, newPhysicalSystem, newProcessMethod, newSettings, newSimpleProcess, newSpatialFrame, newStatusSetting, newStatusSetting, newTemporalFrame, newTerm, newValueSetting, newValueSetting
public CIResponsibleParty newResponsibleParty()
public static DataComponent getIOComponent(AbstractSWEIdentifiable ioDef)
ioDef
- public static DataEncoding getIOEncoding(AbstractSWEIdentifiable ioDef)
ioDef
- public static DataComponent findComponentByPath(AbstractProcess parent, String path) throws SMLException
parent
- process from which to start the searchpath
- desired path as a String composed of process names, process sections and component names separated by charactersSMLException
- if the specified path is incorrectpublic static DataComponent findComponentByPath(AbstractProcess parent, String[] path) throws SMLException
parent
- process from which to start the searchpath
- desired path as a String array cotnaining a sequence of component namesSMLException
- if the specified path is incorrectpublic static void makeProcessExecutable(AbstractProcessImpl process) throws SMLException
process
- SMLException
public static void makeProcessExecutable(AbstractProcessImpl process, ProcessLoader processLoader) throws SMLException
SMLException
public static AbstractProcess getConfiguredInstance(AbstractProcess process, boolean mergeMetadata) throws SMLException
process
- process with typeOf and configuration settingsmergeMetadata
- if true, parent metadata will also be copied to the new instanceSMLException
- if configuration is invalid or cannot be appliedpublic static void applyConfig(AbstractProcess process, Settings settings) throws SMLException
process
- settings
- SMLException
Copyright © 2016 Sensia Software LLC. All rights reserved.