Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::PlasmaAgentImpl Class Reference
[Agent implementation using EUROPA-2]

#include <PlasmaAgentImpl.hh>

Inheritance diagram for IDEA::PlasmaAgentImpl:

IDEA::AgentImpl List of all members.

Public Methods

 PlasmaAgentImpl ()
 ~PlasmaAgentImpl ()
const std::string & getXIDDLLibraryName () const
const std::string & getXIDDLFileName () const
 Returns the XIDDL file which has been retrieved from the command line options.

const Trace::OutputLevelgetOutputLevel () const
 Returns the output level for the invoking agent which has been retrieved from the command line options.

const std::string & getInitialStateFileName () const
 Returns the initial state file which has been retrieved from the command line options.

const std::string & getOutputFilterFileName () const
 Returns the output filter file which has been retrieved from the command line options.

AgentTimingServicegetAgentTimingService () const
 Returns the AgentTimingService instance associated with the invoking agent.

AgentRelaygetAgentRelay () const
 Returns the AgentRelay instance associated with the invoking agent.

PslDatabasegetDatabase () const
 returns the PslDatabase instance associated with the invoking agent.

PslModelManagergetModelManager () const
 returns the PslModelManager instance associated with the invoking agent.

void start ()
 Initializes the invoking agent and start the invoking agent.

void stop ()
 Stops the agent if it has been started.

bool initialize ()
 Initializes the factory class-instances to use. Factory classes are responsible for creating all the class-instances.

bool isInitialized () const
 Returns true if the invoking agent has been initialized, otherwise returns false.


Protected Methods

void deleteInstances ()
 Stops the agent relay and deletes all the instances created in createInstances.


Protected Attributes

AgentRelaym_AgentRelay
PslDatabasem_Database
PslModelManagerm_ModelManager
AgentTimingServicem_AgentTimingService

Private Methods

bool loadInitialState ()
bool loadModel ()
bool preInitialize ()
 Hook on the start of the initialization.


Private Attributes

std::string m_XIDDLLibraryName
void * m_LibraryHandler
 Handler for the opened dynamic library containing the model-information.


Detailed Description

Author:
David Rijsman rijsman@email.arc.nasa.gov


Constructor & Destructor Documentation

IDEA::PlasmaAgentImpl::PlasmaAgentImpl  
 

IDEA::PlasmaAgentImpl::~PlasmaAgentImpl  
 


Member Function Documentation

void IDEA::AgentImpl::deleteInstances   [protected, inherited]
 

Stops the agent relay and deletes all the instances created in createInstances.

AgentRelay * IDEA::AgentImpl::getAgentRelay   [inherited]
 

Returns the AgentRelay instance associated with the invoking agent.

AgentTimingService * IDEA::AgentImpl::getAgentTimingService   [inherited]
 

Returns the AgentTimingService instance associated with the invoking agent.

PslDatabase * IDEA::AgentImpl::getDatabase   [inherited]
 

returns the PslDatabase instance associated with the invoking agent.

const std::string & IDEA::AgentImpl::getInitialStateFileName   [inherited]
 

Returns the initial state file which has been retrieved from the command line options.

The agent constructor will use the AgentCommandLineParser to parse the initial state filename from the command line options passed to the executable which invokes this API. See AgentCommandLineParser to see which command line option needs to be used to pass the initial state filename.

PslModelManager * IDEA::AgentImpl::getModelManager   [inherited]
 

returns the PslModelManager instance associated with the invoking agent.

const std::string & IDEA::AgentImpl::getOutputFilterFileName   [inherited]
 

Returns the output filter file which has been retrieved from the command line options.

The agent constructor will use the AgentCommandLineParser to parse the output filter filename from the command line options passed to the executable which invokes this API. See AgentCommandLineParser to see which command line option needs to be used to pass the initial state filename.

const Trace::OutputLevel & IDEA::AgentImpl::getOutputLevel   [inherited]
 

Returns the output level for the invoking agent which has been retrieved from the command line options.

The agent constructor will use the AgentCommandLineParser to parse the output level from the command line options passed to the executable which invokes this API. See AgentCommandLineParser to see which command line option needs to be used to set the output level.

const std::string & IDEA::AgentImpl::getXIDDLFileName   [inherited]
 

Returns the XIDDL file which has been retrieved from the command line options.

The agent constructor will use the AgentCommandLineParser to parse the XIDDL filename from the command line options passed to the executable which invokes this API. See AgentCommandLineParser to see which command line option needs to be used to pass the XIDDL filename.

const std::string & IDEA::PlasmaAgentImpl::getXIDDLLibraryName  
 

bool IDEA::AgentImpl::initialize   [inherited]
 

Initializes the factory class-instances to use. Factory classes are responsible for creating all the class-instances.

Initializes which instance of PslModelManager to use, by default this will be the one by the name 'EUROPA2'. One can overload this by setting the environment variable 'IDEA_PLAN_DB' with a value of the name of the manager you want to use. Obiously one has to create a specialization of the class PlsModelManagerFactory with the name you set then environment variable to and one must assure to load the object-file before initialize get's invoked.

Initializes which instance of PslModelLoader to use, by default this will be the one by the name 'XERCES'. One can overload this by setting the environment variable 'IDEA_XML_PARSER' with a value of the name of the loader you want to use. Obiously one has to create a specialization of the class PlsModelLoaderFactory with the name you set then environment variable to and one must assure to load the object-file before initialize get's invoked.

bool IDEA::AgentImpl::isInitialized   [inherited]
 

Returns true if the invoking agent has been initialized, otherwise returns false.

bool IDEA::PlasmaAgentImpl::loadInitialState   [private, virtual]
 

Reimplemented from IDEA::AgentImpl.

bool IDEA::PlasmaAgentImpl::loadModel   [private, virtual]
 

Reimplemented from IDEA::AgentImpl.

bool IDEA::PlasmaAgentImpl::preInitialize   [private, virtual]
 

Hook on the start of the initialization.

Reimplemented from IDEA::AgentImpl.

void IDEA::AgentImpl::start   [inherited]
 

Initializes the invoking agent and start the invoking agent.

void IDEA::AgentImpl::stop   [inherited]
 

Stops the agent if it has been started.


Member Data Documentation

AgentRelay* IDEA::AgentImpl::m_AgentRelay [protected, inherited]
 

AgentTimingService* IDEA::AgentImpl::m_AgentTimingService [protected, inherited]
 

PslDatabase* IDEA::AgentImpl::m_Database [protected, inherited]
 

void* IDEA::PlasmaAgentImpl::m_LibraryHandler [private]
 

Handler for the opened dynamic library containing the model-information.

PslModelManager* IDEA::AgentImpl::m_ModelManager [protected, inherited]
 

std::string IDEA::PlasmaAgentImpl::m_XIDDLLibraryName [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:46 2006 for IDEA.