alchemist-incarnation-protelis / it.unibo.alchemist.protelis / AlchemistExecutionContext / distanceTo

distanceTo

fun distanceTo(target: DeviceUID!): Double

Computes the distance between two nodes, through Environment#getDistanceBetweenNodes(Node, Node).

Parameters

target - DeviceUID!: the target device

Return
Double: the distance

fun distanceTo(target: Int): Double

Computes the distance between two nodes, through Environment#getDistanceBetweenNodes(Node, Node).

Parameters

target - Int: the target device

Return
Double: the distance