Class CircularArea
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,it.unibo.alchemist.model.physics.properties.OccupiesSpaceProperty
,java.io.Serializable
public final class CircularArea<T extends Object> extends AbstractNodeProperty<T> implements OccupiesSpaceProperty<T, Euclidean2DPosition, Euclidean2DTransformation>
The node occupies a circular space with the provided radius.
-
-
Field Summary
Fields Modifier and Type Field Description private final Shape<Euclidean2DPosition, Euclidean2DTransformation>
shape
private final Physics2DEnvironment<T>
environment
private final Node<T>
node
private final Double
radius
-
Constructor Summary
Constructors Constructor Description CircularArea(Physics2DEnvironment<T> environment, Node<T> node, Double radius)
CircularArea(Physics2DEnvironment<T> environment, Node<T> node)
-
Method Summary
Modifier and Type Method Description Shape<Euclidean2DPosition, Euclidean2DTransformation>
getShape()
The node's shape. final Physics2DEnvironment<T>
getEnvironment()
The environment in witch the node moves. Node<T>
getNode()
final Double
getRadius()
The radius of this circular area. CircularArea<T>
cloneOnNewNode(Node<T> node)
String
toString()
-
-
Constructor Detail
-
CircularArea
CircularArea(Physics2DEnvironment<T> environment, Node<T> node, Double radius)
-
CircularArea
CircularArea(Physics2DEnvironment<T> environment, Node<T> node)
-
-
Method Detail
-
getShape
Shape<Euclidean2DPosition, Euclidean2DTransformation> getShape()
The node's shape.
-
getEnvironment
final Physics2DEnvironment<T> getEnvironment()
The environment in witch the node moves.
-
cloneOnNewNode
CircularArea<T> cloneOnNewNode(Node<T> node)
-
-
-
-