if (trajectory != null) {
String id = trajectory.getName();
actuator.setAttribute("id", id);
if (trajectory instanceof ITrajectoryK) {
ITrajectoryK trajectoryK = (ITrajectoryK) trajectory;
actuator.setAttribute("e0", String.valueOf(trajectoryK.getE0()));
actuator.setAttribute("e1", String.valueOf(trajectoryK.getE1()));
actuator.setAttribute("e2", String.valueOf(trajectoryK.getE2()));
actuator.setAttribute("edeltaedge", String.valueOf(trajectoryK.getEDeltaEdge()));
actuator.setAttribute("edeltapreEdge",
String.valueOf(trajectoryK.getEDeltaPreEdge()));
actuator.setAttribute("emin", String.valueOf(trajectoryK.getEMin()));
actuator.setAttribute("kdelta", String.valueOf(trajectoryK.getKDelta()));
actuator.setAttribute("kmax", String.valueOf(trajectoryK.getKMax()));
actuator.setAttribute("kmin", String.valueOf(trajectoryK.getKMin()));
actuator.setAttribute("m", String.valueOf(trajectoryK.getM()));
actuator.setAttribute("n", String.valueOf(trajectoryK.getN()));
}
else {
actuator.setAttribute("from", String.valueOf(trajectory.getBeginPosition()));
actuator.setAttribute("to", String.valueOf(trajectory.getEndPosition()));
actuator.setAttribute("delta", String.valueOf(trajectory.getDelta()));