Uses of Class
repast.simphony.space.grid.GridPoint
-
-
Uses of GridPoint in repast.simphony.context.space.grid
Constructor parameters in repast.simphony.context.space.grid with type arguments of type GridPoint Constructor Description ContextGrid(String name, GridAdder<T> adder, GridPointTranslator translator, CellAccessor<T,Map<GridPoint,Object>> accessor, int... size)
Constructs this space with the specified name, adder, translator, accessor and size.ContextGrid(String name, GridAdder<T> adder, GridPointTranslator translator, CellAccessor<T,Map<GridPoint,Object>> accessor, int[] size, int[] origin)
Constructs this space with the specified name, adder, translator, accessor, size, and origin. -
Uses of GridPoint in repast.simphony.query.space.grid
Fields in repast.simphony.query.space.grid declared as GridPoint Modifier and Type Field Description protected GridPoint
AbstractGridQuery. point
Methods in repast.simphony.query.space.grid that return GridPoint Modifier and Type Method Description GridPoint
GridCell. getPoint()
Gets the location of this GridCell.Constructors in repast.simphony.query.space.grid with parameters of type GridPoint Constructor Description GridCell(GridPoint pt, Class<T> clazz)
Creates a GridCell for the specified point.GridCellNgh(Grid<? extends Object> grid, GridPoint point, Class<T> clazz, int... extent)
Creates a GridCellNgh using the specified grid, point, type and extent. -
Uses of GridPoint in repast.simphony.relogo
Methods in repast.simphony.relogo that return GridPoint Modifier and Type Method Description GridPoint
AbstractPatch. getGridLocation()
GridPoint
Patch. getGridLocation()
static GridPoint
Utility. getGridPointAtDisplacement(NdPoint currentLocation, double[] displacement, Observer observer)
Returns the GridPoint object of the grid location corresponding to the displacement from the NdPoint currentLocation.static GridPoint
Utility. ndPointToGridPoint(NdPoint loc)
Given a continuous space location, return the corresponding grid location as a GridPoint.Methods in repast.simphony.relogo with parameters of type GridPoint Modifier and Type Method Description static Patch
Utility. getPatchAtLocation(GridPoint gridPoint, Observer observer)
Returns the Patch object at the gridPoint location.static <any>
Utility. getTurtlesOnGridPoint(GridPoint patchLocation, Observer observer)
Returns the turtles on the patch corresponding to the patchLocation GridPoint.static <any>
Utility. getTurtlesOnGridPoint(GridPoint patchLocation, Observer observer, Class type)
Returns the turtles of this type on the patch corresponding to the patchLocation GridPoint.static <any>
Utility. getTurtlesOnGridPoint(GridPoint patchLocation, Observer observer, String typeName)
Returns the turtles of this typeName on the patch corresponding to the patchLocation GridPoint. -
Uses of GridPoint in repast.simphony.space.grid
Methods in repast.simphony.space.grid that return GridPoint Modifier and Type Method Description GridPoint
AbstractGrid. getLocation(Object obj)
Gets the location of the specified object.GridPoint
Grid. getLocation(Object obj)
Gets the location of the specified object.GridPoint
AbstractGrid. moveByDisplacement(T object, int... displacement)
Moves the specified object from its current location by the specified amount.GridPoint
Grid. moveByDisplacement(T object, int... displacement)
Moves the specified object from its current location by the specified amount.GridPoint
AbstractGrid. moveByVector(T object, double distance, double... anglesInRadians)
Moves the specifed object the specified distance from its current position along the specified angle.GridPoint
Grid. moveByVector(T object, double distance, double... anglesInRadians)
Moves the specified object the specified distance from its current position along the specified angle.Methods in repast.simphony.space.grid that return types with arguments of type GridPoint Modifier and Type Method Description protected Map<GridPoint,Object>
DefaultGrid. createLocationStorage()
Methods in repast.simphony.space.grid with parameters of type GridPoint Modifier and Type Method Description T
CellAccessor. get(U locationStorage, GridPoint location)
Gets the item at the specified location in the map.V
FastDenseSingleOccuGrid.FastDenseAccessor. get(Object[] locationStorage, GridPoint location)
T
MultiOccupancyCellAccessor. get(Map<GridPoint,Object> locationMap, GridPoint location)
Gets the item at the specified location in the map.T
SingleOccupancyCellAccessor. get(Map<GridPoint,Object> locationMap, GridPoint location)
Gets the item at the specified location in the map.Iterable<T>
CellAccessor. getAll(U locationStorage, GridPoint location)
Gets all the items at the specified location in the map.Iterable<V>
FastDenseSingleOccuGrid.FastDenseAccessor. getAll(Object[] locationStorage, GridPoint location)
Iterable<T>
MultiOccupancyCellAccessor. getAll(Map<GridPoint,Object> locationMap, GridPoint location)
Gets all the items at the specified location in the map.Iterable<T>
SingleOccupancyCellAccessor. getAll(Map<GridPoint,Object> locationMap, GridPoint location)
Gets all the items at the specified location in the map.double
AbstractGrid. getDistance(GridPoint point1, GridPoint point2)
Gets the the euclidian distance between the GridPoints point1 and point2.double
Grid. getDistance(GridPoint point1, GridPoint point2)
Returns the distance between the GridPoints point1 and point2, taking into account the space's topology.double
AbstractGrid. getDistanceSq(GridPoint point1, GridPoint point2)
Gets the square of the euclidian distance between the GridPoints point1 and point2.double
Grid. getDistanceSq(GridPoint point1, GridPoint point2)
Returns the square of the distance between the GridPoints point1 and point2, taking into account the space's topology.T
CellAccessor. getRandom(U locationStorage, GridPoint location)
Gets a random item from those at the specified location in the map.V
FastDenseSingleOccuGrid.FastDenseAccessor. getRandom(Object[] locationStorage, GridPoint location)
T
MultiOccupancyCellAccessor. getRandom(Map<GridPoint,Object> locationMap, GridPoint location)
Gets a random item from those at the specified location in the map.T
SingleOccupancyCellAccessor. getRandom(Map<GridPoint,Object> locationMap, GridPoint location)
Gets a random item from those at the specified location in the map.boolean
CellAccessor. put(T obj, U locationStorage, GridPoint location)
Attempts to put the specified object at the specified location.boolean
FastDenseSingleOccuGrid.FastDenseAccessor. put(V obj, Object[] locationStorage, GridPoint location)
boolean
MultiOccupancyCellAccessor. put(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Attempts to put the specified object at the specified location.boolean
SingleOccupancyCellAccessor. put(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Attempts to put the specified object at the specified location.void
CellAccessor. remove(T obj, U locationStorage, GridPoint location)
Removes the specified object from the location in the map.void
FastDenseSingleOccuGrid.FastDenseAccessor. remove(V obj, Object[] locationStorage, GridPoint location)
void
MultiOccupancyCellAccessor. remove(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Removes the specified object from the location in the map.void
SingleOccupancyCellAccessor. remove(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Removes the specified object from the location in the map.void
AbstractGridPointTranslator. transform(GridPoint transformedLocation, int... targetLocation)
Transform the given targetLocation according to default moveTo semantics.void
GridPointTranslator. transform(GridPoint transformedLocation, int... targetLocation)
Transform the given targetLocation according to this GridPointTranslator's semantics.void
WrapAroundBorders. transform(GridPoint transformedLocation, int... targetLocation)
Transform the given targetLocation according to periodic "wrapped" semantics.Method parameters in repast.simphony.space.grid with type arguments of type GridPoint Modifier and Type Method Description T
MultiOccupancyCellAccessor. get(Map<GridPoint,Object> locationMap, GridPoint location)
Gets the item at the specified location in the map.T
SingleOccupancyCellAccessor. get(Map<GridPoint,Object> locationMap, GridPoint location)
Gets the item at the specified location in the map.Iterable<T>
MultiOccupancyCellAccessor. getAll(Map<GridPoint,Object> locationMap, GridPoint location)
Gets all the items at the specified location in the map.Iterable<T>
SingleOccupancyCellAccessor. getAll(Map<GridPoint,Object> locationMap, GridPoint location)
Gets all the items at the specified location in the map.T
MultiOccupancyCellAccessor. getRandom(Map<GridPoint,Object> locationMap, GridPoint location)
Gets a random item from those at the specified location in the map.T
SingleOccupancyCellAccessor. getRandom(Map<GridPoint,Object> locationMap, GridPoint location)
Gets a random item from those at the specified location in the map.boolean
MultiOccupancyCellAccessor. put(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Attempts to put the specified object at the specified location.boolean
SingleOccupancyCellAccessor. put(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Attempts to put the specified object at the specified location.void
MultiOccupancyCellAccessor. remove(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Removes the specified object from the location in the map.void
SingleOccupancyCellAccessor. remove(T obj, Map<GridPoint,Object> locationMap, GridPoint location)
Removes the specified object from the location in the map.Constructor parameters in repast.simphony.space.grid with type arguments of type GridPoint Constructor Description DefaultGrid(String name, GridAdder<T> adder, GridPointTranslator translator, CellAccessor<T,Map<GridPoint,Object>> accessor, int... size)
DefaultGrid(String name, GridAdder<T> adder, GridPointTranslator translator, CellAccessor<T,Map<GridPoint,Object>> accessor, int[] size, int[] origin)
-
Uses of GridPoint in repast.simphony.valueLayer
Methods in repast.simphony.valueLayer that return GridPoint Modifier and Type Method Description GridPoint
GridCell. getLocation()
Methods in repast.simphony.valueLayer with parameters of type GridPoint Modifier and Type Method Description void
BufferedGridValueLayer. forEach(GridFunction function, GridPoint origin, BufferedGridValueLayer.Buffer buffer, int... extent)
Apply the specified function to each cell in the extent around the origin.void
GridValueLayer. forEach(GridFunction function, GridPoint origin, int... extent)
Apply the specified function to each cell in the extent around the origin. -
Uses of GridPoint in repast.simphony.visualization.editor.space
Methods in repast.simphony.visualization.editor.space that return GridPoint Modifier and Type Method Description GridPoint
Projected3DGrid. getLocation(Object obj)
Gets the location of the specified object.GridPoint
Projected3DGrid. moveByDisplacement(T object, int... displacement)
Moves the specified object from its current location by the specified amount.GridPoint
Projected3DGrid. moveByVector(T object, double distance, double... anglesInRadians)
Moves the specifed object the specified distance from its current position along the specified angle.Methods in repast.simphony.visualization.editor.space with parameters of type GridPoint Modifier and Type Method Description double
Projected3DGrid. getDistance(GridPoint point1, GridPoint point2)
Gets the the euclidian distance between the GridPoints point1 and point2.double
Projected3DGrid. getDistanceSq(GridPoint point1, GridPoint point2)
Gets the square of the euclidian distance between the GridPoints point1 and point2.
-