Package org.onebusaway.uk.network_rail.cif

Examples of org.onebusaway.uk.network_rail.cif.ETrainClass


    long timestamp = pickBestTimestamp(msgTimestamp, fileTimestamp);
    TrainMovementBody body = message.getBody();
    String trainId = body.getTrainId();
    String trainReportingNumber = trainId.substring(2, 6);
    int trainClassCode = Integer.parseInt(trainReportingNumber.substring(0, 1));
    ETrainClass trainClass = ETrainClass.getTrainClassForCode(trainClassCode);
    if (!trainClass.isPassengerClass()) {
      return;
    }
    TrainReportingNumberInstance instance = getTrainReportingNumberInstance(
        trainReportingNumber, timestamp);
    ETrainMovementMessageType msgType = ETrainMovementMessageType.getTypeForCode(Integer.parseInt(message.getHeader().getMsgType()));
View Full Code Here

TOP

Related Classes of org.onebusaway.uk.network_rail.cif.ETrainClass

Copyright © 2018 www.massapicom. 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.