Examples of TrainState


Examples of mods.railcraft.common.carts.Train.TrainState

//        return dataWatcher.getWatchableObjectByte(WATCHER_ID_ACTIVE) != 0;
    }

    protected void setActive(boolean active) {
        this.active = active;
        TrainState state = active ? Train.TrainState.STOPPED : Train.TrainState.NORMAL;
        Train.getTrain(this).setTrainState(state);
//        dataWatcher.updateObject(WATCHER_ID_ACTIVE, Byte.valueOf((byte)(active ? 1 : 0)));
    }
View Full Code Here

Examples of org.onebusaway.uk.network_rail.gtfs_realtime.model.TrainState

    if (_statePath == null || _inReplay) {
      return;
    }
    List<TrainState> states = new ArrayList<TrainState>();
    for (TrainInstance instance : _trainsById.values()) {
      TrainState state = new TrainState();
      state.setTrainId(instance.getTrainId());
      state.setTrainUid(instance.getSchedule().getTrainUid());
      state.setServiceDate(instance.getServiceDate());
      state.setLastUpdateTimestamp(instance.getLastUpdateTime());
      states.add(state);
    }

    ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(
        new FileOutputStream(_statePath)));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.