Interface Projection<T>

All Known Subinterfaces:
ContinuousSpace<T>, Geography<T>, Grid<T>, Network<T>, PhysicsSpace<T>
All Known Implementing Classes:
AbstractContinuousSpace, AbstractGrid, ContextFastSingleGrid, ContextGeography, ContextGrid, ContextJungNetwork, ContextPhysics, ContextSpace, DefaultContinuousSpace, DefaultGeography, DefaultGrid, DefaultPhysicsSpace, DefaultProjection, DirectedJungNetwork, FastDenseSingleOccuGrid, JungNetwork, Projected3DGrid, Projected3DSpace, UndirectedJungNetwork

public interface Projection<T>
  • Method Details

    • getName

      String getName()
    • evaluate

      boolean evaluate(ProjectionPredicate predicate)
      Evaluate this Projection against the specified Predicate. This typically involves a double dispatch where the Projection calls back to the predicate, passing itself.
      predicate -
      true if the predicate evaluates to true, otherwise false. False can also mean that the predicate is not applicable to this Projection. For example, a linked type predicate evaluated against a grid projection.
    • addProjectionListener

      void addProjectionListener(ProjectionListener listener)
      Adds listener for this projection.
      listener - the listener to add.
    • removeProjectionListener

      boolean removeProjectionListener(ProjectionListener listener)
      Removes a listener from the this projection.
      listener - the listener to remove
      true if the listener was succesfully removed, otherwise false
    • getProjectionListeners

      Collection<ProjectionListener> getProjectionListeners()
      Gets all the listeners for this projection.
      an iterable over all the listeners for this projection.