mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private void addToMapIfNew(final int systemId, final CommType type)
    {
        switch (type)
        {
            case TransportLayer:
                if (!m_TransportLayers.containsKey(systemId))
                {
                    m_TransportLayers.put(systemId, new ArrayList<CommsLayerBaseModel>());                    
                }
                break;
            case Linklayer:
                if (!m_LinkLayers.containsKey(systemId))
                {
                    m_LinkLayers.put(systemId, new ArrayList<CommsLayerLinkModelImpl>());                    
                }
                break;
            case PhysicalLink:
                if (!m_PhysicalLayers.containsKey(systemId))
                {
                    m_PhysicalLayers.put(systemId, new ArrayList<CommsLayerBaseModel>());
                }
                break;
            default:
                break;               
        }
    }
/**
     * Helper method used to check if a map has been initialized with a key-value pair upon getting a remote 
     * request to add a layer.  If the map does not contain the given systemId, a new key-value pair is added
     * to the map using the systemId.
     * @param systemId
     *      ID of the controller.  Also acts as the key in the hash map of the different layers.
     * @param type
     *      type of layer attempting to be added.
     */
Helper method used to check if a map has been initialized with a key-value pair upon getting a remote
request to add a layer.  If the map does not contain the given systemId, a new key-value pair is added
to the map using the systemId.
@param systemId
ID of the controller.  Also acts as the key in the hash map of the different layers.
@param type
type of layer attempting to be added.
Helper method used to check if a map has been initialized with a key - value pair upon getting a remote request to add a layer . If the map does not contain the given systemId a new key - value pair is added to the map using the systemId . @param systemId ID of the controller . Also acts as the key in the hash map of the different layers . @param type type of layer attempting to be added .
private void addToMapIfNew(final int systemId, final CommType type)
    {
        switch (type)
        {
            case TransportLayer:
                if (!m_TransportLayers.containsKey(systemId))
                {
                    m_TransportLayers.put(systemId, new ArrayList<CommsLayerBaseModel>());                    
                }
                break;
            case Linklayer:
                if (!m_LinkLayers.containsKey(systemId))
                {
                    m_LinkLayers.put(systemId, new ArrayList<CommsLayerLinkModelImpl>());                    
                }
                break;
            case PhysicalLink:
                if (!m_PhysicalLayers.containsKey(systemId))
                {
                    m_PhysicalLayers.put(systemId, new ArrayList<CommsLayerBaseModel>());
                }
                break;
            default:
                break;               
        }
    }
private void addToMapIfNew ( final int systemId , final CommType type ) { switch ( type ) { case TransportLayer : if ( ! m_TransportLayers . containsKey ( systemId ) ) { m_TransportLayers . put ( systemId , new ArrayList < CommsLayerBaseModel > ( ) ) ; } break ; case Linklayer : if ( ! m_LinkLayers . containsKey ( systemId ) ) { m_LinkLayers . put ( systemId , new ArrayList < CommsLayerLinkModelImpl > ( ) ) ; } break ; case PhysicalLink : if ( ! m_PhysicalLayers . containsKey ( systemId ) ) { m_PhysicalLayers . put ( systemId , new ArrayList < CommsLayerBaseModel > ( ) ) ; } break ; default : break ; } }
Helper method used to check if a map has been initialized with a key-value pair upon getting a remote
 request to add a layer.
Helper method used to check if a map has been initialized with a key - value pair upon getting a remote request to add a layer .