uniformize the DefaultValues used by the Event Schedulers

Mathieu Lacage 2007-05-24 16:15:41 +02:00
parent 29026f00db
commit 80247a993d
4 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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

View File

@ -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)
{