Package repast.simphony.space.gis
Class DefaultFeatureAgentFactory<T>
java.lang.Object
repast.simphony.space.gis.FeatureAgentFactory<T>
repast.simphony.space.gis.DefaultFeatureAgentFactory<T>
Default factory class for creating feature agents.
Instances of the this class can be created using the FeatureAgentFactoryFinder.
- Author:
- Nick Collier, Eric Tatara
-
Field Summary
Fields inherited from class repast.simphony.space.gis.FeatureAgentFactory
classAttributeList, GEOM_ATTRIBUTE_NAME
-
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.crs.CoordinateReferenceSystem
getCrs()
Gets the coordinate reference system for this factory.getFeature
(T agent, Geography geography) Create a FeatureAgent instance from the provided agent.org.opengis.feature.simple.SimpleFeatureType
Gets the created feature type.Methods inherited from class repast.simphony.space.gis.FeatureAgentFactory
createClassAttributes, getFeatureType, getFeatureType, getShapefileFeatureType, getShapefileFeatureType
-
Method Details
-
getFeatureType
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()Gets the created feature type.- Returns:
- the created feature type.
-
getCrs
public org.opengis.referencing.crs.CoordinateReferenceSystem getCrs()Gets the coordinate reference system for this factory.- Returns:
- the coordinate reference system for this factory.
-
getFeature
Create a FeatureAgent instance from the provided agent.- Specified by:
getFeature
in classFeatureAgentFactory<T>
- Parameters:
agent
- the agent instance from which to create a FeatureAgentgeography
- the geography in which the FeatureAgent resides- Returns:
- the FeatureAgent instance
-