Remove a bus stop from this hub.

@param busStop is the bus stop to remove.
@return <code>true</code> if the bus stop was successfully removed, otherwise <code>false</code>
492812
public boolean removeBusStop(BusStop busStop) {
		final int index = this.busStops.indexOf(busStop);
		if (index >= 0) {
			this.busStops.remove(index);
			busStop.removeBusHub(this);
			resetBoundingBox();
			firePrimitiveChanged(new BusChangeEvent(this,
					BusChangeEventType.STOP_REMOVED,
					busStop,
					index,
					null,
					null,
					null));
			checkPrimitiveValidity();
			return true;
		}
		return false;
	}
1210840
@Override
    public boolean isSendAllowed()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "isSendAllowed");

        boolean isSendAllowed = true;

        // We check first whether send is disallowed at the bus definition level. A
        // setting at the bus level overrides a setting on the Alias Destination
        // Definition.
        DestinationHandler target = getTarget();
        if (_sendAllowedOnTargetForeignBus != null)
            isSendAllowed = _sendAllowedOnTargetForeignBus.booleanValue();

        ExtendedBoolean aliasIsSendAllowed = _definition.isSendAllowed();

        // If we're allowed to send at the bus level, or there is no Foreign
        // Bus target in the chain, then move to the next level of checking.
        if (isSendAllowed)
        {
            // A setting of NONE signals use target value.
            if (aliasIsSendAllowed.equals(ExtendedBoolean.NONE))
            {
                isSendAllowed = target.isSendAllowed();
            }
            else if (aliasIsSendAllowed.equals(ExtendedBoolean.FALSE))
            {
                isSendAllowed = false;
            }
            else
            {
                isSendAllowed = true;
            }
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "isSendAllowed", Boolean.valueOf(isSendAllowed));

        return isSendAllowed;
    }
746674
public boolean performCancel()
	{
		try
		{
			if (getBreakpoint().getMarker().getAttribute(ATTR_DELETE_ON_CANCEL) != null)
			{
				// if this breakpoint is being created, delete on cancel
				getBreakpoint().delete();
			}
		} catch (CoreException e)
		{
			// JDIDebugUIPlugin.statusDialog(PropertyPageMessages.JavaBreakpointPage_9, e.getStatus());
		}
		return super.performCancel();
	}
152328
public void busReloaded(JsMEConfig newBus, boolean busChanged,
                            boolean destChg, boolean medChg) {

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "busReloaded");
    }
195353
@Pure
	public final BusStop getNearestBusStop(GeoLocationPoint point) {
		return getNearestBusStop(point.getX(), point.getY());
	}
73048
public boolean cleanupDestination() throws SIRollbackException, SIConnectionLostException, SIIncorrectCallException, SIResourceException 
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "cleanupDestination");
  
    boolean cleanedUp;

    //Clean up any remote localisations, reallocate messages that are marked as guesses
    cleanedUp = super.cleanupLocalisations();
    //Ensure any cleanup does not occur at the same time the link is being used.
    synchronized(this)
    {        
      if (isToBeDeleted())
      {
        // Clean up any PubSub neighbours that were making use of 
        // the link
        
        messageProcessor.getProxyHandler().cleanupLinkNeighbour(_busName);
        
        // A link can have inbound target stream state without a localisation for
        // the messages to be put onto, as it routes the messages directly onto
        // other destinations in the bus.  Until all the inbound streams are flushed,
        // the link cannot be deleted.
        PtoPInputHandler ptoPInputHandler = (PtoPInputHandler) getInputHandler(ProtocolType.UNICASTINPUT, null, null);
        TargetStreamManager targetStreamManager = ptoPInputHandler.getTargetStreamManager();
        
        if (targetStreamManager.isEmpty())
        {
          cleanedUp = super.cleanupDestination();
        }
      }
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "cleanupDestination", new Boolean(cleanedUp));

    return cleanedUp;
  }
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;
	}
555055
void setBus(String busName)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus", busName);
    this.busName = busName;
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus");
  }
286246
public void busReloaded(final LWMConfig newBus, final boolean busChanged,
            final boolean destinationsChanged, final boolean mediationsChanged) {

        final String methodName = "busReloaded";
        if (TRACE.isEntryEnabled()) {
            SibTr.entry(this, TRACE, methodName, new Object[] { newBus,
                    Boolean.valueOf(busChanged),
                    Boolean.valueOf(destinationsChanged),
                    Boolean.valueOf(mediationsChanged) });
        }

        RELOADING_MESSAGING_ENGINES.add(_messagingEngine.getUuid().toString());

        if (TRACE.isEntryEnabled()) {
            SibTr.exit(this, TRACE, methodName);
        }

    }
641028
@Pure
	public double distance(BusStop stop) {
		if (isValidPrimitive() && stop.isValidPrimitive()) {
			final GeoLocationPoint p = getGeoPosition();
			final GeoLocationPoint p2 = stop.getGeoPosition();
			return Point2D.getDistancePointPoint(p.getX(), p.getY(), p2.getX(), p2.getY());
		}
		return Double.NaN;
	}
1171212
protected synchronized boolean clearPPI (boolean cancel)
    {
        if (_prefPortInterval != null) {
            if (cancel) {
                _prefPortInterval.cancel();
                _prefPortInterval.failed();
            }
            _prefPortInterval = null;
            return true;
        }
        return false;
    }
82397
public boolean removeBusHalt(String name) {
		Iterator<BusItineraryHalt> iterator = this.validHalts.iterator();
		BusItineraryHalt bushalt;
		int i = 0;
		while (iterator.hasNext()) {
			bushalt = iterator.next();
			if (name.equals(bushalt.getName())) {
				return removeBusHalt(i);
			}
			++i;
		}

		iterator = this.invalidHalts.iterator();
		i = 0;
		while (iterator.hasNext()) {
			bushalt = iterator.next();
			if (name.equals(bushalt.getName())) {
				return removeBusHalt(i);
			}
			++i;
		}

		return false;
	}
896559
protected boolean wasStopIssuedOnJob() {
        StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse
        synchronized (stopLock) {
            if (runtimeWorkUnitExecution.getBatchStatus().equals(BatchStatus.STOPPING)) {
                return true;
            } else {
                return false;
            }
        }
    }
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)
186013
public boolean remove(VMTransitionBuilder b) {
        Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState());
        for (VMState src : b.getSourceStates()) {
            m.remove(src);
        }
        return true;
    }
880391
void setBus(BusGroup busGroup)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setBus");

    iBusGroup = busGroup;

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setBus");
  }
960324
public static boolean endsWithStop(String str) {
	if (str.endsWith(".") || str.endsWith("?") || str.endsWith("!")) {
	    return true;
	}
	
	return false;
    }