Hi,
you'll need to create anew class derived from WifiMacQueue, subclass the relevant methods (eventually making them virtual in the base class) and modify all the code where the class is used to use 8also) the derived class.
... sorely put: not easy, especially because you posted an EDF example clearly unrelated to ns-3.
T.