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 Details

    • 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 for
      builder - 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.