| 1 | [wiki:Documentation] |
| 2 | | [wiki:Documentation/NodeHandler NodeHandler] |
| 3 | | [wiki:Documentation/NodeHandler/Commands Commands] |
| 4 | | prop |
| 5 | |
| 6 | |
| 7 | = prop: Setting Experiment Properties = |
| 8 | |
| 9 | Parameters of application or values of resources used in the experiment can be bound to experiment properties defined with [wiki:Documentation/NodeHandler/Commands/defProperty defProperty]. When changing an experiment property via the 'prop' command, the nodehandler will follow all the bindings and will automatically issue all the necessary commands to propagate the new value to all the bound applications and resources. |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | == Syntax: prop.''propName'' = newValue == |
| 15 | |
| 16 | * '''setSelector''': The set of nodes to use |
| 17 | * '''command''': Command to issue on the set. |
| 18 | * '''resource_path:''' Path to resource. |
| 19 | * '''value:''' Value to assign to resource. |
| 20 | |
| 21 | The supported syntax for the ''setSelector'' can be found in [wiki:Documentation/NodeHandler/Commands/defNodes defNodes] where it is simply called ''selector''. |
| 22 | |
| 23 | The list of commands currently defined can be found '''missing'''. A description of the resource paths can be found '''mssing'''. |
| 24 | |
| 25 | == Usage == |
| 26 | |
| 27 | {{{ |
| 28 | nodes('sender1').startApplications |
| 29 | nodes(['s1', 'r1']).net.wo.essid = "orbit" |
| 30 | nodes('sender').net.wo { |w| |
| 31 | w.essid = "orbit" |
| 32 | w.ip = "%192.168.%x.%y" |
| 33 | } |
| 34 | }}} |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | == See Also == |
| 40 | |
| 41 | [wiki:Documentation/NodeHandler/Commands/defProperty defProperty] |