Class DefaultContinuousSpace<T>

All Implemented Interfaces:
ContinuousSpace<T>, Projection<T>
Direct Known Subclasses:
ContextSpace, DefaultPhysicsSpace

public class DefaultContinuousSpace<T> extends AbstractContinuousSpace<T,Map<NdPoint,Object>>
Default implementation of an n-dimensional continuous space.
  • Constructor Details

    • DefaultContinuousSpace

      public DefaultContinuousSpace(String name, ContinuousAdder<T> adder, PointTranslator translator, double... size)
      Constructs this space with the specified name, adder, translator, accessor and size. The size is the size of the space meaning [3, 3] is a 3x3 space.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
    • DefaultContinuousSpace

      public DefaultContinuousSpace(String name, ContinuousAdder<T> adder, PointTranslator translator, double[] size, double[] origin)
      Constructs this space with the specified name, adder, translator, accessor and size. The size is the size of the space meaning [3, 3] is a 3x3 space.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
      origin - the origin of the space
    • DefaultContinuousSpace

      public DefaultContinuousSpace(String name, ContinuousAdder<T> adder, PointTranslator translator, CoordinateAccessor<T,Map<NdPoint,Object>> accessor, double... size)
      Constructs this space with the specified name, adder, translator, accessor and size. The size is the size of the space meaning [3, 3] is a 3x3 space.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
    • DefaultContinuousSpace

      public DefaultContinuousSpace(String name, double... size)
      Constructs this space with the specified name and size. The size is the size of the space meaning [3, 3] is a 3x3 space. This uses by default a SimpleContinuousAdder, a StickyBorders, and a MultiOccupancyCoordinateAccessor; this means that objects cannot leave the space, are added to (0, 0, ..., 0) when added to the context, and that multiple objects can be at the same coordinate.
      Parameters:
      name - the name of the space
      size - the dimensions of the space
  • Method Details