Uses of Class
repast.simphony.space.grid.GridPoint
Package
Description
-
Uses of GridPoint in repast.simphony.context.space.grid
ModifierConstructorDescriptionContextGrid
(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
-
Uses of GridPoint in repast.simphony.relogo
Modifier and TypeMethodDescriptionAbstractPatch.getGridLocation()
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.Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionAbstractGrid.getLocation
(Object obj) Gets the location of the specified object.Grid.getLocation
(Object obj) Gets the location of the specified object.AbstractGrid.moveByDisplacement
(T object, int... displacement) Moves the specified object from its current location by the specified amount.Grid.moveByDisplacement
(T object, int... displacement) Moves the specified object from its current location by the specified amount.AbstractGrid.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specifed object the specified distance from its current position along the specified angle.Grid.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specified object the specified distance from its current position along the specified angle.Modifier and TypeMethodDescriptionGets the item at the specified location in the map.Gets the item at the specified location in the map.Gets the item at the specified location in the map.Gets all the items at the specified location in the map.Gets all the items at the specified location in the map.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.Gets a random item from those at the specified location in the map.Gets a random item from those at the specified location in the map.Gets a random item from those at the specified location in the map.boolean
Attempts to put the specified object at the specified location.boolean
boolean
Attempts to put the specified object at the specified location.boolean
Attempts to put the specified object at the specified location.void
Removes the specified object from the location in the map.void
FastDenseSingleOccuGrid.FastDenseAccessor.remove
(V obj, Object[] locationStorage, GridPoint location) void
Removes the specified object from the location in the map.void
Removes the specified object from the location in the map.void
Transform the given targetLocation according to default moveTo semantics.void
Transform the given targetLocation according to this GridPointTranslator's semantics.void
Transform the given targetLocation according to periodic "wrapped" semantics.Modifier and TypeMethodDescriptionGets the item at the specified location in the map.Gets the item at the specified location in the map.Gets all the items at the specified location in the map.Gets all the items at the specified location in the map.Gets a random item from those at the specified location in the map.Gets a random item from those at the specified location in the map.boolean
Attempts to put the specified object at the specified location.boolean
Attempts to put the specified object at the specified location.void
Removes the specified object from the location in the map.void
Removes the specified object from the location in the map.ModifierConstructorDescriptionDefaultGrid
(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
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionProjected3DGrid.getLocation
(Object obj) Gets the location of the specified object.Projected3DGrid.moveByDisplacement
(T object, int... displacement) Moves the specified object from its current location by the specified amount.Projected3DGrid.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specifed object the specified distance from its current position along the specified angle.Modifier and TypeMethodDescriptiondouble
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.