Package repast.simphony.context
Class DefaultContext<T>
- java.lang.Object
-
- java.util.AbstractCollection<T>
-
- repast.simphony.context.AbstractContext<T>
-
- repast.simphony.context.SmallDefaultContext<T>
-
- repast.simphony.context.DefaultContext<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Context<T>
,ContextListener
,RepastElement
public class DefaultContext<T> extends SmallDefaultContext<T>
-
-
Field Summary
-
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
Constructors Constructor Description DefaultContext()
DefaultContext(Object name)
DefaultContext(Object name, Object typeID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addInternal(T o)
protected boolean
containsInternal(Object o)
protected Iterator<T>
iteratorInternal()
protected boolean
removeInternal(Object o)
protected int
sizeInternal()
-
Methods inherited from class repast.simphony.context.SmallDefaultContext
getObjects, getObjectsAsStream, getRandomObject, getRandomObjects, getRandomObjectsAsStream, removeAll, retainAll
-
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, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeIf, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
addInternal
protected boolean addInternal(T o)
- Overrides:
addInternal
in classSmallDefaultContext<T>
-
iteratorInternal
protected Iterator<T> iteratorInternal()
- Overrides:
iteratorInternal
in classSmallDefaultContext<T>
-
removeInternal
protected boolean removeInternal(Object o)
- Overrides:
removeInternal
in classSmallDefaultContext<T>
-
containsInternal
protected boolean containsInternal(Object o)
- Overrides:
containsInternal
in classSmallDefaultContext<T>
-
sizeInternal
protected int sizeInternal()
- Overrides:
sizeInternal
in classSmallDefaultContext<T>
-
-