mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private List<? extends FactoryBaseModel> findListByType(final CommType type, final int systemId)
    {
        if (type.equals(CommType.TransportLayer))
        {
            return m_TransportLayers.get(systemId);
        }
        else if (type.equals(CommType.Linklayer))
        {
            return m_LinkLayers.get(systemId);
        }
        else if (type.equals(CommType.PhysicalLink))
        {
            return m_PhysicalLayers.get(systemId);
        } 
        throw new IllegalArgumentException(String.format("Cannot find list on Controller 0x%08x " 
                + "given CommType %s is invalid.", systemId, type.toString())); 
    }
/**
     * Helper method for returning the list of layers based on given comm type and controller ID.
     * @param type
     *      Protobuf type of comm layer
     * @param systemId
     *      ID of the controller to which the list of layers belong
     * @return
     *      list of layers corresponding to given type and controller ID
     */
Helper method for returning the list of layers based on given comm type and controller ID.
@param type
Protobuf type of comm layer
@param systemId
ID of the controller to which the list of layers belong
@return
list of layers corresponding to given type and controller ID
Helper method for returning the list of layers based on given comm type and controller ID . @param type Protobuf type of comm layer @param systemId ID of the controller to which the list of layers belong @return list of layers corresponding to given type and controller ID
private List<? extends FactoryBaseModel> findListByType(final CommType type, final int systemId)
    {
        if (type.equals(CommType.TransportLayer))
        {
            return m_TransportLayers.get(systemId);
        }
        else if (type.equals(CommType.Linklayer))
        {
            return m_LinkLayers.get(systemId);
        }
        else if (type.equals(CommType.PhysicalLink))
        {
            return m_PhysicalLayers.get(systemId);
        } 
        throw new IllegalArgumentException(String.format("Cannot find list on Controller 0x%08x " 
                + "given CommType %s is invalid.", systemId, type.toString())); 
    }
private List < ? extends FactoryBaseModel > findListByType ( final CommType type , final int systemId ) { if ( type . equals ( CommType . TransportLayer ) ) { return m_TransportLayers . get ( systemId ) ; } else if ( type . equals ( CommType . Linklayer ) ) { return m_LinkLayers . get ( systemId ) ; } else if ( type . equals ( CommType . PhysicalLink ) ) { return m_PhysicalLayers . get ( systemId ) ; } throw new IllegalArgumentException ( String . format ( "Cannot find list on Controller 0x%08x " + "given CommType %s is invalid." , systemId , type . toString ( ) ) ) ; }
Helper method for returning the list of layers based on given comm type and controller ID.
Helper method for returning the list of layers based on given comm type and controller ID .