InfiniteHalls
class InfiniteHalls<T> @JvmOverloads constructor(incarnation: Incarnation<T, Euclidean2DPosition>, hallSize: Double = DEFAULT_SIZE, val openDoors: Boolean = true) : AbstractLimitedContinuous2D<T> (source)
An environment made of an infinite grid of halls, each one with a room connected to corridors through doors.
Parameters
incarnation
the incarnation to be used.
hallSize
the size of a single hall.
openDoors
if true, every room has four open accesses, otherwise only two.
Type Parameters
T
concentration type
Constructors
Link copied to clipboard
constructor(incarnation: Incarnation<T, Euclidean2DPosition>, hallSize: Double = DEFAULT_SIZE, openDoors: Boolean = true)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A factory of shapes compatible with this environment.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun farthestReachablePosition(node: Node<T>, desired: Euclidean2DPosition): Euclidean2DPosition
The farthest position reachable by the node towards the desired one, stopping at the walls of the halls.
Link copied to clipboard
Gets the heading of a node as a direction vector.
Link copied to clipboard
Gets all nodes whose shape.intersect is true for the given shape.
Link copied to clipboard
Gets the shape of a node relatively to its position and heading in the environment.
Link copied to clipboard
Creates an euclidean position from the given coordinates.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun observeNodesAround(position: Euclidean2DPosition, range: Double): ObservableSet<Node<T>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the heading of a node.
Link copied to clipboard