Packages

trait LeaderBasedLib extends AnyRef

This library provides the basic movement primitives for the leader-based movement. It mainly consist in function for aligning, sinking, and spinning around a leader, i.e., a node that is responsible for the movement of a subset of the nodes. Indeed, the leader-based movements are based of G, therefore they create areas of influence around the leader.

Self Type
MacroSwarmSupport.LeaderBasedLib with E.AggregateProgram with E.StandardSensors with E.FieldUtils with E.TimeUtils with MacroSwarmSupport.BaseMovementLib with E.CustomSpawn with E.BlocksWithGC with MacroSwarmSupport.BlocksWithShare
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LeaderBasedLib
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def alignWithLeader(source: Boolean, velocity: Point3D): Point3D

    Aligns the node with the leader, i.e., it returns the vector from the node to the leader.

    Aligns the node with the leader, i.e., it returns the vector from the node to the leader.

    source

    whether the node is the leader or not

    returns

    the velocity aligned with the leader

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. def sinkAt(source: Boolean): Point3D

    Sink the node towards the leader, i.e., it returns the vector from the node to the leader.

    Sink the node towards the leader, i.e., it returns the vector from the node to the leader.

    source

    whether the node is the leader or not

    returns

    the vector from the node to the leader

  16. def spinAround(center: Boolean): Point3D

    Spins around the leader, i.e., it returns the vector orthogonal to the vector from the node to the leader.

    Spins around the leader, i.e., it returns the vector orthogonal to the vector from the node to the leader.

    center

    whether the node is the leader or not

    returns

    the vector orthogonal to the vector from the node to the leader

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped