Class ConnectionBeam
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.LinkingRule
,java.io.Serializable
public final class ConnectionBeam<T> extends ConnectWithinDistance<T, P>
Connects two nodes if, throwing a beam from one to the other, there exists at least one path entirely inside the beam that connects the two nodes. This rule is ideal for environments with obstacles, where the user wants some tolerance in connection breaking.
-
-
Constructor Summary
Constructors Constructor Description ConnectionBeam(double radius, double beamSize)
-
Method Summary
Modifier and Type Method Description Neighborhood<T>
computeNeighborhood(Node<T> center, Environment<T, Euclidean2DPosition> environment)
-
-
Method Detail
-
computeNeighborhood
Neighborhood<T> computeNeighborhood(Node<T> center, Environment<T, Euclidean2DPosition> environment)
-
-
-
-