private static String getTrajectoryToString(ITrajectory trajectory) {
StringBuilder stringBuilder = new StringBuilder();
if (trajectory != null) {
stringBuilder.append(trajectory.getName());
if (trajectory instanceof ITrajectoryK) {
ITrajectoryK trajectoryK = (ITrajectoryK) trajectory;
stringBuilder.append(" e0 ");
stringBuilder.append(trajectoryK.getE0());
stringBuilder.append(" e1 ");
stringBuilder.append(trajectoryK.getE1());
stringBuilder.append(" e2 ");
stringBuilder.append(trajectoryK.getE2());
stringBuilder.append(" edeltaedge ");
stringBuilder.append(trajectoryK.getEDeltaEdge());
stringBuilder.append(" edeltapreEdge ");
stringBuilder.append(trajectoryK.getEDeltaPreEdge());
stringBuilder.append(" emin ");
stringBuilder.append(trajectoryK.getEMin());
stringBuilder.append(" kdelta ");
stringBuilder.append(trajectoryK.getKDelta());
stringBuilder.append(" kmax ");
stringBuilder.append(trajectoryK.getKMax());
stringBuilder.append(" kmin ");
stringBuilder.append(trajectoryK.getKMin());
stringBuilder.append(" m ");
stringBuilder.append(trajectoryK.getM());
stringBuilder.append(" n ");
stringBuilder.append(trajectoryK.getN());
}
else {
stringBuilder.append(" from ");
stringBuilder.append(trajectory.getBeginPosition());
stringBuilder.append(" to ");