This example shows how the standard component type structures can be used to declare components for simple networks. The following three definitions allow networks to be constructed containing fixed size populations of a particular component type.
The harder part is to provide elements in the
But the population element needs to say that its instantiation involves making 'size' instances of the component referred
to by the 'component' reference, where 'size' is the value supplied for the size parameter in a component specification.
This can be done by including a
The
This serves to create some rather simple populations. More complex specifications, such as putting one instance at each point of a grid satisfying a particular constraint could be handled via first declaring elements to form the grid, and then using selectors that pick the points in the population element to actually put the cells at [its not clear to me how much more would be required to make this work, other than implementing proper xpath-like selectors].
The following three types define a general connectivity structure with an abstract
The
With these definitions in place, a network simulation can be defined with the following:
The output when the model is run is shown below, followed by the full listing.