Package repast.simphony.space.projection
Class ProjectionEvent<T>
- java.lang.Object
-
- repast.simphony.space.projection.ProjectionEvent<T>
-
public class ProjectionEvent<T> extends Object
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
Nested Classes Modifier and Type Class Description static class
ProjectionEvent.Type
-
Field Summary
Fields Modifier and Type Field Description static ProjectionEvent.Type
EDGE_ADDED
static ProjectionEvent.Type
EDGE_REMOVED
static ProjectionEvent.Type
OBJECT_ADDED
static ProjectionEvent.Type
OBJECT_MOVED
static ProjectionEvent.Type
OBJECT_REMOVED
static ProjectionEvent.Type
OBJECT_ROTATED
-
Constructor Summary
Constructors Constructor Description ProjectionEvent(Projection<T> projection, Object subject, ProjectionEvent.Type type)
Creates a ProjectionEvent for the specified projection, specified object and of the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Projection<T>
getProjection()
Gets the projection associated with this event.Object
getSubject()
Gets the subject of this event.ProjectionEvent.Type
getType()
Gets the type of this event.
-
-
-
Field Detail
-
OBJECT_ADDED
public static ProjectionEvent.Type OBJECT_ADDED
-
OBJECT_REMOVED
public static ProjectionEvent.Type OBJECT_REMOVED
-
OBJECT_MOVED
public static ProjectionEvent.Type OBJECT_MOVED
-
OBJECT_ROTATED
public static ProjectionEvent.Type OBJECT_ROTATED
-
EDGE_ADDED
public static ProjectionEvent.Type EDGE_ADDED
-
EDGE_REMOVED
public static ProjectionEvent.Type EDGE_REMOVED
-
-
Constructor Detail
-
ProjectionEvent
public ProjectionEvent(Projection<T> projection, Object subject, ProjectionEvent.Type type)
Creates a ProjectionEvent for the specified projection, specified object and of the specified type.- Parameters:
projection
-subject
-type
-
-
-
Method Detail
-
getProjection
public Projection<T> getProjection()
Gets the projection associated with this event.- Returns:
- the projection associated with this event.
-
getType
public ProjectionEvent.Type getType()
Gets the type of this event.- Returns:
- the type of this event.
-
getSubject
public Object getSubject()
Gets the subject of this event. This is the object that was added, removed, and so forth.- Returns:
- the subject of this event.
-
-