public void removeAllBusHubs ( ) { for ( final BusHub busHub : this . validBusHubs ) { busHub . setContainer ( null ) ; busHub . setEventFirable ( true ) ; } for ( final BusHub busHub : this . invalidBusHubs ) { busHub . setContainer ( null ) ; busHub . setEventFirable ( true ) ; } this . validBusHubs . clear ( ) ; this . invalidBusHubs . clear ( ) ; firePrimitiveChanged ( new BusChangeEvent ( this , BusChangeEventType . ALL_HUBS_REMOVED , null , - 1 , null , null , null ) ) ; revalidate ( ) ; }
Remove all the bus hubs from the current network .