NodeSurrogate

@Serializable
@SerialName(value = "Node")
data class NodeSurrogate<out TS : Any, out PS : PositionSurrogate>(val id: Int, val contents: Map<MoleculeSurrogate, TS>, val position: PS)

Surrogate class for the it.unibo.alchemist.model.Node interface. Note: The position is kept by the Environment in the original structure. To improve performance and reduce the serialized String size, the position was moved to the node.

Parameters

id

the id of the NodeSurrogate.

contents

the mapping between MoleculeSurrogate and concentrations.

position

the position of the NodeSurrogate.

the type of the [PositionSurrogate].

Constructors

Link copied to clipboard
constructor(id: Int, contents: Map<MoleculeSurrogate, TS>, position: PS)

Properties

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard