Confusing use of ShouldSchedule flag
jakthra opened this issue · comments
The downlink and uplink scheduler logic requires the .Mac.ShouldSchedule
flag. This is confusing when calling the Monster.scheduleUL()
function as this does nothing unless the ShouldSchedule flag is set.
I propose the function scheduleUL
/scheduleDL
is to be independent from the flag, and thus not called if the flag is set to 0.
As per the latest commit the check is now moved outside schedule functions in the EvolvedNodeB class and is moved to the monster.m simulation instead. The check is now done with a for loop.
Changed the solution to include a warning, thus preventing calling the function without setting the proper flag outside the simulation.