GeneralPositionSurrogate

@Serializable
@SerialName(value = "Position")
data class GeneralPositionSurrogate(val coordinates: DoubleArray, val dimensions: Int) : PositionSurrogate

Surrogate class for the it.unibo.alchemist.model.Position interface. This implementation is valid for any type of position.

Parameters

coordinates

the coordinates of the PositionSurrogate.

dimensions

the dimensions of the PositionSurrogate.

Constructors

Link copied to clipboard
constructor(coordinates: DoubleArray, dimensions: Int)

Properties

Link copied to clipboard
open override val coordinates: DoubleArray
Link copied to clipboard
open override val dimensions: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Override equals because a DoubleArray is present in the properties.

Link copied to clipboard
open override fun hashCode(): Int

Override hashCode because a DoubleArray is present in the properties.