コード例 #1
0
  /** ******************** Member Functions ************************* */
  public static ArrivalDepartureGenerator getInstance() {
    // If the PredictionGenerator hasn't been created yet then do so now
    if (singleton == null) {
      singleton =
          ClassInstantiator.instantiate(className.getValue(), ArrivalDepartureGenerator.class);
    }

    return singleton;
  }
コード例 #2
0
 /** Returns URL to use */
 @Override
 protected String getUrl() {
   return mbtaCommuterRailFeedUrl.getValue();
 }