Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package github
    Definition Classes
    com
  • package maxinertia
    Definition Classes
    github
  • package space

    A set of three traits used to describe quantized spaces: Spaces that can be described with a set of locations (to give the space...

    A set of three traits used to describe quantized spaces: Spaces that can be described with a set of locations (to give the space... space!) and a set of directions (to traverse the space).

    1. Space

    • Contains any operations that can be applied to arbitrary spaces.
    • Implementing Space requires an implementation of Location and Direction.

    2. Location

    • An atom of space.
    • A container for whatever you want in your space!

    3. Direction

    • A direction in which adjacent locations to some reference location may be found.
    Definition Classes
    maxinertia
  • Direction
  • Location
  • Space

trait Space[D <: Direction, L <: Location] extends AnyRef

A space of arbitrary dimensionality.

Examples:

  • 1D: Row, Column, List, ...
  • 2D: Square grid, hexagonal grid, ...
  • 3D: Quantized space (Made up of discrete locations, ie: Not continuous)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Space
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def adjacentTo(location: L): List[(D, L)]

    Returns a list of tuples where each tuple corresponds to a unique location adjacent to the provided location.

    Returns a list of tuples where each tuple corresponds to a unique location adjacent to the provided location.

    (1) The direction of the adjacent location with respect to the provided location, and

    (2) a reference to the adjacent location.

    location

    Some location in a Space

    returns

    The list of adjacent locations.

  2. abstract def inDirection(location: L, direction: D): Option[L]

    Returns the location adjacent to the specified location in the specified direction if it exists, otherwise None.

    Returns the location adjacent to the specified location in the specified direction if it exists, otherwise None.

    location

    A location

    direction

    A direction

    returns

    Some(adjacent-location) or None

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @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
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped