GMLC-TDC / HELICS-Examples

Examples for using HELICS with a variety of the supported programming languages
BSD 3-Clause "New" or "Revised" License
21 stars 19 forks source link

Add dedicated example using tags #102

Open trevorhardy opened 5 months ago

trevorhardy commented 5 months ago

Tags have been supported for a few releases now but we don't have any example showing why they might be used and how to use them. Add such an example.

The example will likely use the query mechanism to identify the tags on other federates and interfaces.

The example should show how to set tags using the JSON config as well as an API.

The example could show the use of tags to single out a particular EV's power consumption and make a graph of it.

trevorhardy commented 4 months ago

Phil thinks the following syntax should work for defining tags in a JSON. These can be used to tag both federates as well as interfaces (publications, inputs, and endpoints):

{
  “tags”: {
     “tag name 1”: “tag value 1”,
     “tag name 2”: “tag value 2”
  }
}