Package repast.simphony.space.projection
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 Summary
Modifier and TypeMethodDescriptionvoid
addProjectionListener
(ProjectionListener listener) Adds listener for this projection.boolean
evaluate
(ProjectionPredicate predicate) Evaluate this Projection against the specified Predicate.getName()
Gets all the listeners for this projection.boolean
removeProjectionListener
(ProjectionListener listener) Removes a listener from the this projection.
-
Method Details
-
getName
String getName() -
evaluate
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
Adds listener for this projection.- Parameters:
listener
- the listener to add.
-
removeProjectionListener
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.
-