Class FreezeDryedContextBuilder
- java.lang.Object
-
- repast.simphony.dataLoader.engine.FreezeDryedContextBuilder
-
- All Implemented Interfaces:
ContextBuilder
- Direct Known Subclasses:
DelimitedFileContextBuilder
,JDBCContextBuilder
public abstract class FreezeDryedContextBuilder extends Object implements ContextBuilder
-
-
Constructor Summary
Constructors Constructor Description FreezeDryedContextBuilder(boolean createContextFromData, Iterable<Class<?>> classesToLoad, Object contextId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Context
build(Context context)
Builds and returns a context.Context
create(Object creatorID)
Iterable<Class<?>>
getClassesToLoad()
Object
getFreezeDryedContextId()
boolean
isCreateContextFromData()
void
load(Context context)
void
load(FreezeDryedRegistry registry, Context context)
protected abstract void
registerWriters(FreezeDryedRegistry registry)
-
-
-
Method Detail
-
build
public Context build(Context context)
Description copied from interface:ContextBuilder
Builds and returns a context. Building a context consists of filling it with agents, adding projections and so forth. The returned context does not necessarily have to be the passed in context.- Specified by:
build
in interfaceContextBuilder
- Returns:
- the built context.
-
registerWriters
protected abstract void registerWriters(FreezeDryedRegistry registry) throws FreezeDryingException
- Throws:
FreezeDryingException
-
load
public void load(Context context)
-
load
public void load(FreezeDryedRegistry registry, Context context)
-
getFreezeDryedContextId
public final Object getFreezeDryedContextId()
-
isCreateContextFromData
public final boolean isCreateContextFromData()
-
-