--- a/src/simulator/scheduler-heap.cc Thu Apr 19 22:29:09 2007 +0200
+++ b/src/simulator/scheduler-heap.cc Thu Apr 26 11:36:05 2007 -0400
@@ -33,6 +33,7 @@
*/
#include "scheduler-heap.h"
+#include "scheduler-factory.h"
#include "event-impl.h"
#include "ns3/assert.h"
@@ -51,6 +52,21 @@
namespace ns3 {
+static class SchedulerHeapFactory : public SchedulerFactory
+{
+public:
+ SchedulerHeapFactory ()
+ {
+ SchedulerFactory::Add (this, "BinaryHeap");
+ }
+private:
+ virtual Scheduler *DoCreate (void) const
+ {
+ return new SchedulerHeap ();
+ }
+} g_schedulerHeapFactory;
+
+
SchedulerHeap::SchedulerHeap ()
{
// we purposedly waste an item at the start of