; Scripting configuration file ; ; Script format: ; ; Script, ScriptClassName, ScriptSpecificName, Data ; Assertion, Assertion1ClassName, Data ; Assertion, Assertion2ClassName, Data ; Assertion, Assertion3ClassName, Data ; Reaction, Reaction1ClassName, Data ; Reaction, Reaction2ClassName, Data ; ; How the Assertions and Reactions are checked and instantiated (e.g. ; must all the assertions be true, or just one?) is specific to the ; ScriptClass being used. ; ; The "Script" tag indicates a new script definition. All Assertion ; and Reaction definitions found after the Script tag (but before the ; next script tag or EOF) are considered part of that Script. ; ; The ScriptSpecificName is optional, but you do have to leave a space ; for it in the line (e.g. "Script, ScriptClassName, , Data") - note ; the ", ,". ; ; Data is an unordered sequence of Name:Value pairs, separated by ; commas (,). This line will be parsed by the object, and the elements ; stored in a hashtable (see getData) for use by the object. See ; simulator.script.Script#parseDataLine for more information, and the API ; docs for supported input data each object. ; ; Multiple scripts can be listed, one after the other. See the scripts ; directory and related APIs for more information on available objects ; and their creation. ; ; Comments begin with ";" (duh), and spacing is ignored for the most part ; (i.e. the indenting above is just for clarity) ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Script, AndScript, My First Script, Fire:10 Assertion, Time, Op: >, Value:5 Assertion, ExecuteEventActive, Method:method-4 Reaction, QuitSim Script, OrScript, Or Example, Fire:10 Assertion, False Assertion, ScriptPulseType, Type:PERIODIC|PREEVENTS Assertion, True Reaction, Write, Line:Or test passed! Script, OrScript, Fake Disconnect Agent, Fire : * Assertion, Time, Value:2 Assertion, AgentConnected, Agent:WaterHeater Reaction, Write, Line:Sending fake disconnect Message Reaction, SendMessage, Agent:WaterHeater, Perf:ask, CW:disconnect, Control:True Script, AndScript, Quitter, Assertion, Time, Value:100 Assertion, AgentConnected, Agent:WaterHeater Reaction, Write, Line:Quitting simulator. Reaction, QuitSim Script, ExpressionScript, Expression Test Script, Expression:((0 & 1) | (!2)) Assertion, True Assertion, False Assertion, False Reaction, SetSensorDeviation, Sensor:HotWater, Deviation:((0.5 = 2 3 ~)(0.5 + 1 5 #)), Agent:WaterHeater Reaction, Write, Line:Done setting sensor