ns-allinone-2.35/ns-2.35/mac/smac.cc
void SMAC::update_schedTab_neighbList()
{
        //update schedTab and neighbList if flag is set
        //we should update the schedTab[].numNodes before we call checkMySched()
        //to ensure the next available schedule is correct
        check_schedFlag();
        if (updateNeighbList_ == 1) {
                update_neighbList();
                updateNeighbList_ = 0;
                schedTab_[0].chkSched = 0;  //we already did checkMySched() in update_neighbList()
        } else if (schedTab_[0].chkSched == 1) {
                checkMySched();
                schedTab_[0].chkSched = 0;
        }
}
// update_schedTab_neighbList() is executed whenever the transmission is done
update_schedTab_neighbList() is executed whenever the transmission is done
update_schedTab_neighbList () is executed whenever the transmission is done
void SMAC::update_schedTab_neighbList()
{
        check_schedFlag();
        if (updateNeighbList_ == 1) {
                update_neighbList();
                updateNeighbList_ = 0;
                schedTab_[0].chkSched = 0;  
        } else if (schedTab_[0].chkSched == 1) {
                checkMySched();
                schedTab_[0].chkSched = 0;
        }
}
void SMAC :: update_schedTab_neighbList ( ) { check_schedFlag ( ) ; if ( updateNeighbList_ == 1 ) { update_neighbList ( ) ; updateNeighbList_ = 0 ; schedTab_ [ 0 ] . chkSched = 0 ; } else if ( schedTab_ [ 0 ] . chkSched == 1 ) { checkMySched ( ) ; schedTab_ [ 0 ] . chkSched = 0 ; } }
update_schedTab_neighbList() is executed whenever the transmission is done
update_schedTab_neighbList () is executed whenever the transmission is done
//update schedTab and neighbList if flag is set //we should update the schedTab[].numNodes before we call checkMySched() //to ensure the next available schedule is correct //we already did checkMySched() in update_neighbList()