alchemist-interfaces / it.unibo.alchemist.model.interfaces / Environment / moveNode

moveNode

abstract fun moveNode(node: Node<T>!, direction: P): Unit

This method moves a node in the environment toward some direction. If node move is unsupported, it does nothing.

Parameters

node - Node<T>!: The node to move

direction - P: The position which will be summed to the current position to move the node in the right place.