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 Details

    • Layer

      public Layer(String name)
      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 layer
      geomType - the geometric type associated with this layer
  • Method Details

    • 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.
    • setAgentSet

      protected void setAgentSet(Set<T> agentSet)
    • getAgentType

      public Class<? extends T> getAgentType()
    • setAgentType

      protected void setAgentType(Class<? extends T> agentType)
    • getGeomType

      public Class<? extends org.locationtech.jts.geom.Geometry> getGeomType()
    • setGeomType

      protected void setGeomType(Class<? extends org.locationtech.jts.geom.Geometry> geomType)