Package repast.simphony.context
Class AbstractSpatialContext<T,V>
java.lang.Object
java.util.AbstractCollection<T>
repast.simphony.context.AbstractContext<T>
repast.simphony.context.AbstractSpatialContext<T,V>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Context<T>
,ContextListener
,RepastElement
,SpatialContext<T,
V>
public abstract class AbstractSpatialContext<T,V>
extends AbstractContext<T>
implements SpatialContext<T,V>
-
Field Summary
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 TypeMethodDescriptionabstract double[]
protected double[]
getDisplacement
(int unitDimension, double scale, double... anglesInRadians) abstract V
getLocation
(Object object) protected double[]
rotate
(double[] plane, double angle) protected double[]
scale
(double[] point, double scale) Methods inherited from class repast.simphony.context.AbstractContext
add, addContextListener, addInternal, addProjection, addSubContext, addValueLayer, clear, contains, containsInternal, eventOccured, findContext, findParent, fireAddContextEvent, fireRemoveEvent, fireSubContextAdded, fireSubContextRemoved, getAgentLayer, getAgentTypes, getContextListeners, getId, getProjection, getProjection, getProjections, getProjections, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, handleRemove, hasSubContext, iterator, iteratorInternal, query, remove, removeContextListener, removeInternal, removeProjection, removeSubContext, removeValueLayer, setId, setTypeID, size, sizeInternal
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, 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
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface repast.simphony.context.Context
addContextListener, addProjection, addSubContext, addValueLayer, findContext, findParent, getAgentLayer, getAgentTypes, getContextListeners, getObjects, getObjectsAsStream, getProjection, getProjection, getProjections, getProjections, getRandomObject, getRandomObjects, getRandomObjectsAsStream, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, hasSubContext, query, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setTypeID
Methods inherited from interface repast.simphony.context.RepastElement
getId, setId
Methods inherited from interface repast.simphony.context.SpatialContext
getObjectsAt, moveByDisplacement, moveByVector, putObjectAt, putObjectAt
-
Constructor Details
-
AbstractSpatialContext
public AbstractSpatialContext()
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfaceSpatialContext<T,
V>
-
rotate
protected double[] rotate(double[] plane, double angle) -
scale
protected double[] scale(double[] point, double scale) -
getDisplacement
protected double[] getDisplacement(int unitDimension, double scale, double... anglesInRadians) -
dimensions
public abstract double[] dimensions()
-