Package repast.simphony.space.gis
Class Layer<T>
- java.lang.Object
-
- repast.simphony.space.gis.Layer<T>
-
public class Layer<T> extends Object
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
Constructors Constructor Description Layer(String name)
Creates a layer with no agent type and no geometry.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<T>
getAgentSet()
Gets the set of agents in this layer.Class<? extends T>
getAgentType()
Class<? extends org.locationtech.jts.geom.Geometry>
getGeomType()
String
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 Detail
-
Layer
public Layer(String name)
Creates a layer with no agent type and no geometry.
-
-
Method Detail
-
getName
public String getName()
Gets the name of this layer.- Returns:
- the name of this layer.
-
getAgentSet
public Set<T> getAgentSet()
Gets the set of agents in this layer.- Returns:
- the set of agents in this layer.
-
getGeomType
public Class<? extends org.locationtech.jts.geom.Geometry> getGeomType()
-
setGeomType
protected void setGeomType(Class<? extends org.locationtech.jts.geom.Geometry> geomType)
-
-