Skip to content

Instantly share code, notes, and snippets.

@psndcsrv
Last active December 24, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psndcsrv/6874123 to your computer and use it in GitHub Desktop.
Save psndcsrv/6874123 to your computer and use it in GitHub Desktop.
Proposed AgentScript state model
{
"agentProperties": {
"rain": ["breed","y","x","heading"],
"evap": ["breed","y","x","heading"]
},
"agents": [
["rain",86,-15,3.141592653589793],
["rain",86,-247,0],
["rain",86,-260,0],
["rain",87,201,3.141592653589793],
["rain",4,-399,4.71238898038469],
["rain",86,-229,0],
["rain",87,68,3.141592653589793],
["rain",87,336,3.141592653589793],
["rain",86,-313,3.141592653589793],
["rain",87,203,3.141592653589793],
["rain",86,-28,3.141592653589793],
["rain",70,-399,3.141592653589793],
["rain",86,-174,3.141592653589793],
["rain",87,77,0],
["rain",87,46,0],
["rain",87,171,0],
["evap",126.22931327170646,127.2857512071567,1.8325957145940461],
["evap",114.60534585553938,-341.10908466211396,0.8726646259971648],
["evap",114.9782463857133,106.45107515912201,1.8325957145940461],
["evap",112.61549236042204,-396.33767897992783,1.5707963267948966],
["evap",109.91334566379234,261.81523003512643,2.0245819323134224],
["evap",107.74173719912743,182.11580433081807,1.8151424220741028],
["evap",105.72147112563057,134.15539439726672,2.076941809873252],
["evap",104.94456822732334,-392.32878602239776,1.8675022996339325],
["evap",101.72211851675144,-129.3427619752801,2.1467549799530254],
["evap",100.8451382401665,206.11491335237466,1.7976891295541593],
["evap",96.0145241500122,-39.99084143746524,1.8151424220741028],
["evap",93.32700557240167,302.8801400149459,1.9896753472735356],
["evap",90.6974985100658,39.22113685612328,1.5882496193148399],
["evap",88.95615245111942,-229.69017588883997,1.5533430342749535]
],
"patchProperties":[ /* Similar to above */ ],
"patches":[ /* Similar to above */ ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment