mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/ProgramImpl.java
public void reconcileDependencies() //NOCHECKSTYLE: Cyclomatic complexity //NOPMD:Avoid REALLY long methods 
    {                                  //- needed because of the different  variable types
        for (MissionVariableMetaData data : this.getVariableMetaData())
        {
            final MissionVariableTypesEnum type = data.getType();
            final String name = data.getName();            
            final Object variableValue = m_ExecParams.get(name);
            if (variableValue.getClass() != String.class)
            {
                // dependencies will be stored as the actual object once satisfied, not a string anymore so the 
                // dependency is satisfied
                continue;
            }
            final String variableStringVal = (String)variableValue;
            switch (type)
            {
                //for each factory or program type if the execution parameter values are not of the correct type then
                //they need to be looked up still.
                case ASSET:
                {
                    final boolean assetSatisfied = assetDep(data);
                    if (!assetSatisfied)
                    {
                        //if the dep wasn't satisfied no need to check others
                        Logging.log(LogService.LOG_DEBUG, "Asset dependency [%s] not available for program [%s]",
                                variableStringVal, getProgramName());
                        return;
                    }
                    break;
                }
                case PHYSICAL_LINK:
                {
                    final boolean physSatisfied = physicalDep(data);
                    if (!physSatisfied)
                    {
                        //if the dep wasn't satisfied no need to check others
                        Logging.log(LogService.LOG_DEBUG, 
                                "Physical link dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return;
                    }
                    break;                    
                }
                case LINK_LAYER:
                {
                    final boolean linkSatisfied = linkLayerDep(data);
                    if (!linkSatisfied)
                    {
                        //if the dep wasn't satisfied no need to check others
                        Logging.log(LogService.LOG_DEBUG, 
                                "Link layer dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return; 
                    }
                    break;
                }
                case TRANSPORT_LAYER:
                {
                    final boolean transSatisfied = transportDep(data);
                    if (!transSatisfied)
                    {
                        //if the dep wasn't satisfied no need to check others
                        Logging.log(LogService.LOG_DEBUG, 
                                "Transport layer dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return;
                    }                    
                    break;
                }
                case PROGRAM_DEPENDENCIES:
                {
                    final boolean programSatisfied = programDep(data);
                    if (!programSatisfied)
                    {
                        //if the dep wasn't satisfied no need to check others
                        Logging.log(LogService.LOG_DEBUG, 
                                "Program [%s] depends on another program [%s], but it hasn't run yet", 
                                getProgramName(), variableStringVal);
                        return;
                    }                    
                    break;
                }                
                default: 
                {
                    break;
                }
            }            
        }
        //if this point is reached all deps were successful reconciled
        changeStatus(ProgramStatus.WAITING_UNINITIALIZED);
    }
/**
     * Translates the variable metadata into transport, linklayer, program and asset dependencies.
     */
Translates the variable metadata into transport, linklayer, program and asset dependencies.
Translates the variable metadata into transport linklayer program and asset dependencies .
public void reconcileDependencies() 
    {                                  
        for (MissionVariableMetaData data : this.getVariableMetaData())
        {
            final MissionVariableTypesEnum type = data.getType();
            final String name = data.getName();            
            final Object variableValue = m_ExecParams.get(name);
            if (variableValue.getClass() != String.class)
            {
                continue;
            }
            final String variableStringVal = (String)variableValue;
            switch (type)
            {
                case ASSET:
                {
                    final boolean assetSatisfied = assetDep(data);
                    if (!assetSatisfied)
                    {
                        Logging.log(LogService.LOG_DEBUG, "Asset dependency [%s] not available for program [%s]",
                                variableStringVal, getProgramName());
                        return;
                    }
                    break;
                }
                case PHYSICAL_LINK:
                {
                    final boolean physSatisfied = physicalDep(data);
                    if (!physSatisfied)
                    {
                        Logging.log(LogService.LOG_DEBUG, 
                                "Physical link dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return;
                    }
                    break;                    
                }
                case LINK_LAYER:
                {
                    final boolean linkSatisfied = linkLayerDep(data);
                    if (!linkSatisfied)
                    {
                        Logging.log(LogService.LOG_DEBUG, 
                                "Link layer dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return; 
                    }
                    break;
                }
                case TRANSPORT_LAYER:
                {
                    final boolean transSatisfied = transportDep(data);
                    if (!transSatisfied)
                    {
                        Logging.log(LogService.LOG_DEBUG, 
                                "Transport layer dependency [%s] not available for program [%s]", variableStringVal, 
                                getProgramName());
                        return;
                    }                    
                    break;
                }
                case PROGRAM_DEPENDENCIES:
                {
                    final boolean programSatisfied = programDep(data);
                    if (!programSatisfied)
                    {
                        Logging.log(LogService.LOG_DEBUG, 
                                "Program [%s] depends on another program [%s], but it hasn't run yet", 
                                getProgramName(), variableStringVal);
                        return;
                    }                    
                    break;
                }                
                default: 
                {
                    break;
                }
            }            
        }
        changeStatus(ProgramStatus.WAITING_UNINITIALIZED);
    }
public void reconcileDependencies ( ) { for ( MissionVariableMetaData data : this . getVariableMetaData ( ) ) { final MissionVariableTypesEnum type = data . getType ( ) ; final String name = data . getName ( ) ; final Object variableValue = m_ExecParams . get ( name ) ; if ( variableValue . getClass ( ) != String . class ) { continue ; } final String variableStringVal = ( String ) variableValue ; switch ( type ) { case ASSET : { final boolean assetSatisfied = assetDep ( data ) ; if ( ! assetSatisfied ) { Logging . log ( LogService . LOG_DEBUG , "Asset dependency [%s] not available for program [%s]" , variableStringVal , getProgramName ( ) ) ; return ; } break ; } case PHYSICAL_LINK : { final boolean physSatisfied = physicalDep ( data ) ; if ( ! physSatisfied ) { Logging . log ( LogService . LOG_DEBUG , "Physical link dependency [%s] not available for program [%s]" , variableStringVal , getProgramName ( ) ) ; return ; } break ; } case LINK_LAYER : { final boolean linkSatisfied = linkLayerDep ( data ) ; if ( ! linkSatisfied ) { Logging . log ( LogService . LOG_DEBUG , "Link layer dependency [%s] not available for program [%s]" , variableStringVal , getProgramName ( ) ) ; return ; } break ; } case TRANSPORT_LAYER : { final boolean transSatisfied = transportDep ( data ) ; if ( ! transSatisfied ) { Logging . log ( LogService . LOG_DEBUG , "Transport layer dependency [%s] not available for program [%s]" , variableStringVal , getProgramName ( ) ) ; return ; } break ; } case PROGRAM_DEPENDENCIES : { final boolean programSatisfied = programDep ( data ) ; if ( ! programSatisfied ) { Logging . log ( LogService . LOG_DEBUG , "Program [%s] depends on another program [%s], but it hasn't run yet" , getProgramName ( ) , variableStringVal ) ; return ; } break ; } default : { break ; } } } changeStatus ( ProgramStatus . WAITING_UNINITIALIZED ) ; }
Translates the variable metadata into transport, linklayer, program and asset dependencies.
Translates the variable metadata into transport linklayer program and asset dependencies .
//NOCHECKSTYLE: Cyclomatic complexity //NOPMD:Avoid REALLY long methods  //- needed because of the different  variable types // dependencies will be stored as the actual object once satisfied, not a string anymore so the  // dependency is satisfied //for each factory or program type if the execution parameter values are not of the correct type then //they need to be looked up still. //if the dep wasn't satisfied no need to check others //if the dep wasn't satisfied no need to check others //if the dep wasn't satisfied no need to check others //if the dep wasn't satisfied no need to check others //if the dep wasn't satisfied no need to check others //if this point is reached all deps were successful reconciled