invoke

abstract operator fun invoke(state: State?, comm: List<Comm>, sensors: Sensors?): BehaviourOutput<State, Comm, Actuators>

This method implements the logic of the device taking the state, comm and sensors. Returns a BehaviourOutput containing the new State, the Communication to be sent and the Actuators to be performed.