SendToNeighbor

class SendToNeighbor(reaction: NodeReaction<Any>, val protelisProgram: RunProtelisProgram<*>) : AbstractLocalAction<Any> (source)

Action that broadcasts the content of a Protelis program to neighbours.

Parameters

reaction

the reaction triggering this action

Constructors

Link copied to clipboard
constructor(reaction: NodeReaction<Any>, protelisProgram: RunProtelisProgram<*>)

Properties

Link copied to clipboard

the RunProtelisProgram whose data will be sent

Link copied to clipboard
override val reaction: NodeReaction<Any>
Link copied to clipboard

Functions

Link copied to clipboard
override fun cloneAction(newReaction: Reaction<Any>): Action<Any>
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open override fun toString(): String