use of org.openremote.app.client.simulator.Simulator in project openremote by openremote.
the class AssetViewActivity method createSimulator.
protected Simulator createSimulator(AssetAttribute attribute, AttributeViewImpl view) {
AttributeRef protocolConfigurationRef = attribute.getReferenceOrThrow();
return new Simulator(environment, this.view.getStyle(), view, attribute, protocolConfigurationRef, () -> {
activeSimulators.add(protocolConfigurationRef);
updateSimulatorSubscription();
}, () -> {
activeSimulators.remove(protocolConfigurationRef);
updateSimulatorSubscription();
});
}
Aggregations