Package repast.simphony.space.gis
Class FeatureAgentFactoryFinder
- java.lang.Object
-
- repast.simphony.space.gis.FeatureAgentFactoryFinder
-
public class FeatureAgentFactoryFinder extends Object
Singleton class that creates FeatureAgentFactories.- Author:
- Nick Collier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdapter(Class<?> adapteeClass, FeatureAttributeAdapter adapter)
Adds an adapter for the specified class.void
clearAdapters()
Clears any attribute adapters from this factory finder.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.static FeatureAgentFactoryFinder
getInstance()
Returns the singleton instance of this finder.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.
-
-
-
Method Detail
-
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 foradapter
- 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:
-
-