Class ContextBuilderFactory
java.lang.Object
repast.simphony.dataLoader.engine.ContextBuilderFactory
Factory class for creating context builders
that create and add projections to Contexts and
create and add agents to contexts.
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescriptioncreateBuilder(ProjectionData proj) Creates a context builder that will create the specified projection.static ContextBuilderFactoryGets the singleton instance of the ContextBuilderFactory.voidregisterProjectionBuilder(String type, ProjectionBuilderFactory builder) Registers the projection builder for use with the specified class.
-
Method Details
-
getInstance
Gets the singleton instance of the ContextBuilderFactory.- Returns:
- the singleton instance of the ContextBuilderFactory.
-
registerProjectionBuilder
Registers the projection builder for use with the specified class.- Parameters:
clazz- the class of the Projection to register the builder forbuilder- the builder to use to build the specified class of projections.
-
createBuilder
Creates a context builder that will create the specified projection.- Parameters:
proj- the projection to build- Returns:
- a context builder that will create the specified projection.
-