Changeset 363


Ignore:
Timestamp:
04/14/2010 05:23:10 PM (10 years ago)
Author:
pedro.cuba
Message:

Added configuration XML files for testing migration.
Updated Architecture to comply with new IArchitecture.

Location:
libs/cmion/cmionLauncher
Files:
6 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • libs/cmion/cmionLauncher/ArchitectureConfigurationMigrationSend.xml

    r357 r363  
    88 
    99<ArchitectureConfiguration  
    10  CompetencyManagerRulesFile="CompManagerRulesTest.xml"  
    11  CompetencyLibraryConfigurationFile="CompetencyLibraryTest.xml" > 
     10 CompetencyManagerRulesFile="CompManagerRulesMigrationTest.xml"  
     11 CompetencyLibraryConfigurationFile="CompetencyLibraryMigrationTestSend.xml" > 
    1212 
    1313 <!-- following a number of architecture components to load can be specified. by  
     
    2121      library xml file --> 
    2222  
    23  <ArchitectureComponent ClassName="cmion.level3.fatima.FAtiMAConnector" ConstructorParameters="" /> 
    2423 <ArchitectureComponent ClassName="cmion.addOns.monitors.CmionEventMonitor" /> 
    25  <ArchitectureComponent ClassName="cmion.addOns.samgar.SamgarConnector" /> 
     24 <ArchitectureComponent ClassName="cmion.level3.supersimplemind.SuperSimpleMigratingMindConnector" /> 
    2625 
    2726</ArchitectureConfiguration> 
  • libs/cmion/cmionLauncher/src/cmion/architecture/Architecture.java

    r250 r363  
    4747import cmion.level2.CompetencyExecution; 
    4848import cmion.level2.CompetencyLibrary; 
     49import cmion.level2.migration.MigrationUtils; 
    4950import cmion.level3.CompetencyManager; 
    5051import cmion.storage.BlackBoard; 
     
    128129                        if (element instanceof CmionComponent) 
    129130                                ((CmionComponent)element).registerHandlers(); 
     131                 
     132                // registering all migration related handlers for all migrating components 
     133                MigrationUtils.registerAllComponents(Simulation.instance); 
    130134                 
    131135                System.out.println("CMION initialised"); 
     
    309313                try 
    310314                { 
     315                        Architecture architecture; 
     316                         
    311317                        // initialisation 
    312                         Architecture architecture = new Architecture("ArchitectureConfiguration.xml"); 
     318                        if(args.length > 0){ 
     319                                architecture = new Architecture(args[0]); 
     320                        } else { 
     321                                architecture = new Architecture("ArchitectureConfiguration.xml"); 
     322                        } 
    313323 
    314324                        // run 
     
    329339        @Override 
    330340        public void onDestroy() {} 
     341         
     342        @Override 
     343        public Object getSystemContext() { 
     344                return null; 
     345        }        
    331346 
    332347} 
Note: See TracChangeset for help on using the changeset viewer.