s.setOrderToGoto(i); sendUpdateMove(s);
ScheduleIterator si = new ScheduleIterator (scheduleIterator.getScheduleKey(), i); Move m = ChangeTrainMove.generateMove(trainNumber, modelRoot.getPlayerPrincipal(), (TrainModel) w.get(KEY.TRAINS, trainNumber, modelRoot.getPlayerPrincipal()), si, (GameTime) w.get(ITEM.TIME, Player.AUTHORITATIVE)); modelRoot.getReceiver().processMove(m);
    private void gotoStationJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gotoStationJMenuItemActionPerformed        MutableSchedule s = getSchedule();        int i = orders.getSelectedIndex();        s.setOrderToGoto(i);        sendUpdateMove(s);    }//GEN-LAST:event_gotoStationJMenuItemActionPerformed