Пример #1
0
  public void start() {
    if (this.isEnabled) {
      Log.v(Config.TAG, "has started");
      return;
    }

    if (this.tripplan != null) {
      // Here be the execution of the stationary region monitor
      List<Place> places = this.tripplan.getPlaces();
      for (Place place : places) {
        if (place.isSubscribed()) {
          registerPlace(place);
        }
      }
    }
    this.isEnabled = true;
  }