MutableSchedule s = getSchedule(); s.addOrder(new TrainOrdersModel(new ObjectKey(KEY.STATIONS, modelRoot.getPlayerPrincipal(), 0), null, false, true, true)); sendUpdateMove(s);
TrainModel tm = (TrainModel) w.get(KEY.TRAINS, trainNumber, modelRoot.getPlayerPrincipal()); Schedule s = (Schedule) w.get(KEY.TRAIN_SCHEDULES, tm.getScheduleIterator().getScheduleKey().index, tm.getScheduleIterator().getScheduleKey().principal); TrainOrdersModel order = new TrainOrdersModel (new ObjectKey(KEY.STATIONS, modelRoot.getPlayerPrincipal(), 0), null, false, true, true); sendAddStationMove(s.getNumOrders(), order);
    private void addStationJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addStationJButtonActionPerformed        MutableSchedule s = getSchedule();        s.addOrder(new TrainOrdersModel(new ObjectKey(KEY.STATIONS,			modelRoot.getPlayerPrincipal(), 0), null, false, true,		    true));        sendUpdateMove(s);    }//GEN-LAST:event_addStationJButtonActionPerformed