Package repast.simphony.space.continuous
Class RandomCartesianAdder<T>
java.lang.Object
repast.simphony.space.continuous.RandomCartesianAdder<T>
- All Implemented Interfaces:
ContinuousAdder<T>
,Adder<ContinuousSpace<T>,
T>
This will place the added object at a random location in the space. Since the space should be
adding new objects to itself automatically, this performs a move on those objects to a random
location.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ContinuousSpace<T> space, T obj) Adds the specified object to the space at a random location.
-
Constructor Details
-
RandomCartesianAdder
public RandomCartesianAdder()
-
-
Method Details
-
add
Adds the specified object to the space at a random location.- Specified by:
add
in interfaceAdder<ContinuousSpace<T>,
T> - Parameters:
space
- the space to add the object to.obj
- the object to add.
-