Changeset 301

Show
Ignore:
Timestamp:
06/30/09 00:48:14 (15 years ago)
Author:
trnewman
Message:

Demo fixups

Location:
vtcross/trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cognitive_engines/CognitiveEngine.cpp

    r285 r301  
    680680    if(rc == 0){ 
    681681        /* Adapt the returned parameters to meet the objective */ 
    682         WARNING("Cognitive Engine:: Found\n"); 
     682        LOG("Cognitive Engine:: Found\n"); 
    683683 
    684684        /* Should do a random adaptation.. */ 
     
    691691        } 
    692692    } else if(rc == 31337) { 
    693         WARNING("Cognitive Engine:: Not Found.\n"); 
     693        LOG("Cognitive Engine:: Not Found.\n"); 
    694694        /* No rows in the CBR, pick default parameters */ 
    695695        /* Currently this is hard coded and implementation specific! */ 
     
    698698         
    699699    } else { 
    700         WARNING("Cognitive Engine:: Search return an invalid value.\n"); 
     700        LOG("Cognitive Engine:: Search return an invalid value.\n"); 
    701701    } 
    702702 
  • vtcross/trunk/src/cognitive_engines/cbr.c

    r230 r301  
    202202    unsigned int i; 
    203203    char str_buffer[64]; 
    204     //printf("number of ops %d:\n", _n); 
     204    printf("number of ops %d:\n", _n); 
    205205    for (i=0; i<_n; i++) { 
    206206        // ensure valid ops value 
     
    212212        strcat(_cbr->command, _names[i]); 
    213213        strcat(_cbr->command, ops_str[_ops[i]]); 
     214    printf("search command: %s\n", _cbr->command); 
    214215        sprintf(str_buffer, "%E", _vals[i]); 
    215216        strcat(_cbr->command, str_buffer); 
  • vtcross/trunk/src/libvtcross/swig/libcross_demo.py

    r299 r301  
    1818 
    1919p = GetOptimalParameters(o,2,currentParameters,2); 
     20 
     21for i in range(2): 
     22    print p[i].name, p[i].value 
     23 
     24