INET Framework for OMNeT++/OMNEST
|
Modules that need to be scriptable by ScenarioManager should "implement" (subclass from) this class. More...
#include <IScriptable.h>
Public Member Functions | |
virtual | ~IScriptable () |
virtual void | processCommand (const cXMLElement &node)=0 |
Called by ScenarioManager whenever a script command needs to be carried out by the module. More... | |
Modules that need to be scriptable by ScenarioManager should "implement" (subclass from) this class.
|
pure virtual |
Called by ScenarioManager whenever a script command needs to be carried out by the module.
The command is represented by the XML element or element tree. The command name can be obtained as:
const char *command = node->getTagName()
Parameters are XML attributes, e.g. a "neighbour" parameter can be retrieved as:
const char *attr = node->getAttribute("neighbour")
More complex input can be passed in child elements.
Implemented in inet::RSVP, inet::LifecycleController, inet::SimpleClassifier, and inet::NetworkInfo.
Referenced by inet::ScenarioManager::processModuleSpecificCommand().