Class FeatureAgentFactoryFinder

java.lang.Object
repast.simphony.space.gis.FeatureAgentFactoryFinder

public class FeatureAgentFactoryFinder extends Object
Singleton class that creates FeatureAgentFactories.
Author:
Nick Collier
  • Method Details

    • getInstance

      public static FeatureAgentFactoryFinder getInstance()
      Returns the singleton instance of this finder.
      Returns:
      the singleton instance of this finder.
    • clearAdapters

      public void clearAdapters()
      Clears any attribute adapters from this factory finder.
    • addAdapter

      public void addAdapter(Class<?> adapteeClass, FeatureAttributeAdapter adapter)
      Adds an adapter for the specified class. When objects of this class are adapted to features, these additional adapters will be included.
      Parameters:
      adapteeClass - the class to add the adapter for
      adapter - the adapter to add
    • getFeatureAgentFactory

      public DefaultFeatureAgentFactory getFeatureAgentFactory(Class<?> agentType, Class<? extends org.locationtech.jts.geom.Geometry> geometryType, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
      Gets a feature agent factory for the specified agent type.
      Parameters:
      agentType -
      geometryType -
      crs -
      Returns:
    • getShapefileFeatureAgentFactory

      public ShapefileFeatureAgentFactory getShapefileFeatureAgentFactory(Class<?> agentType, Class<? extends org.locationtech.jts.geom.Geometry> geometryType, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
      Gets a shapefile feature agent factory for the specified agent type.
      Parameters:
      agentType -
      geometryType -
      crs -
      Returns: