newOrders = new TrainOrdersModel(oldOrders.getStationNumber(), newConsist, oldOrders.getWaitUntilFull());
newOrders = new TrainOrdersModel(oldOrders.getStationNumber(), newConsist, oldOrders.getWaitUntilFull(), oldOrders.loadTrain, oldOrders.unloadTrain);
    private void  addWagon(int wagonTypeNumber){        TrainOrdersModel oldOrders, newOrders;        MutableSchedule s = getSchedule();        int orderNumber = this.orders.getSelectedIndex();        oldOrders = s.getOrder(orderNumber);        int[] newConsist;        //The consist will be null if old orders were 'no change'.        if(null != oldOrders.consist){            int oldLength = oldOrders.consist.length;            newConsist = new int[oldLength+1];            //Copy existing wagons            for( int i = 0 ; i < oldLength ; i ++){                newConsist[i] = oldOrders.consist[i];            }            //Then add specified wagon.            newConsist[oldLength] = wagonTypeNumber;        }else{            newConsist = new int[]{wagonTypeNumber};        }        newOrders = new TrainOrdersModel(oldOrders.getStationNumber(), newConsist, oldOrders.getWaitUntilFull());        s.setOrder(orderNumber, newOrders);        sendUpdateMove(s);    }