Package-level declarations

Types

Link copied to clipboard

A 2D continuous environment with spatial constraints. Nodes cannot be added in positions that are not allowed, and subclasses stop them before reaching one through farthestReachablePosition.

Link copied to clipboard

A 2D continuous environment that supports rectangular obstacles and prevents nodes from moving through them.

Link copied to clipboard

Any implementing Environment should take care of physical dynamics, in particular collision detection and response. This interface provides some hooks in order to be able to manage some of the node's physical state.

Link copied to clipboard
open class ImageEnvironment<T> @JvmOverloads constructor(incarnation: Incarnation<T, Euclidean2DPosition>, path: String, zoom: Double = DEFAULT_ZOOM, dx: Double = DEFAULT_DELTA_X, dy: Double = DEFAULT_DELTA_Y, obstacleColor: Int = DEFAULT_COLOR) : Continuous2DObstacles<T>

This environment loads an image from the classpath or the file system, and marks as obstacles all the pixels of a given color.

Link copied to clipboard
class InfiniteHalls<T> @JvmOverloads constructor(incarnation: Incarnation<T, Euclidean2DPosition>, hallSize: Double = DEFAULT_SIZE, val openDoors: Boolean = true) : AbstractLimitedContinuous2D<T>

An environment made of an infinite grid of halls, each one with a room connected to corridors through doors.

Link copied to clipboard