SAPERENeighborAgent

constructor(environment: Environment<List<ILsaMolecule>, P>, node: ILsaNode, m1: ILsaMolecule)(source)

Creates a new SAPERE Neighbor Agent stub. If you use this constructor, you must be sure that your agent only modifies molecules matching the template passed as m1.

Parameters

environment

The current environment

node

The node in which this agent stays

m1

The molecule template it modifies


constructor(environment: Environment<List<ILsaMolecule>, P>, node: ILsaNode, m1: ILsaMolecule, m2: ILsaMolecule)(source)

Creates a new SAPERE Agent stub. If you use this constructor, you must be sure that your agent only modifies molecules matching the template passed as m1 and/or the template passed in m2.

Parameters

environment

The current environment

node

The node in which this agent stays

m1

The first molecule template it modifies

m2

The second molecule template it modifies


constructor(environment: Environment<List<ILsaMolecule>, P>, node: ILsaNode, m1: ILsaMolecule, m2: ILsaMolecule, m3: ILsaMolecule)(source)

Creates a new SAPERE Agent stub. If you use this constructor, you must be sure that your agent only modifies molecules matching the template passed as m1 and/or the template passed in m2 and/or the template passed in m3.

Parameters

environment

The current environment

node

The node in which this agent stays

m1

The first molecule template it modifies

m2

The second molecule template it modifies

m3

The third molecule template it modifies