Uses of Class
repast.simphony.space.continuous.NdPoint
-
-
Uses of NdPoint in repast.simphony.relogo
Methods in repast.simphony.relogo that return NdPoint Modifier and Type Method Description NdPoint
AbstractPatch. getGridLocationAsNdPoint()
NdPoint
Patch. getGridLocationAsNdPoint()
NdPoint
AbstractTurtle. getTurtleLocation()
NdPoint
Turtle. getTurtleLocation()
Methods in repast.simphony.relogo with parameters of type NdPoint Modifier and Type Method Description 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 AgentSet
JavaUtility. inRadiusUtility(AgentSet a, Number num, ContinuousSpace space, NdPoint location)
static GridPoint
Utility. ndPointToGridPoint(NdPoint loc)
Given a continuous space location, return the corresponding grid location as a GridPoint.static int[]
Utility. ndPointToIntArray(NdPoint loc)
Given a continuous space location, return the corresponding grid location as an int array.void
AbstractTurtle. setBaseTurtleProperties(Observer observer, TurtleFactory turtleFactory, String turtleShape, double heading, double color, NdPoint loc)
-
Uses of NdPoint in repast.simphony.relogo.factories
Methods in repast.simphony.relogo.factories with parameters of type NdPoint Modifier and Type Method Description Turtle
TurtleFactory. createTurtle(String turtleType, double heading, double color, NdPoint loc)
Turtle
TurtleFactory. createTurtle(String turtleType, NdPoint loc)
Turtle
TurtleFactory. createTurtle(NdPoint loc)
-
Uses of NdPoint in repast.simphony.space
Methods in repast.simphony.space with parameters of type NdPoint Modifier and Type Method Description static double
SpatialMath. calcAngleFor2DMovement(ContinuousSpace<? extends Object> space, NdPoint point1, NdPoint point2)
Calculates the angle in radians between the two points on the horizontal plane. -
Uses of NdPoint in repast.simphony.space.continuous
Fields in repast.simphony.space.continuous declared as NdPoint Modifier and Type Field Description NdPoint
AbstractContinuousSpace.PointHolder. point
Methods in repast.simphony.space.continuous that return NdPoint Modifier and Type Method Description NdPoint
AbstractContinuousSpace. getLocation(Object obj)
Gets the location of the specified object.NdPoint
ContinuousSpace. getLocation(Object obj)
Gets the location of the specified object.NdPoint
AbstractContinuousSpace. moveByDisplacement(T object, double... displacement)
Moves the specified object from its current location by the specified amount.NdPoint
ContinuousSpace. moveByDisplacement(T object, double... displacement)
Moves the specified object from its current location by the specified amount.NdPoint
AbstractContinuousSpace. moveByVector(T object, double distance, double... anglesInRadians)
Moves the specifed object the specified distance from its current position along the specified angle.NdPoint
ContinuousSpace. 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.space.continuous that return types with arguments of type NdPoint Modifier and Type Method Description protected Map<NdPoint,Object>
DefaultContinuousSpace. createLocationStorage()
Methods in repast.simphony.space.continuous with parameters of type NdPoint Modifier and Type Method Description T
CoordinateAccessor. get(U locationStorage, NdPoint location)
Gets the item at the specified location in the map.T
MultiOccupancyCoordinateAccessor. get(Map<NdPoint,Object> locationMap, NdPoint location)
Gets the item at the specified location in the map.T
SingleOccupancyCoordinateAccessor. get(Map<NdPoint,Object> locationMap, NdPoint location)
Gets the item at the specified location in the map.Iterable<T>
CoordinateAccessor. getAll(U locationStorage, NdPoint location)
Gets all the items at the specified location in the map.Iterable<T>
MultiOccupancyCoordinateAccessor. getAll(Map<NdPoint,Object> locationMap, NdPoint location)
Gets all the items at the specified location in the map.Iterable<T>
SingleOccupancyCoordinateAccessor. getAll(Map<NdPoint,Object> locationMap, NdPoint location)
Gets all the items at the specified location in the map.double[]
AbstractContinuousSpace. getDisplacement(NdPoint point1, NdPoint point2)
Returns the displacement between the NdPoints point1 and point2.double[]
ContinuousSpace. getDisplacement(NdPoint point1, NdPoint point2)
Returns the displacement between the NdPoints point1 and point2.double
AbstractContinuousSpace. getDistance(NdPoint point1, NdPoint point2)
Calculates the euclidian distance between the NdPoints point1 and point2.double
ContinuousSpace. getDistance(NdPoint point1, NdPoint point2)
Returns the distance between the NdPoints point1 and point2, taking into account the space's topology.double
AbstractContinuousSpace. getDistanceSq(NdPoint point1, NdPoint point2)
Calculates the square of the euclidian distance between the NdPoints point1 and point2.double
ContinuousSpace. getDistanceSq(NdPoint point1, NdPoint point2)
Returns the square of the distance between the NdPoints point1 and point2, taking into account the space's topology.T
CoordinateAccessor. getRandom(cern.jet.random.Uniform distribution, U locationStorage, NdPoint location)
Gets a random item from those at the specified location in the map.T
MultiOccupancyCoordinateAccessor. getRandom(cern.jet.random.Uniform distribution, Map<NdPoint,Object> locationMap, NdPoint location)
Gets a random item from those at the specified location in the map.T
SingleOccupancyCoordinateAccessor. getRandom(cern.jet.random.Uniform distribution, Map<NdPoint,Object> locationMap, NdPoint location)
Gets a random item from those at the specified location in the map.boolean
CoordinateAccessor. put(T obj, U locationStorage, NdPoint location)
Attempts to put the specified object at the specified location.boolean
MultiOccupancyCoordinateAccessor. put(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Attempts to put the specified object at the specified location.boolean
SingleOccupancyCoordinateAccessor. put(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Attempts to put the specified object at the specified location.void
CoordinateAccessor. remove(T obj, U locationStorage, NdPoint location)
Removes the specified object from the location in the map.void
MultiOccupancyCoordinateAccessor. remove(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Removes the specified object from the location in the map.void
SingleOccupancyCoordinateAccessor. remove(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Removes the specified object from the location in the map.void
AbstractPointTranslator. transform(NdPoint transformedLocation, double... targetLocation)
Transform the given targetLocation according to default moveTo semantics.void
PointTranslator. transform(NdPoint transformedLocation, double... targetLocation)
Transform the given targetLocation according to this PointTranslator's semantics.void
WrapAroundBorders. transform(NdPoint transformedLocation, double... targetLocation)
Transform the given targetLocation according to periodic "wrapped" semantics.void
BouncyBorders. translate(NdPoint location, double[] newLocation, double... displacement)
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
PointTranslator. translate(NdPoint location, double[] newLocation, double... displacement)
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
StickyBorders. translate(NdPoint location, double[] newLocation, double... displacement)
Translates the specified location by the amount of displacement along each dimensions.void
StrictBorders. translate(NdPoint location, double[] newLocation, double... displacement)
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
WrapAroundBorders. translate(NdPoint location, double[] newLocation, double... displacement)
Translates the specified location by the specified displacement according to periodic "wrapped" semantics.Method parameters in repast.simphony.space.continuous with type arguments of type NdPoint Modifier and Type Method Description T
MultiOccupancyCoordinateAccessor. get(Map<NdPoint,Object> locationMap, NdPoint location)
Gets the item at the specified location in the map.T
SingleOccupancyCoordinateAccessor. get(Map<NdPoint,Object> locationMap, NdPoint location)
Gets the item at the specified location in the map.Iterable<T>
MultiOccupancyCoordinateAccessor. getAll(Map<NdPoint,Object> locationMap, NdPoint location)
Gets all the items at the specified location in the map.Iterable<T>
SingleOccupancyCoordinateAccessor. getAll(Map<NdPoint,Object> locationMap, NdPoint location)
Gets all the items at the specified location in the map.T
MultiOccupancyCoordinateAccessor. getRandom(cern.jet.random.Uniform distribution, Map<NdPoint,Object> locationMap, NdPoint location)
Gets a random item from those at the specified location in the map.T
SingleOccupancyCoordinateAccessor. getRandom(cern.jet.random.Uniform distribution, Map<NdPoint,Object> locationMap, NdPoint location)
Gets a random item from those at the specified location in the map.boolean
MultiOccupancyCoordinateAccessor. put(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Attempts to put the specified object at the specified location.boolean
SingleOccupancyCoordinateAccessor. put(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Attempts to put the specified object at the specified location.void
MultiOccupancyCoordinateAccessor. remove(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Removes the specified object from the location in the map.void
SingleOccupancyCoordinateAccessor. remove(T obj, Map<NdPoint,Object> locationMap, NdPoint location)
Removes the specified object from the location in the map.Constructor parameters in repast.simphony.space.continuous with type arguments of type NdPoint Constructor Description DefaultContinuousSpace(String name, ContinuousAdder<T> adder, PointTranslator translator, CoordinateAccessor<T,Map<NdPoint,Object>> accessor, double... size)
Constructs this space with the specified name, adder, translator, accessor and size. -
Uses of NdPoint in repast.simphony.valueLayer
Fields in repast.simphony.valueLayer with type parameters of type NdPoint Modifier and Type Field Description protected Map<NdPoint,Double>
ContinuousValueLayer. locationMap
-
Uses of NdPoint in repast.simphony.visualization.editor.space
Methods in repast.simphony.visualization.editor.space that return NdPoint Modifier and Type Method Description NdPoint
Projected3DSpace. getLocation(Object obj)
Gets the location of the specified object.NdPoint
Projected3DSpace. moveByDisplacement(T object, double... displacement)
Moves the specified object from its current location by the specified amount.NdPoint
Projected3DSpace. 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 NdPoint Modifier and Type Method Description double[]
Projected3DSpace. getDisplacement(NdPoint point1, NdPoint point2)
Returns the displacement between the NdPoints point1 and point2.double
Projected3DSpace. getDistance(NdPoint point1, NdPoint point2)
Gets the the euclidian distance between the NdPoints point1 and point2.double
Projected3DSpace. getDistanceSq(NdPoint point1, NdPoint point2)
Gets the square of the euclidian distance between the NdPoints point1 and point2.
-