repast.simphony.context
Class AbstractSpatialContext<T,V>

java.lang.Object
  extended by java.util.AbstractCollection<T>
      extended by repast.simphony.context.AbstractContext<T>
          extended by 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
AbstractSpatialContext()
           
 
Method Summary
abstract  double[] dimensions()
           
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 repast.simphony.context.SpatialContext
getObjectsAt, moveByDisplacement, moveByVector, putObjectAt, putObjectAt
 
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
 

Constructor Detail

AbstractSpatialContext

public AbstractSpatialContext()
Method Detail

getLocation

public abstract V getLocation(Object object)
Specified by:
getLocation in interface SpatialContext<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()