src/drone.cpp
/* Build Ftable mapping every action to its affected feature/object */
Build Ftable mapping every action to its affected feature/object
Build Ftable mapping every action to its affected feature / object
void DRONE::initializeFTable(FTABLE& ftable) const{
    for(int action=E_IDENTIFY, feature = 0; feature < NumFeatures; action++, feature++){
       ftable.addEntry(action, feature);
    }
    for(int action=E_PHOTO, feature = 0; feature < NumFeatures; action++, feature++){
        ftable.addEntry(action, feature);
    }
    ftable.setACTIVATION_THRESHOLD(DRONE::ACTIVATION_THRESHOLD); 
    ftable.setNumActions(NumActions);
    ftable.setNumFeatures(NumFeatures);
}
void DRONE :: initializeFTable ( FTABLE & ftable ) const { for ( int action = E_IDENTIFY , feature = 0 ; feature < NumFeatures ; action ++ , feature ++ ) { ftable . addEntry ( action , feature ) ; } for ( int action = E_PHOTO , feature = 0 ; feature < NumFeatures ; action ++ , feature ++ ) { ftable . addEntry ( action , feature ) ; } ftable . setACTIVATION_THRESHOLD ( DRONE :: ACTIVATION_THRESHOLD ) ; ftable . setNumActions ( NumActions ) ; ftable . setNumFeatures ( NumFeatures ) ; }
Build Ftable mapping every action to its affected feature/object
Build Ftable mapping every action to its affected feature / object
//	cout << "Creating FTable for Drone" << endl; //Add all 'check room' actions /*for(int action=E_CHECK, feature = 0; feature < NumCells; action++, feature++){
        ftable.addEntry(action, feature);
    }*/ //Feature identify //Feature photo ///Problem specific activation threshold //	cout << "Done" << endl;