Search in sources :

Example 1 with Simulator

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();
    });
}
Also used : AttributeRef(org.openremote.model.attribute.AttributeRef) Simulator(org.openremote.app.client.simulator.Simulator)

Aggregations

Simulator (org.openremote.app.client.simulator.Simulator)1 AttributeRef (org.openremote.model.attribute.AttributeRef)1