Changes between Initial Version and Version 1 of Old/NodeHandler/Commands/prop


Ignore:
Timestamp:
Apr 13, 2006, 1:06:04 PM (19 years ago)
Author:
max
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/NodeHandler/Commands/prop

    v1 v1  
     1[wiki:Documentation]
     2| [wiki:Documentation/NodeHandler NodeHandler]
     3| [wiki:Documentation/NodeHandler/Commands Commands]
     4| prop
     5
     6
     7= prop: Setting Experiment Properties =
     8
     9Parameters 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
     21The supported syntax for the ''setSelector'' can be found in [wiki:Documentation/NodeHandler/Commands/defNodes defNodes] where it is simply called ''selector''.
     22
     23The list of commands currently defined can be found '''missing'''. A description of the resource paths can be found '''mssing'''.
     24
     25== Usage ==
     26
     27{{{
     28nodes('sender1').startApplications
     29nodes(['s1', 'r1']).net.wo.essid = "orbit"
     30nodes('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]