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.
      Parameters:
      predicate -
      Returns:
      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.
      Parameters:
      listener - the listener to add.
    • removeProjectionListener

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

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