boolean addBusStop ( BusStop busStop , boolean fireEvents ) { if ( busStop == null ) { return false ; } if ( this . busStops . indexOf ( busStop ) != - 1 ) { return false ; } if ( ! this . busStops . add ( busStop ) ) { return false ; } busStop . addBusHub ( this ) ; resetBoundingBox ( ) ; if ( fireEvents ) { firePrimitiveChanged ( new BusChangeEvent ( this , BusChangeEventType . STOP_ADDED , busStop , this . busStops . size ( ) - 1 , null , null , null ) ) ; checkPrimitiveValidity ( ) ; } return true ; }
Add a bus stop inside the bus hub .