19 | | * [[x1,y1], [x2,y2], [x3,y3]]: An arbitrary long list of single nodes. Obvioulsy, any entry in this list can also use the line and rectangle descriptions defined above. |
| 19 | * 'setName': Includes all the nodes defined by another set |
| 20 | * [[x1,y1], [x2,y2], [x3,y3]]: An arbitrary long list of single nodes. Obvioulsy, any entry in this list can also use any of th e above defined syntaxes. |
| 21 | |
| 22 | The optional 'block' allows the experimenter to configure all the nodes in the set as a single entity. The following commands are defined inside the block: |
| 23 | |
| 24 | * image= |
| 25 | * prototype |
| 26 | * net |
| 27 | |
| 28 | The following, additional commands are for expert users only: |
| 29 | |
| 30 | * addApplication |
| 31 | * onNodeUp |
| 32 | * pxeImage |
| 36 | {{{ |
| 37 | defNodes('sender1', [1, 1]) |
| 38 | defNodes('sender2', [2, 1..8]) |
| 39 | defNodes('sender', ['sender1', 'sender2', [3, 1..8]]) {|node| |
| 40 | node.prototype("test:proto:sender", { |
| 41 | 'destinationHost' => '192.168.1.1', |
| 42 | 'packetSize' => 1024, #Packet size |
| 43 | 'rate' => 300, #Offered load = 300 kbps |
| 44 | 'protocol' => 'udp' #Protocol = UDP |
| 45 | }) |
| 46 | node.net.w0.mode = "master" #802.11 Master Mode |
| 47 | } |
| 48 | }}} |
| 49 | |