de.cesr.sesamgim.context
Class GPlzContext<AgentType extends GimMilieuAgent<AgentType>>

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.GPlzContext<AgentType>
Type Parameters:
AgentType -
All Implemented Interfaces:
GimPlzContext<AgentType>, GimSuperContextAssignable<AgentType>, Iterable<AgentType>, Collection<AgentType>, repast.simphony.context.Context<AgentType>, repast.simphony.context.ContextListener, repast.simphony.context.RepastElement
Direct Known Subclasses:
GUpdatablePlzContext

public class GPlzContext<AgentType extends GimMilieuAgent<AgentType>>
extends repast.simphony.context.DefaultContext<AgentType>
implements GimPlzContext<AgentType>

SesamGIM - Geographical Initialisation for Milieu Agents


Field Summary
protected  int id
           
 
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
GPlzContext()
           
 
Method Summary
 void assignSuperContext(repast.simphony.context.Context<? super AgentType> areaContext)
           
 Set<AgentType> getDirectObjects(Class<?> clazz)
          Provides a unique set of objects that can be assigned to the given class without considering any sub-contexts.
 int getPlzId()
           
 void setPLZ99(String plz)
           
 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

id

protected int id
Constructor Detail

GPlzContext

public GPlzContext()
Method Detail

setPLZ99

public void setPLZ99(String plz)
Parameters:
plz -

getPlzId

public int getPlzId()
Specified by:
getPlzId in interface GimPlzContext<AgentType extends GimMilieuAgent<AgentType>>
Returns:
this PLZ context's ID
See Also:
GimPlzContext.getPlzId()

getDirectObjects

public Set<AgentType> getDirectObjects(Class<?> clazz)
Description copied from interface: GimPlzContext
Provides a unique set of objects that can be assigned to the given class without considering any sub-contexts.

Specified by:
getDirectObjects in interface GimPlzContext<AgentType extends GimMilieuAgent<AgentType>>
Returns:
unique set of objects
See Also:
GimPlzContext.getDirectObjects(java.lang.Class)

assignSuperContext

public void assignSuperContext(repast.simphony.context.Context<? super AgentType> areaContext)
Specified by:
assignSuperContext in interface GimSuperContextAssignable<AgentType extends GimMilieuAgent<AgentType>>
See Also:
GimSuperContextAssignable.assignSuperContext(repast.simphony.context.Context)

toString

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