uniformize the DefaultValues used by the Event Schedulers
parent
29026f00db
commit
80247a993d
|
@ -88,7 +88,7 @@ SchedulerFactory::Add (const SchedulerFactory *factory,
|
|||
StringEnumDefaultValue *
|
||||
SchedulerFactory::GetDefault (void)
|
||||
{
|
||||
static StringEnumDefaultValue value ("scheduler", "Event Scheduler algorithm");
|
||||
static StringEnumDefaultValue value ("Scheduler", "Event Scheduler algorithm");
|
||||
return &value;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ static class SchedulerListFactory : public SchedulerFactory
|
|||
public:
|
||||
SchedulerListFactory ()
|
||||
{
|
||||
SchedulerFactory::AddDefault (this, "list");
|
||||
SchedulerFactory::AddDefault (this, "List");
|
||||
}
|
||||
private:
|
||||
virtual Scheduler *DoCreate (void) const
|
||||
|
|
|
@ -44,7 +44,7 @@ static class SchedulerMapFactory : public SchedulerFactory
|
|||
public:
|
||||
SchedulerMapFactory ()
|
||||
{
|
||||
SchedulerFactory::Add (this, "map");
|
||||
SchedulerFactory::Add (this, "Map");
|
||||
}
|
||||
private:
|
||||
virtual Scheduler *DoCreate (void) const
|
||||
|
|
|
@ -298,20 +298,20 @@ SimulatorPrivate *Simulator::m_priv = 0;
|
|||
|
||||
void Simulator::SetLinkedList (void)
|
||||
{
|
||||
Bind ("scheduler", "list");
|
||||
Bind ("Scheduler", "List");
|
||||
}
|
||||
void Simulator::SetBinaryHeap (void)
|
||||
{
|
||||
Bind ("scheduler", "BinaryHeap");
|
||||
Bind ("Scheduler", "BinaryHeap");
|
||||
}
|
||||
void Simulator::SetStdMap (void)
|
||||
{
|
||||
Bind ("scheduler", "map");
|
||||
Bind ("Scheduler", "Map");
|
||||
}
|
||||
void
|
||||
Simulator::SetExternal (const std::string &external)
|
||||
{
|
||||
Bind ("scheduler", external);
|
||||
Bind ("Scheduler", external);
|
||||
}
|
||||
void Simulator::EnableLogTo (char const *filename)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue