COPASI API
4.40.278
|
#include <COutputHandler.h>
Public Member Functions | |
virtual void | addInterface (COutputInterface *pInterface) |
virtual bool | compile (CObjectInterface::ContainerList listOfContainer) |
COutputHandler () | |
COutputHandler (const COutputHandler &src) | |
virtual void | finish () |
std::set< COutputInterface * > | getInterfaces () const |
bool | isMaster () const |
virtual void | output (const Activity &activity) |
virtual void | removeInterface (COutputInterface *pInterface) |
virtual void | separate (const Activity &activity) |
void | setMaster (COutputHandler *pMaster) |
virtual | ~COutputHandler () |
Public Member Functions inherited from COutputInterface | |
virtual void | close () |
COutputInterface () | |
COutputInterface (const COutputInterface &src) | |
virtual const CObjectInterface::ObjectSet & | getObjects () const |
virtual | ~COutputInterface () |
Protected Member Functions | |
void | applyUpdateSequence () |
bool | compileUpdateSequence (const CObjectInterface::ContainerList &listOfContainer) |
Protected Attributes | |
std::set< COutputInterface * > | mInterfaces |
const CMathContainer * | mpContainer |
COutputHandler * | mpMaster |
CCore::CUpdateSequence | mUpdateSequence |
Protected Attributes inherited from COutputInterface | |
CObjectInterface::ObjectSet | mObjects |
Additional Inherited Members | |
Public Types inherited from COutputInterface | |
enum | Activity { BEFORE = 0x01 , DURING = 0x02 , AFTER = 0x04 , MONITORING = 0x08 } |
This is the lass which drives all output of COPASI.
COutputHandler::COutputHandler | ( | ) |
Default Constructor
COutputHandler::COutputHandler | ( | const COutputHandler & | src | ) |
Copy constructor
const | COutputInterface & src |
|
virtual |
Destructor
|
virtual |
Add an interface
COutputInterface | * pInterface; |
References mInterfaces, and setMaster().
Referenced by CScanTask::initialize(), CTimeSensTask::initialize(), CTrajectoryTask::initialize(), CTSSATask::initialize(), and CCopasiTask::initialize().
|
protected |
|
virtual |
compile the object list from name vector
CObjectInterface::ContainerList | listOfContainer |
const | CDataModel* pDataModel |
Implements COutputInterface.
Reimplemented in CDataHandler.
References compileUpdateSequence(), mInterfaces, COutputInterface::mObjects, mpContainer, mpMaster, and setMaster().
Referenced by CCopasiTask::initialize(), and CMoietiesTask::process().
|
protected |
Compile the object refresh list
const | CObjectInterface::ContainerList & listOfContainer |
References CCore::Default, CMathContainer::getSimulationUpToDateObjects(), CMathContainer::getStateObjects(), CMathContainer::getTransientDependencies(), CMathDependencyGraph::getUpdateSequence(), COutputInterface::mObjects, mpContainer, and mUpdateSequence.
Referenced by compile().
|
virtual |
Finish the output
Implements COutputInterface.
Reimplemented in CDataHandler.
References mInterfaces, and removeInterface().
std::set< COutputInterface * > COutputHandler::getInterfaces | ( | ) | const |
References mInterfaces.
bool COutputHandler::isMaster | ( | ) | const |
|
virtual |
Perform an output event for the current activity
const | Activity & activity |
Implements COutputInterface.
Reimplemented in CDataHandler.
References applyUpdateSequence(), mInterfaces, and mpMaster.
Referenced by CCopasiTask::output().
|
virtual |
Remove an interface
COutputInterface | * pInterface; |
References mInterfaces, and setMaster().
Referenced by finish().
|
virtual |
Introduce an additional separator into the output
const | Activity & activity |
Implements COutputInterface.
Reimplemented in CDataHandler.
References mInterfaces.
Referenced by CCopasiTask::separate().
void COutputHandler::setMaster | ( | COutputHandler * | pMaster | ) |
Set whether the handler is the master handler
COutputHandler | * pMaster |
References mpMaster.
Referenced by addInterface(), compile(), and removeInterface().
|
protected |
A list of all active output interfaces.
Referenced by addInterface(), compile(), finish(), getInterfaces(), output(), removeInterface(), and separate().
|
protected |
A pointer to the math container
Referenced by applyUpdateSequence(), compile(), and compileUpdateSequence().
|
protected |
Points to the master handler. The master handler is responsible for the and object updates and all the output.
Referenced by compile(), isMaster(), output(), and setMaster().
|
protected |
An ordered list of refresh methods needed by the master
Referenced by applyUpdateSequence(), and compileUpdateSequence().