trait NeighbouringQuery extends AnyRef
This trait define a query to get information about the neighbours.
- Alphabetic
- By Inheritance
- NeighbouringQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def query[L, A](local: L, valueAtCenter: A, accumulation: (A) => A): Map[E.ID, (L, A)]
Query the neighbours about a local value (e.g., the velocity) and a neighborhood value (e.g., the distance) and an accumulation function (e.g., the
Query the neighbours about a local value (e.g., the velocity) and a neighborhood value (e.g., the distance) and an accumulation function (e.g., the
- L
the type of the local value
- A
the type of the neighborhood value
- local
the local value to gather
- valueAtCenter
the value at the center of the neighborhood
- accumulation
the accumulation function
- returns
a map where the key is the id of the neighbour and the value is a tuple with the local value and the
Concrete Value Members
- def queryLocal[L](local: L): Map[E.ID, L]
Query the neighbours about a local value (e.g., the velocity).
Query the neighbours about a local value (e.g., the velocity).
- L
the type of the local value
- local
the local value to gather
- returns
a map where the key is the id of the neighbour and the value is the local value
- def queryNeighborhood[A](center: A, accumulation: (A) => A): Map[E.ID, A]
Query the neighbours about a neighborhood value (e.g., the distance) and an accumulation function (e.g., the sum).