Class ContextBuilderFactory
- java.lang.Object
-
- repast.simphony.dataLoader.engine.ContextBuilderFactory
-
public class ContextBuilderFactory extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextBuilder
createBuilder(ProjectionData proj)
Creates a context builder that will create the specified projection.static ContextBuilderFactory
getInstance()
Gets the singleton instance of the ContextBuilderFactory.void
registerProjectionBuilder(String type, ProjectionBuilderFactory builder)
Registers the projection builder for use with the specified class.
-
-
-
Method Detail
-
getInstance
public static ContextBuilderFactory getInstance()
Gets the singleton instance of the ContextBuilderFactory.- Returns:
- the singleton instance of the ContextBuilderFactory.
-
registerProjectionBuilder
public void registerProjectionBuilder(String type, ProjectionBuilderFactory builder)
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
public ContextBuilder createBuilder(ProjectionData proj)
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.
-
-