AbstractNodeAction

abstract class AbstractNodeAction<T>(reaction: Reaction<T>, val targetNode: Node<T>) : AbstractAction<T> (source)

Base implementation of an Action executed on a target targetNode, owned by a reaction with any host.

When cloned, an action targeting the host of its reaction targets the host of the new reaction, which must be a node; an action targeting any other node keeps its target.

Inheritors

Constructors

Link copied to clipboard
constructor(reaction: Reaction<T>, targetNode: Node<T>)

Properties

Link copied to clipboard
open override val reaction: Reaction<T>
Link copied to clipboard

Functions

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