@Override
	public void reset() {
		if (input != null) {
			if (input.getSource() != null)
				this.setName("trajectory of "
						+ input.getSource().getParent().getName());

			xs = new StateTrajectory[input.getDim()];
			for (int i = 0; i < xs.length; i++)
				xs[i] = new StateTrajectory();
		}
		result = null;
		maxv = 0;
	}