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>
|
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 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 |
AbstractSpatialContext
public AbstractSpatialContext()
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()