setBusStop(string, string, integer, integer, integer) -> None

        Adds or modifies a bus stop with the given parameters. The duration and the until attribute are
        in milliseconds.
547593
def setBusStop(self, vehID, stopID, duration=2**31 - 1, until=-1, flags=tc.STOP_DEFAULT):
        
        self.setStop(vehID, stopID, duration=duration,
                     until=until, flags=flags | tc.STOP_BUS_STOP)
829188
public Ticket add(long delay, TimerHandler handler, Object... args)
    {
        if (handler == null) {
            return null;
        }
        Utils.checkArgument(delay > 0, "Delay of a ticket has to be strictly greater than 0");
        final Ticket ticket = new Ticket(this, now(), delay, handler, args);
        insert(ticket);
        return ticket;
    }
185414
def setParkingAreaStop(self, vehID, stopID, duration=2**31 - 1, until=-1, flags=tc.STOP_PARKING):
        
        self.setStop(vehID, stopID, duration=duration, until=until,
                     flags=flags | tc.STOP_PARKING_AREA)
743066
boolean addBusHalt(BusItineraryHalt halt, int insertToIndex) {
		//set index for right ordering when add to invalid list !
		if (insertToIndex < 0) {
			halt.setInvalidListIndex(this.insertionIndex);
		} else {
			halt.setInvalidListIndex(insertToIndex);
		}

		if (halt.isValidPrimitive()) {
			ListUtil.addIfAbsent(this.validHalts, VALID_HALT_COMPARATOR, halt);
		} else {
			ListUtil.addIfAbsent(this.invalidHalts, INVALID_HALT_COMPARATOR, halt);
		}
		halt.setEventFirable(isEventFirable());
		++this.insertionIndex;
		if (isEventFirable()) {
			fireShapeChanged(new BusChangeEvent(this,
					BusChangeEventType.ITINERARY_HALT_ADDED,
					halt,
					halt.indexInParent(),
					"shape", null, null)); //$NON-NLS-1$
			checkPrimitiveValidity();
		}
		return true;
	}
852786
def stop_times(self):
    """"""
    stop_times = set()
    for trip in self.trips():
      stop_times |= trip.stop_times()
    return stop_times
1251599
@Pure
	public static boolean isBusStopNoHaltBindingNamesDrawable() {
		final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class);
		if (prefs != null) {
			return prefs.getBoolean("DRAW_NO_BUS_HALT_BIND_NAMES", DEFAULT_NO_BUS_HALT_BIND_NAMES); //$NON-NLS-1$
		}
		return DEFAULT_NO_BUS_HALT_BIND_NAMES;
	}
379716
private void setOriginatingBus(String busName)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setOriginatingBus", busName);
        _busName = busName;
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setOriginatingBus");
    }
13149
function startTimer(req, res, next) {
  req.mainRoutePath = req.route.path;
  req.stopTimer = eyes.start('routes.' + req.mainRoutePath + '.' + req.method);
  next();
}
255203
@Override
    public void busReloaded(Object newBus, boolean busChanged,
                            boolean destChg, boolean medChg)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(this, tc, "busReloaded");
            SibTr.exit(this, tc, "busReloaded");
        }
    }
457039
def stop(self, *args, **kwargs):
        
        if self.status in (Status.stopping, Status.stopped):
            logger.debug("{} is already {}".format(self, self.status.name))
        else:
            self.status = Status.stopping
            self.onStopping(*args, **kwargs)
            self.status = Status.stopped
961460
public final void setBus(String value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setBus", value);
        getHdr2().setField(JsHdr2Access.BUS, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setBus");
    }
320784
def queue_put_stoppable(self, q, obj):
        
        while not self.stopped():
            try:
                q.put(obj, timeout=5)
                break
            except queue.Full:
                pass
667945
public void onStop( int mtLv ) {
		//
		mtLv ++;
		//
		String oinfo = "";
		//
		String methodName = moduleCode + "." + "onStop";
		//
		oinfo = "";
		oinfo += BTools.getMtLvESS( mtLv );
		oinfo += methodName + ": ";
		oinfo += BTools.getSLcDtTm();
		info( oinfo );
		//
		closeFile();
		//
	}
1003682
def __set_lost_stop_status(self, hgvs_string):
        """"""
        lost_stop_pattern = '^\*\d+[A-Z?]+\*?$'
        if re.search(lost_stop_pattern, hgvs_string):
            self.is_lost_stop = True
            self.is_non_silent = True
        else:
            self.is_lost_stop = False
195353
@Pure
	public final BusStop getNearestBusStop(GeoLocationPoint point) {
		return getNearestBusStop(point.getX(), point.getY());
	}
349064
public void init (Pathable pable, long tickstamp)
    {
        _sx = pable.getX();
        _sy = pable.getY();
        // change the duration to a real stop time
        if (_duration == -1L) {
            _stopTime = Long.MAX_VALUE;
        } else {
            _stopTime = tickstamp + _duration;
        }
        _nextMove = tickstamp;
    }
850555
public void stopMessagingEngine(String busName, String name)
                    throws Exception {

        String thisMethodName = CLASS_NAME
                                + ".stopMessagingEngine(String, String)";

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, thisMethodName, new Object[] { busName, name });
        }

        stopMessagingEngine(busName, name, JsConstants.ME_STOP_IMMEDIATE);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, thisMethodName);
        }
    }