Package it.unibo.alchemist.loader.deployments

Types

Link copied to clipboard
abstract class AbstractCloseTo<T, P : Position<P>>(randomGenerator: RandomGenerator, environment: Environment<T, P>, nodeCount: Int, variance: Double) : 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

Link copied to clipboard
abstract class AbstractRandomDeployment<P : Position<out P>>(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodeCount: Int) : Deployment<P>
Link copied to clipboard
class Circle<P : Position<out P>?> : AbstractRandomDeployment<P>
Link copied to clipboard
data class CircularArc<P : Position2D<P>> @JvmOverloads constructor(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodeCount: Int, centerX: Double, centerY: Double, radius: Double, radiusRandomness: Double, angleRandomness: Double, startAngle: Double, endAngle: Double) : Deployment<P>

Displaces the nodes in the environment in a circular arc, given a nodeCount, the coordinates of the circle's center centerX and centerY, the circle's radius radius, perturbation randomness (uniform, generated via randomGenerator) for radius radiusRandomness and for angle angleRandomness, a startAngle, and an endAngle.

Link copied to clipboard
class CloseToAlreadyDeployed<T, P : Position<P>>(randomGenerator: RandomGenerator, environment: Environment<T, P>, nodeCount: Int, variance: Double) : AbstractCloseTo<T, P>

This Deployment places new nodes in the proximity of those already included in the environment. Behaviour if there are no nodes already inserted is undefined.

Link copied to clipboard
class CloseToGPSTrace<T> @JvmOverloads constructor(randomGenerator: RandomGenerator, environment: Environment<T, GeoPosition>, nodeCount: Int, variance: Double, from: Time, interval: Time, to: Time, gpsFilePath: String, normalizerClass: String, normalizerArguments: Any) : AbstractCloseTo<T, GeoPosition>

This Deployment displaces nodes in the proximity of a GPS trace. Given a time interval from some time to another, it creates a TraceLoader, then uses the points in the interval to generate the sources for a Gaussian bivariate function and uses its probability density to deploy. Higher variance spreads nodes farther away from the trace with higher probability.

Link copied to clipboard
interface Deployment<P : Position<out P>?> : Iterable<P>
Link copied to clipboard
class FromGPSTrace : Deployment
Distributes nodes in the first positions of it.unibo.alchemist.model.interfaces.GPSTrace.
Link copied to clipboard
class GeometricGradientRectangle<P : Position<out P>?> : Rectangle<P>
Distributes nodes geometrically within a rectangular shape.
Link copied to clipboard
class GraphStreamDeployment<P : Position<P>>(createLinks: Boolean, graphStreamSupport: GraphStreamSupport<*, P>) : Deployment<P>

A deployment based on a GraphStream graph.

Link copied to clipboard
open class Grid @JvmOverloads constructor(environment: Environment<*, *>, randomGenerator: RandomGenerator, xStart: Double, yStart: Double, xEnd: Double, yEnd: Double, xStep: Double, yStep: Double, xRand: Double, yRand: Double, xShift: Double, yShift: Double) : Deployment<Position<*>>

A (possibly randomized) grid of nodes.

Link copied to clipboard
class Point<P : Position<out P>?> : Deployment<P>
A single node in a single point.
Link copied to clipboard
open class Polygon<P : Position2D<out P>>(environment: Environment<*, P>, randomGenerator: RandomGenerator, nodes: Int, pointsInput: List<*>) : AbstractRandomDeployment<P>

Creates a new Polygon with the given points.

Link copied to clipboard
open class Rectangle<P : Position<out P>?> : AbstractRandomDeployment<P>
Link copied to clipboard
class SpecificPositions(environment: Environment<*, *>, positions: Iterable<Number>) : Deployment<Position<*>>

Given an environment and a list of list of numbers, it creates a list of the right position type for the environment.