Skip to content

Instantly share code, notes, and snippets.

@KristianKarl
Created February 11, 2020 12:21
Show Gist options
  • Save KristianKarl/402a0fb09b59bc11237d05d79d3eea66 to your computer and use it in GitHub Desktop.
Save KristianKarl/402a0fb09b59bc11237d05d79d3eea66 to your computer and use it in GitHub Desktop.
{
"name": "Shared state example.",
"models": [
{
"name": "FirstModel",
"generator": "quick_random(vertex_coverage(100))",
"startElementId": "v0",
"actions": [
"global.available = true"
],
"vertices": [
{
"id": "v0",
"name": "vertex_A"
},
{
"id": "v1",
"name": "vertex_B",
"sharedState": "link"
}
],
"edges": [
{
"id": "e0",
"name": "edge_A",
"sourceVertexId": "v0",
"targetVertexId": "v1"
},
{
"id": "e1",
"name": "edge_B",
"actions": [
"global.available = true"
],
"sourceVertexId": "v1",
"targetVertexId": "v0"
}
]
},
{
"name": "SecondModel",
"generator": "quick_random(vertex_coverage(100))",
"startElementId": "v0",
"vertices": [
{
"id": "v2",
"name": "vertex_C",
"sharedState": "link"
},
{
"id": "v3",
"name": "vertex_D"
}
],
"edges": [
{
"id": "e2",
"name": "edge_C",
"guard": "global.available == true",
"sourceVertexId": "v2",
"targetVertexId": "v3"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment