-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class HeadTowardRandomDirection<T extends Object> extends AbstractAction<T>
Changes the heading of node randomly. The environment must support node heading, hence, be a Physics2DEnvironment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHeadTowardRandomDirection.Companion
-
Constructor Summary
Constructors Constructor Description HeadTowardRandomDirection(Node<T> node, Physics2DEnvironment<T> environment, RandomGenerator randomGenerator)
-
Method Summary
Modifier and Type Method Description Action<T>cloneAction(Node<T> node, Reaction<T> reaction){@inheritDoc}. Unitexecute()Changes the heading of the node randomly. ContextgetContext(){@inheritDoc}. -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.HeadTowardRandomDirection
declareDependencyTo, getConcentration, getNode, getOutboundDependencies, nodeContains, removeConcentration, setConcentration, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HeadTowardRandomDirection
HeadTowardRandomDirection(Node<T> node, Physics2DEnvironment<T> environment, RandomGenerator randomGenerator)
-
-
-
-