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
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addInternal
(T o) protected boolean
protected boolean
protected int
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
-
Constructor Details
-
DefaultContext
public DefaultContext() -
DefaultContext
-
DefaultContext
-
-
Method Details
-
addInternal
- Overrides:
addInternal
in classSmallDefaultContext<T>
-
iteratorInternal
- Overrides:
iteratorInternal
in classSmallDefaultContext<T>
-
removeInternal
- Overrides:
removeInternal
in classSmallDefaultContext<T>
-
containsInternal
- Overrides:
containsInternal
in classSmallDefaultContext<T>
-
sizeInternal
protected int sizeInternal()- Overrides:
sizeInternal
in classSmallDefaultContext<T>
-