Node contents
It is possible to set the content of the nodes in a deployment.
Node contents are defined in terms of molecules and their corresponding concentration.
As such, they depend on the specific Incarnation
in use.
This is done by listing the contents under deployments.contents
,
specifying a Molecule
name and its Concentration
.
Unless the type/parameter syntax is used, the data gets processed
by the
Incarnation
through the
Incarnation.createMolecule
and
Incarnation.createConcentration
methods, respectively.
In the following example, three molecules are created and injected into all nodes deployed in the scenario:
By default, all nodes in the deployment will be injected with the required contents.
It is possible, though, to select only a subset of them through the in
keyword,
which expects enough information to be able to build a
PositionBasedFilter
through the arbitrary class loading system.
In the following example, only molecules located inside a
Rectangle
get the ball
molecule: