Skip to content

Instantly share code, notes, and snippets.

@7yl4r
Last active August 29, 2015 14:20
Show Gist options
  • Save 7yl4r/ecf36f449034209b8c2e to your computer and use it in GitHub Desktop.
Save 7yl4r/ecf36f449034209b8c2e to your computer and use it in GitHub Desktop.
noflo HBM
{
"properties": {
"name": "main",
"environment": {
"type": "noflo-browser",
"content": "probe reading:\n<div style=\"position: absolute; top:1.5em; right:0;\">\n <-0\n <div style=\"position: relative; top:180px; right:0;\">\n <-200\n </div>\n</div>\n<br><br>\n<canvas id=\"plot-canvas\" width=\"200\" height=\"200\"></canvas>\n<div>\n t=0days . . .\n <span style=\"position: absolute; right: 2em\">\n . . . 100days \n </span>\n</div>\n"
},
"icon": ""
},
"inports": {},
"outports": {},
"groups": [
{
"name": "context",
"nodes": [
"attitude towards PA",
"subjective norms of PA",
"perceived behavioral control"
],
"metadata": {
"description": "information from the agent environment"
}
},
{
"name": "state",
"nodes": [
"PA behavior",
"PA intention"
],
"metadata": {
"description": "internal state of the agent"
}
}
],
"processes": {
"perceived behavioral control": {
"component": "canvas/MakeRandom",
"metadata": {
"label": "perceived behavioral control",
"x": 288,
"y": 396,
"width": 72,
"height": 72
}
},
"attitude towards PA": {
"component": "7yl4r_HBM-PoC/HBM-const",
"metadata": {
"label": "attitude towards PA",
"x": 288,
"y": 108,
"width": 72,
"height": 72
}
},
"7yl4r_HBM-PoC/probe_t9c80": {
"component": "7yl4r_HBM-PoC/probe",
"metadata": {
"label": "7yl4r_HBM-PoC/probe",
"x": 972,
"y": 324,
"width": 72,
"height": 72
}
},
"subjective norms of PA": {
"component": "7yl4r_HBM-PoC/HBM-squareWaveGen",
"metadata": {
"label": "subjective norms of PA",
"x": 288,
"y": 252,
"width": 72,
"height": 72
}
},
"PA intention": {
"component": "7yl4r_HBM-PoC/diffEq",
"metadata": {
"label": "PA intention",
"x": 540,
"y": 180,
"width": 72,
"height": 84
}
},
"PA behavior": {
"component": "7yl4r_HBM-PoC/diffEq",
"metadata": {
"label": "PA behavior",
"x": 720,
"y": 324,
"width": 72,
"height": 84
}
}
},
"connections": [
{
"src": {
"process": "attitude towards PA",
"port": "numbers"
},
"tgt": {
"process": "PA intention",
"port": "in_1"
},
"metadata": {
"route": 1
}
},
{
"src": {
"process": "subjective norms of PA",
"port": "out"
},
"tgt": {
"process": "PA intention",
"port": "in_2"
},
"metadata": {
"route": 4
}
},
{
"src": {
"process": "perceived behavioral control",
"port": "numbers"
},
"tgt": {
"process": "PA intention",
"port": "in_3"
},
"metadata": {
"route": 7
}
},
{
"src": {
"process": "PA intention",
"port": "out"
},
"tgt": {
"process": "PA behavior",
"port": "in_1"
},
"metadata": {
"route": 3
}
},
{
"src": {
"process": "perceived behavioral control",
"port": "numbers"
},
"tgt": {
"process": "PA behavior",
"port": "in_2"
},
"metadata": {
"route": 7
}
},
{
"src": {
"process": "PA behavior",
"port": "out"
},
"tgt": {
"process": "7yl4r_HBM-PoC/probe_t9c80",
"port": "in"
},
"metadata": {
"route": null
}
},
{
"data": "#plot-canvas",
"tgt": {
"process": "7yl4r_HBM-PoC/probe_t9c80",
"port": "canvas_selector"
}
},
{
"data": 20,
"tgt": {
"process": "subjective norms of PA",
"port": "period"
}
},
{
"data": 50,
"tgt": {
"process": "subjective norms of PA",
"port": "low"
}
},
{
"data": 100,
"tgt": {
"process": "7yl4r_HBM-PoC/probe_t9c80",
"port": "len_values"
}
},
{
"data": 100,
"tgt": {
"process": "attitude towards PA",
"port": "length"
}
},
{
"data": "100",
"tgt": {
"process": "perceived behavioral control",
"port": "count"
}
},
{
"data": 100,
"tgt": {
"process": "subjective norms of PA",
"port": "len"
}
},
{
"data": 100,
"tgt": {
"process": "subjective norms of PA",
"port": "high"
}
},
{
"data": 20,
"tgt": {
"process": "perceived behavioral control",
"port": "min"
}
},
{
"data": 50,
"tgt": {
"process": "perceived behavioral control",
"port": "max"
}
},
{
"data": 50,
"tgt": {
"process": "attitude towards PA",
"port": "value"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment