Class SendToNeighbor
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class SendToNeighbor extends AbstractAction<T>
-
-
Constructor Summary
Constructors Constructor Description SendToNeighbor(Node<Object> node, Reaction<Object> reaction, RunProtelisProgram<out Object> program)
-
Method Summary
Modifier and Type Method Description SendToNeighbor
cloneAction(Node<Object> node, Reaction<Object> reaction)
Context
getContext()
void
execute()
RunProtelisProgram<out Object>
getProtelisProgram()
String
toString()
-
-
Constructor Detail
-
SendToNeighbor
SendToNeighbor(Node<Object> node, Reaction<Object> reaction, RunProtelisProgram<out Object> program)
- Parameters:
node
- the local nodereaction
- the reactionprogram
- the reference RunProtelisProgram
-
-
Method Detail
-
cloneAction
SendToNeighbor cloneAction(Node<Object> node, Reaction<Object> reaction)
-
getContext
Context getContext()
-
execute
void execute()
-
getProtelisProgram
@Nonnull() RunProtelisProgram<out Object> getProtelisProgram()
- Returns:
the RunProtelisProgram whose data will be sent
-
-
-
-