Class 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 Detail

      • 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.
        agentType - the type of agent in this layer
        geomType - the geometric type associated with this layer
    • Method Detail

      • getName

        public String getName()
        Gets the name of this layer.
        the name of this layer.
      • getAgentSet

        public Set<T> getAgentSet()
        Gets the set of agents in this layer.
        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)