Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dedicated example using tags #102

Open
trevorhardy opened this issue Mar 26, 2024 · 1 comment
Open

Add dedicated example using tags #102

trevorhardy opened this issue Mar 26, 2024 · 1 comment
Assignees
Labels
new example New example needed

Comments

@trevorhardy
Copy link
Contributor

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 trevorhardy added the new example New example needed label Mar 26, 2024
@trevorhardy
Copy link
Contributor Author

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”
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new example New example needed
Projects
None yet
Development

No branches or pull requests

2 participants