Package repast.simphony.context
Class DefaultContextFactory<T>
- java.lang.Object
-
- repast.simphony.context.DefaultContextFactory<T>
-
- All Implemented Interfaces:
ContextFactory<T>
public class DefaultContextFactory<T> extends Object implements ContextFactory<T>
A basic concrete implementation of theContextFactory
interface.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context<T>
createContext(Object contextId)
Creates a newContext
with the given identifier.
-
-
-
Method Detail
-
createContext
public Context<T> createContext(Object contextId)
Description copied from interface:ContextFactory
Creates a newContext
with the given identifier.- Specified by:
createContext
in interfaceContextFactory<T>
- Parameters:
contextId
- the identifier to associate with the createdContext
object.- Returns:
- a new
Context
object.
-
-