Applications and services can use either publish/subscribe mechanism or Python API to interact with GridAPPS-D platform.
Publish/Subscribe mechanism can be implemented using any of the language bindings for ActiveMQ messaging framework.
Python API wraps the publish/subscribe messaging and makes the interaction easier for Python apps/services. For more information on Python API and how to use it, look at https://github.com/GRIDAPPSD/gridappsd-python and https://github.com/GRIDAPPSD/gridappsd-sample-app.
Following sections describe the messaging APIs and the corresponding Python API function to interact with platform. Where no Python API function is mentioned, following generic functions can be used.
:
send(self, topic, message)
get_response(self, topic, message, timeout=5)
subscribe(self, topic, callback, id=None)
Sensor Simulator Service The GridAPPSD's Sensor Simulator simulates real devices based upon the magnitude of "prestine" simulated values. Currently the sensor service supports angle and magnitude measurements.
'_GridAPPS-D DNP3 Service <https://gridappsd-dnp3.readthedocs.io/en/develop/>'__ The GridAPPS-D DNP3 Service integrates GridAPPS-D with DNP3 based commercial tools to enable the CIM and DNP3 data exchange of the devices.