#include <Y2CCAgentComponent.h>
Public Member Functions | |
Y2CCAgentComp (const char *) | |
bool | isServerCreator () const |
Y2Component * | create (const char *) const |
Y2Component * | provideNamespace (const char *) |
Private Attributes | |
const char * | my_name |
Template class for a Y2ComponentCreator of an Y2AgentComp.
Y2CCAgentComp< AgentComp >::Y2CCAgentComp | ( | const char * | my_name | ) | [inline] |
Constructor of a Y2CCAgentComp object.
Y2Component * Y2CCAgentComp< AgentComp >::create | ( | const char * | name | ) | const [inline, virtual] |
Creates a new Y2Component if the name matches the one provided in the constructor.
Reimplemented from Y2ComponentCreator.
References Y2CCAgentComp< AgentComp >::my_name.
bool Y2CCAgentComp< AgentComp >::isServerCreator | ( | ) | const [inline, virtual] |
Returns true since all agents are server components.
Implements Y2ComponentCreator.
Y2Component* Y2CCAgentComp< AgentComp >::provideNamespace | ( | const char * | ) | [inline, virtual] |
Agent components do not provide any namespaces.
Reimplemented from Y2ComponentCreator.
const char* Y2CCAgentComp< AgentComp >::my_name [private] |
Name of my agent.
Referenced by Y2CCAgentComp< AgentComp >::create().