Package repast.simphony.space.gis
Class Layer<T>
java.lang.Object
repast.simphony.space.gis.Layer<T>
A layer in a geographic projection. Each layer is associated with objects of the same
type (Java class) and geometry (point, polygon etc.)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the set of agents in this layer.Class<? extends org.locationtech.jts.geom.Geometry>
getName()
Gets the name of this layer.protected void
setAgentSet
(Set<T> agentSet) protected void
setAgentType
(Class<? extends T> agentType) protected void
setGeomType
(Class<? extends org.locationtech.jts.geom.Geometry> geomType)
-
Constructor Details
-
Layer
Creates a layer with no agent type and no geometry. -
Layer
public Layer(String name, Class<? extends T> agentType, Class<? extends org.locationtech.jts.geom.Geometry> geomType) Creates a layer with the specified agent type and geometry.- Parameters:
agentType
- the type of agent in this layergeomType
- the geometric type associated with this layer
-
-
Method Details
-
getName
Gets the name of this layer.- Returns:
- the name of this layer.
-
getAgentSet
Gets the set of agents in this layer.- Returns:
- the set of agents in this layer.
-
setAgentSet
-
getAgentType
-
setAgentType
-
getGeomType
-
setGeomType
-