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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(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:
addin interfaceAdder<ContinuousSpace<T>,T> - Parameters:
space- the space to add the object to.obj- the object to add.
-