mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetTypesMgrImpl.java
private synchronized void tryAddAssetFactoryModel(final AssetFactoryModel assetFact, final int systemId)
    {
        final String productType = assetFact.getFullyQualifiedAssetType();
        final AssetFactoryModel model = findAssetFactoryModel(systemId, productType);
        if (model == null && m_AssetFactories.containsKey(systemId))
        {
            //add to respective system id
            final Set<AssetFactoryModel> contModels = m_AssetFactories.get(systemId);
            contModels.add(assetFact);
        }
        else if (model == null)
        {
            final Set<AssetFactoryModel> modelSet = new HashSet<AssetFactoryModel>();
            modelSet.add(assetFact);
            m_AssetFactories.put(systemId, modelSet);
        }
        sendCapabilitiesRequests(productType, systemId);
    }
/**
     * Try to add an asset factory model.
     * @param assetFact
     *    the asset factory model to update/add
     *@param systemId
     *    the system id to which this factory belongs
     */
Try to add an asset factory model.
@param assetFact
the asset factory model to update/add
@param systemId
the system id to which this factory belongs
Try to add an asset factory model . @param assetFact the asset factory model to update / add @param systemId the system id to which this factory belongs
private synchronized void tryAddAssetFactoryModel(final AssetFactoryModel assetFact, final int systemId)
    {
        final String productType = assetFact.getFullyQualifiedAssetType();
        final AssetFactoryModel model = findAssetFactoryModel(systemId, productType);
        if (model == null && m_AssetFactories.containsKey(systemId))
        {
            final Set<AssetFactoryModel> contModels = m_AssetFactories.get(systemId);
            contModels.add(assetFact);
        }
        else if (model == null)
        {
            final Set<AssetFactoryModel> modelSet = new HashSet<AssetFactoryModel>();
            modelSet.add(assetFact);
            m_AssetFactories.put(systemId, modelSet);
        }
        sendCapabilitiesRequests(productType, systemId);
    }
private synchronized void tryAddAssetFactoryModel ( final AssetFactoryModel assetFact , final int systemId ) { final String productType = assetFact . getFullyQualifiedAssetType ( ) ; final AssetFactoryModel model = findAssetFactoryModel ( systemId , productType ) ; if ( model == null && m_AssetFactories . containsKey ( systemId ) ) { final Set < AssetFactoryModel > contModels = m_AssetFactories . get ( systemId ) ; contModels . add ( assetFact ) ; } else if ( model == null ) { final Set < AssetFactoryModel > modelSet = new HashSet < AssetFactoryModel > ( ) ; modelSet . add ( assetFact ) ; m_AssetFactories . put ( systemId , modelSet ) ; } sendCapabilitiesRequests ( productType , systemId ) ; }
Try to add an asset factory model.
Try to add an asset factory model .
//add to respective system id