Using a subscription based system, a DataLayerInterface allows access to PDG data. DataLayerVisualizer implementations can subscribe to pdg objects and receive messages whenever data changes.
Methods ¶
Instance Methods ¶
init()
Performs any necessary initialization, called as soon as the interface is created.
term()
Performs any necessary cleanup, called when destroying the interface.
subscribe(data_layer_visualizer, path)
Registers a new subscription from the given data layer visualizer to the specified path.
unsubscribe(data_layer_visualizer, path)
Removes the subscription from the given data layer visualizer to the specified path.
getBackend()
→ DataBackend
Returns the data backend being used by the interface.
getHandler(path)
→ DataLayerSubscriptionHandler
Returns the handler responsible for the object located in path.
getId()
→ int
Returns the interface’s unique id.