crowdmodel
Class CContextCreator
java.lang.Object
crowdmodel.CContextCreator
- All Implemented Interfaces:
- repast.simphony.dataLoader.ContextBuilder<CObject>
public class CContextCreator
- extends java.lang.Object
- implements repast.simphony.dataLoader.ContextBuilder<CObject>
Context creator is one of the main classes of the model.
It creates the context in which everything resides. This includes the objects,
the spaces in which objects/agents are places, but also
the relationships between objects can be defined here.
This (main) context created for the CROSS model represents the 'world' (physical objects) and
a subcontext (agents). One can see it as an extra specification layer.
Main/master context: the one to rule them all, this one creates all the other
contexts and has all the elements that its subcontexts also has. Here the physical world is described. Walkable|non-walkable areas,
grid, space and value layers.
Subcontext: agents, here the social structure is described as a subcontext
of the main context. The social structure is defined by having agents and their relations (projections)
This is a part of the Repast structure, so for further information
read the Repast tutorial/website (repast.sourceforge.net).
0) CROSS has 2 contexts: main/world and agents. Where agents resides in world/main.
1) The projections in CROSS are: grid, continuous, value and network. Of which network belongs to the agent context and all the others to the world context.
2) In the score file every element needs to be registered, so Repast finds them.
- Author:
- Nanda Wijermans
Method Summary |
repast.simphony.context.Context<CObject> |
build(repast.simphony.context.Context<CObject> context)
Builds and returns a context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CContextCreator
public CContextCreator()
build
public repast.simphony.context.Context<CObject> build(repast.simphony.context.Context<CObject> context)
- Builds and returns a context. Building a context consists of filling it with
agents, adding projections and so forth. When 'build' is executed, the master context
the system will return a context based on information given in the
model.score file.
Includes:
- Retrieving environment parameters from the GUI/batch-file
- Physical element that make up the world context. These are areas of the festival scenario (
-
- Specified by:
build
in interface repast.simphony.dataLoader.ContextBuilder<CObject>