Package-level declarations

Types

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

This it.unibo.alchemist.model.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
class FromGPSTrace @JvmOverloads constructor(nodeCount: Int? = null, path: String, cycle: Boolean = false, normalizer: String, args: Any) : Deployment<GeoPosition>

Distributes nodeCount nodes in the first positions of the GPSTraces found at path, whose time is aligned using the normalizer class created with the given args. If nodeCount is null, one node is deployed per available trace. If cycle is true and there are more nodes to deploy than available GPS traces, the traces are reused cyclically: e.g., if 10 nodes must be deployed but only 9 GPS traces are available, the first one is reused for the 10th node.