de.cesr.sesamgim.context
Interface GimMilieuContextAwareContext<AgentType extends GimMilieuAgent<?>>

All Superinterfaces:
Collection<AgentType>, repast.simphony.context.Context<AgentType>, Iterable<AgentType>, repast.simphony.context.RepastElement
All Known Subinterfaces:
GimMarketCellContext<AgentType>, GimUpdatableContext<AgentType>, GimUpdatablePlzContext<AgentType>
All Known Implementing Classes:
GMarketCellContext, GUpdatablePlzContext

public interface GimMilieuContextAwareContext<AgentType extends GimMilieuAgent<?>>
extends repast.simphony.context.Context<AgentType>

Considers GimMilieuContext as sub-contexts. SesamGIM - Geographical Initialisation for Milieu Agents


Field Summary
 
Fields inherited from interface repast.simphony.context.Context
SYN_CONTEXT_PREFIX
 
Method Summary
 boolean addAgent(AgentType agent)
          Substitutes Collection.add(Object) in order to add agents to GimMilieuContexts.
 String getID()
          Return the context's id.
 GimMilieuContext<AgentType> getMilieu(int milieuId)
          Returns the milieu context of this market cell with the given ID
 
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
 

Method Detail

getMilieu

GimMilieuContext<AgentType> getMilieu(int milieuId)
Returns the milieu context of this market cell with the given ID

Parameters:
milieuId - milieu ID of the Milieu
Returns:
milieu context

addAgent

boolean addAgent(AgentType agent)
Substitutes Collection.add(Object) in order to add agents to GimMilieuContexts.

Parameters:
agent -
Returns:

getID

String getID()
Return the context's id. This is the MC id for GimMarketCellContexts or the PLZ for GimPlzContexts.

Returns:
id