Trait

it.unibo.scafi.lib.StdLib_BlockG

BlockG

Related Doc: package StdLib_BlockG

Permalink

trait BlockG extends (StdLib_BlockG.this)#Gradients with (StdLib_BlockG.this)#FieldUtils with (StdLib_BlockG.this)#GenericUtils with (StdLib_BlockG.this)#StateManagement

Self Type
(StdLib_BlockG.this)#BlockG with (StdLib_BlockG.this)#FieldCalculusSyntax with (StdLib_BlockG.this)#StandardSensors
Linear Supertypes
(StdLib_BlockG.this)#FieldUtils, (StdLib_BlockG.this)#Gradients, (StdLib_BlockG.this)#StateManagement, (StdLib_BlockG.this)#GenericUtils, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockG
  2. FieldUtils
  3. Gradients
  4. StateManagement
  5. GenericUtils
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait FieldOps extends AnyRef

    Permalink
    Definition Classes
    FieldUtils
  2. case class Gradient(algorithm: (Boolean, () ⇒ Double) ⇒ Double, source: Boolean = false, metric: (StdLib_Gradients.this)#Metric = nbrRange) extends Product with Serializable

    Permalink
    Definition Classes
    Gradients

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def BisGradient(commRadius: Double = 0.2, lagMetric: ⇒ Double = nbrLag().toMillis): (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  5. val ClassicGradient: (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  6. val ClassicHopGradient: (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  7. def CrfGradient(raisingSpeed: Double = 5, lagMetric: ⇒ Double = nbrLag().toMillis): (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  8. def FlexGradient(epsilon: Double = 0.5, delta: Double = 1.0, communicationRadius: Double = 1.0): (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  9. def G[V](source: Boolean, field: V, acc: (V) ⇒ V, metric: () ⇒ Double): V

    Permalink
  10. def Gcurried[V](source: Boolean)(field: V)(acc: (V) ⇒ V)(metric: (StdLib_BlockG.this)#Metric = nbrRange): V

    Permalink

    Curried version of G

  11. def SvdGradient(lagMetric: ⇒ Double = nbrLag().toMillis): (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  12. def UltGradient(radius: Double = 0.2, factor: Double = 0.1): (BlockG.this)#Gradient

    Permalink
    Definition Classes
    Gradients
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def bisGradient(commRadius: Double = 0.2, lagMetric: ⇒ Double = nbrLag().toMillis)(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink
    Definition Classes
    Gradients
  15. def broadcast[V](source: Boolean, field: V, metric: (StdLib_BlockG.this)#Metric = nbrRange): V

    Permalink

    Broadcast information outward from a source field.

    Broadcast information outward from a source field.

    V

    Type of the value to be broadcast

    source

    The source of the broadcast

    field

    Field denoting (1) at the source, the value to be broadcast; and (2) in other places, the default value of the broadcast field.

    metric

    Metric that parameterises the gradient-based construction of the the propagation structure

    returns

    A broadcast field.

  16. def captureChange[T](x: T, initially: Boolean = true): Boolean

    Permalink

    returns

    true only when a discontinuity (i.e., a change) is observed on x (you may choose how to handle the first observation)

    Definition Classes
    StateManagement
  17. def channel(source: Boolean, target: Boolean, width: Double): Boolean

    Permalink

    A channel from a source to a target with width width.

    A channel from a source to a target with width width. A channel is a boolean field which is true in correspondence of the device positioned along the minimum path from source to target.

  18. def classicGradient(source: Boolean, metric: () ⇒ Double = nbrRange): Double

    Permalink
    Definition Classes
    Gradients
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  20. def constant[T](value: ⇒ T): T

    Permalink

    Alias for remember()

    Alias for remember()

    Definition Classes
    StateManagement
  21. def countChanges[T](x: T, initially: Boolean = true): (Long, Boolean)

    Permalink
    Definition Classes
    StateManagement
  22. def crfGradient(raisingSpeed: Double = 5, lagMetric: ⇒ Double = nbrLag().toMillis)(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink
    Definition Classes
    Gradients
  23. def delay[T](value: T): T

    Permalink

    It is a simple building block which returns the same values it receives in input delayed by one computation round.

    It is a simple building block which returns the same values it receives in input delayed by one computation round.

    Definition Classes
    StateManagement
  24. def distanceBetween(source: Boolean, target: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink

    Distance between source to target based on metric

  25. def distanceTo(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink

    A field of distance (i.e., a gradient) from a source, based on a given metric

  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  28. object excludingSelf extends (FieldUtils.this)#FieldOps

    Permalink
    Definition Classes
    FieldUtils
  29. def flexGradient(epsilon: Double = 0.5, delta: Double = 1.0, communicationRadius: Double = 1.0)(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink

    Idea: a device should change its estimate only for significant errors.

    Idea: a device should change its estimate only for significant errors. Useful when devices far from the source need only coarse estimates. Flex gradient provides tunable trade-off between precision and communication cost.

    epsilon

    Parameter expressing tolerance wrt changes

    delta

    Distortion into the distance measure, such that neighbor distance is never considered to be less than delta * communicationRadius.

    source

    Source fields of devices from which the gradient is calculated

    Definition Classes
    Gradients
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  31. def goesDown(value: Boolean): Boolean

    Permalink

    returns

    true when the given parameter goes from true to false (starting from false); false otherwise

    Definition Classes
    StateManagement
  32. def goesUp(value: Boolean): Boolean

    Permalink

    returns

    true when the given parameter goes from false to true (starting from false); false otherwise

    Definition Classes
    StateManagement
  33. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  34. def hopDistance(source: Boolean): Double

    Permalink

    Hop distance

  35. def hopGradient(source: Boolean): Double

    Permalink
    Definition Classes
    Gradients
  36. object includingSelf extends (FieldUtils.this)#FieldOps

    Permalink
    Definition Classes
    FieldUtils
  37. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  38. def keep(expr: ⇒ Boolean): Boolean

    Permalink

    Remembers the occurrence of some condition or event

    Remembers the occurrence of some condition or event

    Definition Classes
    StateManagement
  39. def keep[T](expr: ⇒ Option[T]): Option[T]

    Permalink

    Remembers the provided optional value, unless empty

    Remembers the provided optional value, unless empty

    Definition Classes
    StateManagement
  40. def meanCounter(value: Double, frequency: Long): Double

    Permalink
    Definition Classes
    GenericUtils
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  44. def once[T](expr: ⇒ T): Option[T]

    Permalink

    Returns a non-empty optional with the provided value just once, then None

    Returns a non-empty optional with the provided value just once, then None

    Definition Classes
    StateManagement
  45. def remember[T](value: ⇒ T): T

    Permalink

    Remembers the provided value

    Remembers the provided value

    Definition Classes
    StateManagement
  46. def roundCounter(): Long

    Permalink

    Counts the number of rounds, refreshing each time the computation is re-entered.

    Counts the number of rounds, refreshing each time the computation is re-entered. TODO: consider boundedness as a limitation for long-lived/eternal systems

    returns

    the number of the round

    Definition Classes
    StateManagement
  47. def svdGradient(lagMetric: ⇒ Double = nbrLag().toMillis)(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink
    Definition Classes
    Gradients
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def ultGradient(radius: Double = 0.2, factor: Double = 0.1)(source: Boolean, metric: (StdLib_BlockG.this)#Metric = nbrRange): Double

    Permalink
    Definition Classes
    Gradients
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def G_along[V](g: Double, metric: (StdLib_BlockG.this)#Metric, field: V, acc: (V) ⇒ V): V

    Permalink

    Version of G (Gradient-Cast) that takes a potential field g as input

    Version of G (Gradient-Cast) that takes a potential field g as input

    V

    type of the value to be accumulated

    g

    potential field

    metric

    metric to use for the "last step"

    field

    value of the field for sources

    acc

    aggregator

    returns

    a field that locally provides the value of the gradient-cast (field at sources, and an accumulation value along the way)

    Deprecated

    As it seems buggy.

  2. def Gg[V](gradient: (BlockG.this)#Gradient, field: V, acc: (V) ⇒ V): V

    Permalink

    Version of G (Gradient-Cast) that takes a Gradient algorithm as input.

    Version of G (Gradient-Cast) that takes a Gradient algorithm as input. This is motivated by the desire of speeding G up by using

    gradient

    The gradient algorithm to use -- notice that this encapsulates details about the gradient field (e.g., the sources)

    Deprecated

    As it seems buggy: see G_along method.

  3. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from (StdLib_BlockG.this)#FieldUtils

Inherited from (StdLib_BlockG.this)#Gradients

Inherited from (StdLib_BlockG.this)#StateManagement

Inherited from (StdLib_BlockG.this)#GenericUtils

Inherited from AnyRef

Inherited from Any

Ungrouped