mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/controller/ControllerMgrImpl.java
@Override
    public synchronized void removeController(final int controllerId)
    {
        //try to remove the controller from the list of known controllers
        final ControllerModel model = getController(controllerId);
        if (model == null)
        {
            m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_WARN, LOG_MESSAGE_DESCRIPTOR_INFO, 
                String.format("Controller 0x%08x is not known to the system!", controllerId));
            throw new IllegalArgumentException(String.format("Controller 0x%08x is already removed", controllerId));  
        }
        //remove model
        m_Controllers.remove(model);
        //remove channels from channel lookup
        final List<RemoteChannel> rChannels = m_RemoteChannelLookup.getChannels(controllerId);
        for (RemoteChannel channel : rChannels)
        {
            m_RemoteChannelLookup.removeChannel(channel);
        }
        //notify
        m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_INFO, LOG_MESSAGE_DESCRIPTOR_INFO, 
            String.format("Controller 0x%08x was removed from lookup!", controllerId));
    }
/**
     * Remove a controller from the controller manager. 
     * @param controllerId
     *     the id of the controller to remove
     */
Remove a controller from the controller manager.
@param controllerId
the id of the controller to remove
Remove a controller from the controller manager . @param controllerId the id of the controller to remove
@Override
    public synchronized void removeController(final int controllerId)
    {
        final ControllerModel model = getController(controllerId);
        if (model == null)
        {
            m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_WARN, LOG_MESSAGE_DESCRIPTOR_INFO, 
                String.format("Controller 0x%08x is not known to the system!", controllerId));
            throw new IllegalArgumentException(String.format("Controller 0x%08x is already removed", controllerId));  
        }
        m_Controllers.remove(model);
        final List<RemoteChannel> rChannels = m_RemoteChannelLookup.getChannels(controllerId);
        for (RemoteChannel channel : rChannels)
        {
            m_RemoteChannelLookup.removeChannel(channel);
        }
        m_GrowlUtil.createLocalFacesMessage(FacesMessage.SEVERITY_INFO, LOG_MESSAGE_DESCRIPTOR_INFO, 
            String.format("Controller 0x%08x was removed from lookup!", controllerId));
    }
@ Override public synchronized void removeController ( final int controllerId ) { final ControllerModel model = getController ( controllerId ) ; if ( model == null ) { m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_WARN , LOG_MESSAGE_DESCRIPTOR_INFO , String . format ( "Controller 0x%08x is not known to the system!" , controllerId ) ) ; throw new IllegalArgumentException ( String . format ( "Controller 0x%08x is already removed" , controllerId ) ) ; } m_Controllers . remove ( model ) ; final List < RemoteChannel > rChannels = m_RemoteChannelLookup . getChannels ( controllerId ) ; for ( RemoteChannel channel : rChannels ) { m_RemoteChannelLookup . removeChannel ( channel ) ; } m_GrowlUtil . createLocalFacesMessage ( FacesMessage . SEVERITY_INFO , LOG_MESSAGE_DESCRIPTOR_INFO , String . format ( "Controller 0x%08x was removed from lookup!" , controllerId ) ) ; }
Remove a controller from the controller manager.
Remove a controller from the controller manager .
//try to remove the controller from the list of known controllers //remove model //remove channels from channel lookup //notify