Beispiel #1
0
 @Override
 protected void doReset() {
   currentX = initialState.getX();
   currentY = initialState.getY();
   currentZ = initialState.getZ();
   currentT = 0.0;
 }
Beispiel #2
0
  public RandomWalker(String name, DataPoint initialState) {
    super(name);

    if (initialState == null) throw new IllegalArgumentException("initialState cannot be null");

    this.initialState = initialState;
    this.bounds = new DataBox(initialState, 2.0);
    this.rng = new Random();
    this.stepSize = DEFAULT_STEP_SIZE;
    this.timeStep = DEFAULT_TIME_STEP;
    this.currentX = initialState.getX();
    this.currentY = initialState.getY();
    this.currentZ = initialState.getZ();
    this.currentT = 0.0;
  }