Class ObservableHelper
java.lang.Object
eu.qualimaster.easy.extension.internal.ObservableHelper
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
public class ObservableHelper
extends Object
implements net.ssehub.easy.instantiation.core.model.vilTypes.IVilType
Maps IVML names to observables.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic eu.qualimaster.observables.IObservablemapObservable(String ivmlName) Turns the IVML name of an observable into an observable.static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String, eu.qualimaster.observables.IObservable> mapObservable(net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> ivmlNames) Turns a set of string names into a mapping of names and observables.
-
Constructor Details
-
ObservableHelper
public ObservableHelper()
-
-
Method Details
-
mapObservable
Turns the IVML name of an observable into an observable.- Parameters:
ivmlName- the IVML name- Returns:
- the observable (may be null if there is no mapping)
-
mapObservable
public static net.ssehub.easy.instantiation.core.model.vilTypes.Map<String,eu.qualimaster.observables.IObservable> mapObservable(net.ssehub.easy.instantiation.core.model.vilTypes.Set<String> ivmlNames) Turns a set of string names into a mapping of names and observables. Observables are added only if there is a mapping throughmapObservable(String),- Parameters:
ivmlNames- the names to be mapped- Returns:
- the name-observable mapping
-