Version 2 (modified by 19 years ago) ( diff ) | ,
---|
Documentation | NodeHandler | Commands | prop
prop: Setting Experiment Properties ¶
Parameters of application or values of resources used in the experiment can be bound to experiment properties defined with 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.
Syntax: prop.propName, prop.propName = newValue ¶
- propName: Name of experiment property
- newValue: New value to assign to property.
Usage ¶
defProperty('rate', 300, 'Bits per second sent from sender') defNodes('sender', [1,2]) {|node| node.prototype("test:proto:sender", { ... 'rate' => prop.rate }) } whenAllInstalled { ... [500, 1000, 2000].each { |newRate| prop.rate = newRate wait 30 } }
See Also ¶
Note:
See TracWiki
for help on using the wiki.