}
public void setSpeed(Locomotive locomotive, int speed, boolean[] functions)
throws LocomotiveException {
SRCPLocomotive sLocomotive = locomotiveSRCPLocomotiveMap
.get(locomotive);
try {
locomotiveControl.setSpeed(sLocomotive, speed, functions);
} catch (SRCPModelException e) {
throw new LocomotiveException("Locomotive Error", e);