Package repast.simphony.space.gis
Class FeatureAgentFactoryFinder
java.lang.Object
repast.simphony.space.gis.FeatureAgentFactoryFinder
Singleton class that creates FeatureAgentFactories.
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdapter(Class<?> adapteeClass, FeatureAttributeAdapter adapter) Adds an adapter for the specified class.voidClears any attribute adapters from this factory finder.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 FeatureAgentFactoryFinderReturns the singleton instance of this finder.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 Details
-
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
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:
-