NetLogo 6.2.2 - org.nlogo.agent.Torus
Keywords: NetLogo 6.2.2 org.nlogo.agent.Torus

NetLogo6.2.2 < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package org
  Definition Classes
    root
-  package nlogo
  Definition Classes
    org
-  package agent
  Definition Classes
    nlogo
- AbstractExporter
- Agent
- Agent3D
- AgentBit
- AgentColors
- AgentIterator
- AgentManagement
- AgentParserCreator
- AgentSet
- AgentSetBuilder
- AllStoredValues
- ArrayAgentSet
- BooleanConstraint
- Box
- BreedShapes
- ChooserConstraint
- CompilationManagement
- ConstantSliderConstraint
- Constraints
- CoreWorld
- DimensionManagement
- Directedness
- Drawing3D
- DrawingLine3D
- DummyLink
- DynamicSliderConstraint
- Gamma
- GrossWorldState
- HeadingSmoother
- HorizCylinder
- ImportPatchColors
- Importer
- Importer3D
- ImporterJ
- InRadiusOrCone
- InRadiusOrCone3D
- InRadiusSimple
- IndexedAgentSet
- InputBoxConstraint
- Layouts
- Link
- Link3D
- LinkFactory
- LinkManagement
- LinkManager
- LinkManagerImpl
- LinkStamp3D
- LiteralAgentParser
- Neighbors
- NumericConstraint
- Observer
- Observer3D
- ObserverManagement
- OrientatableObserver
- OutputObject
- Patch
- Patch3D
- PatchException
- Protractor
- Protractor3D
- Realloc
- RootsTable
- Rotations3D
- SliderConstraint
- TickCounter
- TieManager
- TieManager3D
- Topology
- Topology3D
- Torus
- Torus3D
- Trail
- TreeAgentSet
- TrigTables
- Turtle
- Turtle2D
- Turtle3D
- TurtleManagement
- TurtleStamp3D
- VertCylinder
- WatcherManagement
- World
- World2D
- World3D
- WorldKernel
- XBlocks
- XWraps
- YBlocks
- YWraps

c

org.nlogo.agent

# Torus 

###

#### class Torus extends Topology with XWraps with YWraps

Annotations
  @strictfp()
Source
  Torus.scala

Linear Supertypes
YWraps, XWraps, Topology, Neighbors, AnyRef, Any
Known Subclasses
Torus3D
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Torus
2. YWraps
3. XWraps
4. Topology
5. Neighbors
6. AnyRef
7. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new Torus(_world: World)

### 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()
6.  def diffuse(amount: Double, vn: Int): Unit
   Definition Classes
     Topology
   Annotations
     @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
7.  def diffuse4(amount: Double, vn: Int): Unit
   Definition Classes
     Topology
   Annotations
     @throws( classOf[AgentException] ) @throws( classOf[PatchException] )
8.  def diffuseCenter(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
   Attributes
     protected
   Definition Classes
     Topology
9.  def diffuseCorners(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
   Attributes
     protected
   Definition Classes
     Torus → Topology
10.  def diffuseXBorder(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Attributes
      protected
    Definition Classes
      XWraps → Topology
11.  def diffuseYBorder(amount: Double, vn: Int, fourWay: Boolean, scratch: Array[Array[Double]]): Unit
    Definition Classes
      YWraps → Topology
12.  def distanceWrap(dx: Double, dy: Double, x1: Double, y1: Double, x2: Double, y2: Double): Double
    Definition Classes
      Torus → Topology
13.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
14.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
15.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
16.  def followOffsetX: Double
    Definition Classes
      Topology
17.  def followOffsetY: Double
    Definition Classes
      Topology
18.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
19.  def getNeighbors(source: Patch): IndexedAgentSet
    Definition Classes
      Neighbors
20.  def getNeighbors4(source: Patch): IndexedAgentSet
    Definition Classes
      Neighbors
21.  def getPE(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
22.  def getPN(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
23.  def getPNE(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
24.  def getPNW(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
25.  def getPS(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
26.  def getPSE(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
27.  def getPSW(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
28.  def getPW(source: Patch): Patch
    Definition Classes
      Torus → Neighbors
29.  def getPatchScratch(vn: Int): Array[Array[Double]]
    Attributes
      protected
    Definition Classes
      Topology
30.  def getRegion(initialX: Int, initialY: Int, initialR: Int): ArrayList[(Int, Int)]
    Definition Classes
      Topology
31.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
32.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
33.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
34.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
35.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
36.  def shortestPathX(x1: Double, x2: Double): Double
    Definition Classes
      Torus → Topology
37.  def shortestPathY(y1: Double, y2: Double): Double
    Definition Classes
      Torus → Topology
38.  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
    Definition Classes
      Topology
    Annotations
      @inline()
39.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
40.  def toString(): String
    Definition Classes
      AnyRef → Any
41.  def towardsWrap(headingX: Double, headingY: Double): Double
    Definition Classes
      Torus → Topology
42.  final def updatePatch(amount: Double, vn: Int, directions: Int, x: Int, y: Int, oldVal: Double, sum: Double): Unit
    Attributes
      protected
    Definition Classes
      Topology
    Annotations
      @inline()
43.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
44.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
45.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
46.  val world: World
    Definition Classes
      Topology
47.  def wrapX(x: Double): Double
    Definition Classes
      Torus → XWraps → Topology
48.  def wrapY(y: Double): Double
    Definition Classes
      Torus → YWraps → Topology
49.  val xWraps: Boolean
    Definition Classes
      XWraps → Topology
50.  val yWraps: Boolean
    Definition Classes
      YWraps → Topology

### Inherited from YWraps

### Inherited from XWraps

### Inherited from Topology

### Inherited from Neighbors

### Inherited from AnyRef

### Inherited from Any

### Ungrouped