Package repast.simphony.space.projection
Class ProjectionEvent<T>
java.lang.Object
repast.simphony.space.projection.ProjectionEvent<T>
A semantic event indicating some sort of event occured in a projection. The
type of the event is captured via the type property.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic ProjectionEvent.Type
static ProjectionEvent.Type
static ProjectionEvent.Type
static ProjectionEvent.Type
static ProjectionEvent.Type
static ProjectionEvent.Type
-
Constructor Summary
ConstructorDescriptionProjectionEvent
(Projection<T> projection, Object subject, ProjectionEvent.Type type) Creates a ProjectionEvent for the specified projection, specified object and of the specified type. -
Method Summary
Modifier and TypeMethodDescriptionGets the projection associated with this event.Gets the subject of this event.getType()
Gets the type of this event.
-
Field Details
-
OBJECT_ADDED
-
OBJECT_REMOVED
-
OBJECT_MOVED
-
OBJECT_ROTATED
-
EDGE_ADDED
-
EDGE_REMOVED
-
-
Constructor Details
-
ProjectionEvent
Creates a ProjectionEvent for the specified projection, specified object and of the specified type.- Parameters:
projection
-subject
-type
-
-
-
Method Details
-
getProjection
Gets the projection associated with this event.- Returns:
- the projection associated with this event.
-
getType
Gets the type of this event.- Returns:
- the type of this event.
-
getSubject
Gets the subject of this event. This is the object that was added, removed, and so forth.- Returns:
- the subject of this event.
-