Changes between Version 4 and Version 5 of Old/NodeHandler/Commands/defTopology
- Timestamp:
- Aug 28, 2007, 7:32:28 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/NodeHandler/Commands/defTopology
v4 v5 6 6 = defTopology: Define a Topology = 7 7 8 This command defines a topology consisting of a set of nodes and noise injection settings to configure a specific topology. An experiment can normally only contain a single topology with noise settings, but may create additional topology declarations which are a sub set of the 'base' topology.8 This command defines a topology consisting of a set of nodes and optional noise injection settings to configure a specific topology. 9 9 10 == Syntax: defTopology(name, nodeArray = nil, &block = nil) == 10 An experiment can normally only contain a single topology with noise settings, but may create additional topology declarations which are a sub set of existing topologies. 11 12 == Syntax: == 13 === defTopology( name , nodeArray = nil , &block = nil ) === 11 14 12 15 * '''name:''' Name of the defined topology. 13 * '''nodeArray:''' Selects the nodes used in this topology .14 * '''block:''' Additional modifications on the create topology .16 * '''nodeArray:''' Selects the nodes used in this topology (optional). 17 * '''block:''' Additional modifications on the create topology (optional). 15 18 16 The 'name' is a uri string identifying the topology. For instance, it can be used in 'defNodes' commands. The following naming convention is encouraged: ''projectName'':'''topo''':''topologyName''19 The 'name' argument is a uri string identifying the topology. For instance, it can be used in 'defNodes' commands. The following naming convention is encouraged: ''projectName'':'''topo''':''topologyName'' 17 20 18 The 'nodeArray'defines which nodes are in the topology. The following array patterns are supported:21 The optional 'nodeArray' argument defines which nodes are in the topology. The following array patterns are supported: 19 22 20 23 * [x,y]: Describes a single node at location x@y … … 27 30 28 31 * '''addNode(x,y)''' Add node at location x@y to the topology 32 29 33 * '''removeNode(x,y)''' Remove node at location x@y from the topology 30 34 31 '''Instructions on how to incorporate noise are missing''' 35 * '''size()''' -- to be completed soon... 36 37 * '''getNode(index)''' -- to be completed soon... 38 39 * '''getFirstNode()''' ... 40 41 * '''getLastNode()''' ... 42 43 * '''getRandomNode()''' ... 44 45 * '''getUniqueRandomNode()''' ... 46 47 * '''eachNode(&block)''' 48 49 * '''setStrict()''' 50 51 * '''unsetStrict()''' 52 53 * '''hasNode(x, y)''' 54 55 56 57 == Noise Injection: == 58 59 --- Instructions on how to incorporate noise are missing --- 32 60 33 61 == Usage == … … 58 86 59 87 == See Also == 88 89 A tutotial with an example on how to use user-defined topologies within an experiment script can be found here: 90 91 * [wiki:Tutorial/HowToTopology How use Topologies in an experiment script]