Replies all the bus itinerary halts in the given bus line.

@param busLine the bus line.
@return the iterator on bus itinerary halts.
774285
@Pure
	public static Iterator<BusItineraryHalt> getBusHalts(BusLine busLine) {
		assert busLine != null;
		return new LineHaltIterator(busLine);
	}
63416
public Iterator<DataPoint> getDataPointIterator()
    {
        Iterator<DataPoint> iteData = new Iterator<DataPoint>() 
        {
            int cur = 0;
            int to = size();

            @Override
            public boolean hasNext()
            {
                return cur < to;
            }

            @Override
            public DataPoint next()
            {
                return getDataPoint(cur++);
            }

            @Override
            public void remove()
            {
                throw new UnsupportedOperationException("This operation is not supported for DataSet");
            }
        };
        
        return iteData;
    }
522751
@Pure
	public static Iterator<BusItineraryHalt> getBusHalts(BusNetwork busNetwork) {
		assert busNetwork != null;
		return new NetworkHaltIterator(busNetwork);
	}
980930
public boolean addBusItinerary(BusItinerary busItinerary) {
		if (busItinerary == null) {
			return false;
		}
		if (this.itineraries.indexOf(busItinerary) != -1) {
			return false;
		}
		if (!this.itineraries.add(busItinerary)) {
			return false;
		}
		final boolean isValidItinerary = busItinerary.isValidPrimitive();
		busItinerary.setEventFirable(isEventFirable());
		busItinerary.setContainer(this);
		if (isEventFirable()) {
			fireShapeChanged(new BusChangeEvent(this,
					BusChangeEventType.ITINERARY_ADDED,
					busItinerary,
					this.itineraries.size() - 1,
					"shape", //$NON-NLS-1$
					null,
					null));
			if (!isValidItinerary) {
				revalidate();
			} else {
				checkPrimitiveValidity();
			}
		}
		return true;
	}
89512
public void removeAllBusStops() {
		for (final BusStop busStop : this.busStops) {
			busStop.removeBusHub(this);
		}
		this.busStops.clear();
		resetBoundingBox();
		firePrimitiveChanged(new BusChangeEvent(this,
				BusChangeEventType.ALL_STOPS_REMOVED,
				null,
				-1,
				null,
				null,
				null));
		checkPrimitiveValidity();
	}
479928
@Pure
	public Iterable<RoadSegment> roadSegments() {
		return new Iterable<RoadSegment>() {
			@Override
			public Iterator<RoadSegment> iterator() {
				return roadSegmentsIterator();
			}
		};
	}
867588
void addBusHalt(BusItineraryHalt halt) {
		if (this.halts == null) {
			this.halts = new WeakArrayList<>();
		}
		this.halts.add(halt);
	}
1354622
@Override
	public void revalidate() {
		// Override this function to be sure that
		// the invalid and valid collections
		// has no impact of the iteration on
		// the elements in this itinerary
		final BusItineraryHalt[] tabV = new BusItineraryHalt[this.validHalts.size()];
		this.validHalts.toArray(tabV);
		final BusItineraryHalt[] tabI = new BusItineraryHalt[this.invalidHalts.size()];
		this.invalidHalts.toArray(tabI);

		// Revalidate valid halts
		for (final BusItineraryHalt halt : tabV) {
			assert halt != null;
			halt.revalidate();
		}

		// Revalidate invalid halts
		for (final BusItineraryHalt halt : tabI) {
			assert halt != null;
			halt.revalidate();
		}

		checkPrimitiveValidity();
	}
684433
@Pure
	public static String getFirstFreeBusItineraryName(BusLine busline) {
		if (busline == null) {
			return null;
		}
		int nb = busline.getBusItineraryCount();
		String name;
		do {
			++nb;
			name = Locale.getString("NAME_TEMPLATE", Integer.toString(nb)); //$NON-NLS-1$
		}
		while (busline.getBusItinerary(name) != null);
		return name;
	}
1191867
@Pure
	public static boolean isBusStopDrawable() {
		final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class);
		if (prefs != null) {
			return prefs.getBoolean("DRAW_BUS_STOPS", DEFAULT_BUS_STOP_DRAWING); //$NON-NLS-1$
		}
		return DEFAULT_BUS_STOP_DRAWING;
	}
600752
@Pure
	public Iterator<BusItineraryHalt> busHaltIterator() {
		return Iterators.concat(this.validHalts.iterator(), this.invalidHalts.iterator());
	}
1008928
public java.util.List<String> getTransitGatewayIds() {
        if (transitGatewayIds == null) {
            transitGatewayIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return transitGatewayIds;
    }
1139096
@Pure
	public boolean contains(BusItineraryHalt bushalt) {
		if (bushalt == null) {
			return false;
		}
		if (bushalt.isValidPrimitive()) {
			return ListUtil.contains(this.validHalts, VALID_HALT_COMPARATOR, bushalt);
		}
		return ListUtil.contains(this.invalidHalts, INVALID_HALT_COMPARATOR, bushalt);
	}
1317193
final BusGroup[] getAllBuses()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getAllBuses");
      SibTr.exit(tc, "getAllBuses", _buses);
    }

    return _buses;
  }
652295
@Override
	@Pure
	public BusNetwork getBusNetwork() {
		final BusItinerary itinerary = getContainer();
		if (itinerary != null) {
			return itinerary.getBusNetwork();
		}
		return null;
	}
864017
@Pure
	public BusItineraryHalt getNearestBusHalt(double x, double y) {
		double distance = Double.POSITIVE_INFINITY;
		BusItineraryHalt besthalt = null;
		double dist;

		for (final BusItineraryHalt halt : this.validHalts) {
			dist = halt.distance(x, y);
			if (dist < distance) {
				distance = dist;
				besthalt = halt;
			}
		}

		return besthalt;
	}
587245
public void removeAllBusStops() {
		for (final BusStop busStop : this.validBusStops) {
			busStop.setContainer(null);
			busStop.setEventFirable(true);
		}
		for (final BusStop busStop : this.invalidBusStops) {
			busStop.setContainer(null);
			busStop.setEventFirable(true);
		}
		this.validBusStops.clear();
		this.invalidBusStops.clear();
		fireShapeChanged(new BusChangeEvent(this,
				BusChangeEventType.ALL_STOPS_REMOVED,
				null,
				-1,
				"shape", //$NON-NLS-1$
				null,
				null));
		revalidate();
	}