mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetMgrImpl.java
private synchronized boolean tryAddAssetModel(final AssetModel asset)
    {
        final int systemId = asset.getControllerId();
        final UUID uuid = asset.getUuid();
        final AssetModel model = getAssetModelByUuid(uuid, systemId);
        if (model == null && m_Assets.containsKey(systemId))
        {
            //add to respective system ID
            final Set<AssetModel> contModels = m_Assets.get(systemId);
            contModels.add(asset);
            Logging.log(LogService.LOG_DEBUG, "Asset model added with UUID: [%s] and of type: [%s]", asset.getUuid(), 
                    asset.getType());
            return true;
        }
        return false;
    }
/**
     * Try to add asset model.
     * @param asset
     *    the asset model to update/add
     * @return
     *    true if the asset was added, otherwise false
     */
Try to add asset model.
@param asset
the asset model to update/add
@return
true if the asset was added, otherwise false
Try to add asset model . @param asset the asset model to update / add @return true if the asset was added otherwise false
private synchronized boolean tryAddAssetModel(final AssetModel asset)
    {
        final int systemId = asset.getControllerId();
        final UUID uuid = asset.getUuid();
        final AssetModel model = getAssetModelByUuid(uuid, systemId);
        if (model == null && m_Assets.containsKey(systemId))
        {
            final Set<AssetModel> contModels = m_Assets.get(systemId);
            contModels.add(asset);
            Logging.log(LogService.LOG_DEBUG, "Asset model added with UUID: [%s] and of type: [%s]", asset.getUuid(), 
                    asset.getType());
            return true;
        }
        return false;
    }
private synchronized boolean tryAddAssetModel ( final AssetModel asset ) { final int systemId = asset . getControllerId ( ) ; final UUID uuid = asset . getUuid ( ) ; final AssetModel model = getAssetModelByUuid ( uuid , systemId ) ; if ( model == null && m_Assets . containsKey ( systemId ) ) { final Set < AssetModel > contModels = m_Assets . get ( systemId ) ; contModels . add ( asset ) ; Logging . log ( LogService . LOG_DEBUG , "Asset model added with UUID: [%s] and of type: [%s]" , asset . getUuid ( ) , asset . getType ( ) ) ; return true ; } return false ; }
Try to add asset model.
Try to add asset model .
//add to respective system ID