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>
public class RandomCartesianAdder<T> extends Object implements ContinuousAdder<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 Constructor Description RandomCartesianAdder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ContinuousSpace<T> space, T obj)
Adds the specified object to the space at a random location.
-
-
-
Method Detail
-
add
public void add(ContinuousSpace<T> space, T obj)
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.
-
-