abstract class Topology extends Neighbors

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Topology
  2. Neighbors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Topology(world: World, xWraps: Boolean, yWraps: Boolean)

Abstract Value Members

  1. abstract def diffuseCorners(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Attributes
    protected
  2. abstract def diffuseXBorder(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Attributes
    protected
  3. abstract def diffuseYBorder(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Attributes
    protected
  4. abstract def distanceWrap(dx: Double, dy: Double, x1: Double, y1: Double, x2: Double, y2: Double): Double
  5. abstract def getPE(source: Patch): Patch
    Definition Classes
    Neighbors
  6. abstract def getPN(source: Patch): Patch
    Definition Classes
    Neighbors
  7. abstract def getPNE(source: Patch): Patch
    Definition Classes
    Neighbors
  8. abstract def getPNW(source: Patch): Patch
    Definition Classes
    Neighbors
  9. abstract def getPS(source: Patch): Patch
    Definition Classes
    Neighbors
  10. abstract def getPSE(source: Patch): Patch
    Definition Classes
    Neighbors
  11. abstract def getPSW(source: Patch): Patch
    Definition Classes
    Neighbors
  12. abstract def getPW(source: Patch): Patch
    Definition Classes
    Neighbors
  13. abstract def shortestPathX(x1: Double, x2: Double): Double
  14. abstract def shortestPathY(y1: Double, y2: Double): Double
  15. abstract def towardsWrap(headingX: Double, headingY: Double): Double
  16. abstract def wrapX(x: Double): Double
    Annotations
    @throws( classOf[AgentException] )
  17. abstract def wrapY(y: Double): Double
    Annotations
    @throws( classOf[AgentException] )

Concrete 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. def diffuse(amount: Double, vn: Int): Unit
    Annotations
    @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
  7. def diffuse4(amount: Double, vn: Int): Unit
    Annotations
    @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
  8. def diffuseCenter(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def followOffsetX: Double
  12. def followOffsetY: Double
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def getNeighbors(source: Patch): IndexedAgentSet
    Definition Classes
    Neighbors
  15. def getNeighbors4(source: Patch): IndexedAgentSet
    Definition Classes
    Neighbors
  16. def getPatchScratch(vn: Int): Array[Array[Double]]
    Attributes
    protected
  17. def getRegion(initialX: Int, initialY: Int, initialR: Int): ArrayList[(Int, Int)]
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def sum4(a: Double, b: Double, c: Double, d: Double): Double

    This method returns a consistent sum of the four numbers regardless of their order.

    This method returns a consistent sum of the four numbers regardless of their order.

    Floating point addition is commutative but NOT associative. Hence, the sum of a set of numbers will change depending on their order. This procedure fixes that by summing the numbers as: (2 lowest) + (2 highest). The naive fix to this problem is to sort the numbers before summing. However, this is slow and unnecessary. Instead, we split the numbers into two groups, such that each group contains either the two highest or the two lowest numbers (though we don't necessarily know which group is which). We then sum each group separately, and then sum their sums. This works because we can rely on the commutativity of floats. -- BCH 10/15/2017

    Attributes
    protected
    Annotations
    @inline()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def updatePatch(amount: Double, vn: Int, directions: Int, x: Int, y: Int, oldVal: Double, sum: Double): Unit
    Attributes
    protected
    Annotations
    @inline()
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. val world: World
  31. val xWraps: Boolean
  32. val yWraps: Boolean

Deprecated Value Members

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

Inherited from Neighbors

Inherited from AnyRef

Inherited from Any

Ungrouped