Replies the list of the bus halts of the bus itinerary.

@return a list of bus halts
425266
@Pure
	public Iterable<BusItineraryHalt> busHalts() {
		final MultiCollection<BusItineraryHalt> halts = new MultiCollection<>();
		halts.addCollection(this.validHalts);
		halts.addCollection(this.invalidHalts);
		return Collections.unmodifiableCollection(halts);
	}
123580
public Set<Failure> getCurrentFailures() {
        Set<Failure> failures = new HashSet<Failure>();
        failures.addAll(this.getFullCurrentFailures().keySet());
        for (Scenario s : this.getScenarios()) {
            failures.addAll(s.getCurrentFailures());
        }
        return failures;
    }
689424
public java.util.List<String> getTerminationPolicies() {
        if (terminationPolicies == null) {
            terminationPolicies = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return terminationPolicies;
    }
637542
public java.util.List<EventDestination> getEventDestinations() {
        if (eventDestinations == null) {
            eventDestinations = new com.amazonaws.internal.SdkInternalList<EventDestination>();
        }
        return eventDestinations;
    }
859479
public java.util.List<String> getTransitGatewayRouteTableIds() {
        if (transitGatewayRouteTableIds == null) {
            transitGatewayRouteTableIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return transitGatewayRouteTableIds;
    }
448954
public List<Fail<Decision<T>>> getAllFail()
   {
      List<Fail<Decision<T>>> list = new ArrayList<Fail<Decision<T>>>();
      List<Node> nodeList = childNode.get("fail");
      for(Node node: nodeList)
      {
         Fail<Decision<T>>  type = new FailImpl<Decision<T>>(this, "fail", childNode, node);
         list.add(type);
      }
      return list;
   }
851903
public List<MessageDestinationType<WebFragmentDescriptor>> getAllMessageDestination()
   {
      List<MessageDestinationType<WebFragmentDescriptor>> list = new ArrayList<MessageDestinationType<WebFragmentDescriptor>>();
      List<Node> nodeList = model.get("message-destination");
      for(Node node: nodeList)
      {
         MessageDestinationType<WebFragmentDescriptor>  type = new MessageDestinationTypeImpl<WebFragmentDescriptor>(this, "message-destination", model, node);
         list.add(type);
      }
      return list;
   }
1016184
public List<T> getAll() {
		List<T> result = new ArrayList<T>();
		if (nodes != null)
			for(Node element : nodes) 
				result.add(getCachedOrNewRepresentation(element));
		return result;
	}
	
	public int size() {
		return nodes.size();
	}
	
	public T get(int index) {
		return getCachedOrNewRepresentation(nodes.get(index));
	}
		
	public Iterator<T> iterator() {
		return getAll().iterator();
	}
}
246522
public java.util.List<Reservation> getReservations() {
        if (reservations == null) {
            reservations = new com.amazonaws.internal.SdkInternalList<Reservation>();
        }
        return reservations;
    }
1162303
public java.util.List<String> getScheduleDefinitions() {
        if (scheduleDefinitions == null) {
            scheduleDefinitions = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return scheduleDefinitions;
    }
1140716
public static List<DayOfTheWeek> getAll() {
        final List<DayOfTheWeek> days = new ArrayList<>();
        for (final DayOfTheWeek day : ALL) {
            days.add(day);
        }
        return Collections.unmodifiableList(days);
    }
898000
public java.util.List<EbsBlockDevice> getEbsBlockDevices() {
        if (ebsBlockDevices == null) {
            ebsBlockDevices = new com.amazonaws.internal.SdkInternalList<EbsBlockDevice>();
        }
        return ebsBlockDevices;
    }
228653
@Pure
	public Iterator<BusHub> busHubIterator() {
		final BusStop busStop = getBusStop();
		if (busStop != null) {
			return busStop.busHubIterator();
		}
		return Collections.emptyIterator();
	}
893603
def stops(self):
    """"""
    serves = set()
    for trip in self.trips():
      for stop_time in trip.stop_times():
        serves |= stop_time.stops()
    return serves
812307
public void removeAllRoadSegments() {
		for (final BusItineraryHalt halt : this.invalidHalts) {
			halt.setRoadSegmentIndex(-1);
			halt.setPositionOnSegment(Float.NaN);
			halt.checkPrimitiveValidity();
		}

		final BusItineraryHalt[] halts = new BusItineraryHalt[this.validHalts.size()];
		this.validHalts.toArray(halts);
		for (final BusItineraryHalt halt : halts) {
			halt.setRoadSegmentIndex(-1);
			halt.setPositionOnSegment(Float.NaN);
			halt.checkPrimitiveValidity();
		}

		if (this.roadNetwork != null) {
			final RoadNetwork network = this.roadNetwork.get();
			if (network != null) {
				network.removeRoadNetworkListener(this);
			}
			this.roadNetwork = null;
		}
		this.roadSegments.clear();
		fireShapeChanged(new BusChangeEvent(this,
				BusChangeEventType.ALL_SEGMENTS_REMOVED,
				null,
				-1,
				"shape", //$NON-NLS-1$
				null,
				null));
		checkPrimitiveValidity();
	}
244483
@Pure
	public List<BusItineraryHalt> getBusHaltsOnSegment(RoadSegment segment) {
		if (this.roadSegments.isEmpty() || this.validHalts.isEmpty()) {
			return Collections.emptyList();
		}

		int cIdxSegment;
		int lIdxSegment = -1;
		int sIdxSegment = -1;
		RoadSegment cSegment;

		final List<BusItineraryHalt> halts = new ArrayList<>();

		for (final BusItineraryHalt bushalt : this.validHalts) {
			cIdxSegment = bushalt.getRoadSegmentIndex();
			if (cIdxSegment >= 0 && cIdxSegment < this.roadSegments.getRoadSegmentCount()
					&& cIdxSegment != lIdxSegment) {
				cSegment = this.roadSegments.getRoadSegmentAt(cIdxSegment);
				lIdxSegment = cIdxSegment;
				if (segment == cSegment) {
					sIdxSegment = cIdxSegment;
				} else if (sIdxSegment != -1) {
					// halt loop now because I'm sure there has no more bus halt
					break;
				}
			}
			if (sIdxSegment != -1) {
				halts.add(bushalt);
			}
		}

		return halts;
	}
778500
public java.util.List<FailedRemediationBatch> getFailedBatches() {
        if (failedBatches == null) {
            failedBatches = new com.amazonaws.internal.SdkInternalList<FailedRemediationBatch>();
        }
        return failedBatches;
    }