Class AbstractCloseTo
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Deployment
,kotlin.collections.Iterable
,kotlin.collections.MutableIterable
public abstract class AbstractCloseTo<T extends Object, P extends Position<P>> implements Deployment<P>
A generic Deployment that displaces a certain nodeCount of nodes in the proximity of a number of sources. Higher variance implies higher dispersion. Subclasses must identify the sources
-
-
Constructor Summary
Constructors Constructor Description AbstractCloseTo(RandomGenerator randomGenerator, Environment<T, P> environment, Integer nodeCount, Double variance)
-
Method Summary
-
Methods inherited from class it.unibo.alchemist.model.Deployment
getAssociatedLinkingRule, iterator
-
Methods inherited from class kotlin.collections.Iterable
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractCloseTo
AbstractCloseTo(RandomGenerator randomGenerator, Environment<T, P> environment, Integer nodeCount, Double variance)
-
-
Method Detail
-
stream
final Stream<P> stream()
- Returns:
a Stream over the positions of this Deployment
-
-
-
-