Packages

trait NeighbouringQuery extends AnyRef

This trait define a query to get information about the neighbours.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NeighbouringQuery
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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

  1. 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

  2. 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).