de.cesr.sesamgim.context
Class GMilieuContext<AgentType extends GimMilieuAgent<?>>

java.lang.Object
  extended by java.util.AbstractCollection<T>
      extended by repast.simphony.context.AbstractContext<T>
          extended by repast.simphony.context.SmallDefaultContext<T>
              extended by repast.simphony.context.DefaultContext<AgentType>
                  extended by de.cesr.sesamgim.context.GMilieuContext<AgentType>
All Implemented Interfaces:
GimMilieuContext<AgentType>, Iterable<AgentType>, Collection<AgentType>, repast.simphony.context.Context<AgentType>, repast.simphony.context.ContextListener, repast.simphony.context.RepastElement

public class GMilieuContext<AgentType extends GimMilieuAgent<?>>
extends repast.simphony.context.DefaultContext<AgentType>
implements GimMilieuContext<AgentType>

SesamGIM - Geographical Initialisation for Milieu Agents


Field Summary
protected static Logger logger
          Logger
 
Fields inherited from class repast.simphony.context.SmallDefaultContext
allObjs, objectMap
 
Fields inherited from class repast.simphony.context.AbstractContext
subContexts
 
Fields inherited from interface repast.simphony.context.Context
SYN_CONTEXT_PREFIX
 
Constructor Summary
GMilieuContext(GimMilieuContextAwareContext<AgentType> context, int milieuId)
           
 
Method Summary
 GimMilieuContextAwareContext<AgentType> getMilieuContextAwareContext()
           
 int getMilieuId()
          Return the SesamGim group context id of this context.
 String getSuperContextId()
          Returns the ID of the parental context (market cell context).
 String toString()
           
 
Methods inherited from class repast.simphony.context.DefaultContext
addInternal, containsInternal, iteratorInternal, removeInternal, sizeInternal
 
Methods inherited from class repast.simphony.context.SmallDefaultContext
getObjects, getRandomObject, getRandomObjects
 
Methods inherited from class repast.simphony.context.AbstractContext
add, addContextListener, addProjection, addSubContext, addValueLayer, clear, contains, eventOccured, findContext, findParent, fireAddContextEvent, fireRemoveEvent, fireSubContextAdded, fireSubContextRemoved, getAgentLayer, getAgentTypes, getContextListeners, getId, getProjection, getProjection, getProjections, getProjections, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, handleRemove, hasSubContext, iterator, query, remove, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setId, setTypeID, size
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface repast.simphony.context.Context
addContextListener, addProjection, addSubContext, addValueLayer, findContext, findParent, getAgentLayer, getAgentTypes, getContextListeners, getObjects, getProjection, getProjection, getProjections, getProjections, getRandomObject, getRandomObjects, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, hasSubContext, query, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setTypeID
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface repast.simphony.context.RepastElement
getId, setId
 

Field Detail

logger

protected static Logger logger
Logger

Constructor Detail

GMilieuContext

public GMilieuContext(GimMilieuContextAwareContext<AgentType> context,
                      int milieuId)
Parameters:
milieuContextAwareContext -
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractCollection<AgentType extends GimMilieuAgent<?>>
See Also:
AbstractCollection.toString()

getMilieuId

public int getMilieuId()
Description copied from interface: GimMilieuContext
Return the SesamGim group context id of this context.

Specified by:
getMilieuId in interface GimMilieuContext<AgentType extends GimMilieuAgent<?>>
See Also:
GimMilieuContext.getMilieuId()

getMilieuContextAwareContext

public GimMilieuContextAwareContext<AgentType> getMilieuContextAwareContext()
Specified by:
getMilieuContextAwareContext in interface GimMilieuContext<AgentType extends GimMilieuAgent<?>>
Returns:
the parental market cell context
See Also:
de.cesr.sesamgim.context.GimMilieuContext#getMc()

getSuperContextId

public String getSuperContextId()
Description copied from interface: GimMilieuContext
Returns the ID of the parental context (market cell context).

Specified by:
getSuperContextId in interface GimMilieuContext<AgentType extends GimMilieuAgent<?>>
Returns:
market cell id
See Also:
GimMilieuContext.getSuperContextId()