CompuCell3D::CellTypePlugin Class Reference

#include <CellTypePlugin.h>

Inheritance diagram for CompuCell3D::CellTypePlugin:

Inheritance graph
[legend]
Collaboration diagram for CompuCell3D::CellTypePlugin:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CellTypePlugin ()
virtual ~CellTypePlugin ()
virtual void init (Simulator *simulator, ParseData *_pd=0)
 SimObject interface.
std::map< unsigned
char, std::string > & 
getTypeNameMap ()
virtual unsigned char getCellType (const CellG *) const
 Automaton Interface.
virtual std::string getTypeName (const char type) const
virtual unsigned char getTypeId (const std::string typeName) const
virtual void readXML (XMLPullParser &in)
 Begin XMLSerializable interface.
virtual void writeXML (XMLSerializer &out)

Public Attributes

CellTypeParseData cpd

Private Attributes

Potts3Dpotts
std::map< unsigned
char, std::string > 
typeNameMap
std::map
< std::string,
unsigned char > 
nameTypeMap


Detailed Description

Definition at line 42 of file CellTypePlugin.h.


Constructor & Destructor Documentation

CellTypePlugin::CellTypePlugin (  ) 

Definition at line 43 of file CellTypePlugin.cpp.

References CompuCell3D::Automaton::classType.

CellTypePlugin::~CellTypePlugin (  )  [virtual]

Definition at line 45 of file CellTypePlugin.cpp.


Member Function Documentation

void CellTypePlugin::init ( Simulator simulator,
ParseData _pd = 0 
) [virtual]

SimObject interface.

Reimplemented from CompuCell3D::SimObject.

Definition at line 47 of file CellTypePlugin.cpp.

References CompuCell3D::CellTypeParseData::cellTypeTuppleVec, CompuCell3D::Automaton::classType, CompuCell3D::Simulator::getPotts(), nameTypeMap, potts, CompuCell3D::Potts3D::registerAutomaton(), CompuCell3D::Potts3D::registerCellGChangeWatcher(), CompuCell3D::Potts3D::setFrozenTypeVector(), and typeNameMap.

Here is the call graph for this function:

std::map<unsigned char,std::string>& CompuCell3D::CellTypePlugin::getTypeNameMap (  )  [inline]

Definition at line 63 of file CellTypePlugin.h.

References typeNameMap.

unsigned char CellTypePlugin::getCellType ( const CellG cell  )  const [virtual]

Automaton Interface.

Implements CompuCell3D::Automaton.

Definition at line 83 of file CellTypePlugin.cpp.

References CompuCell3D::CellG::type.

string CellTypePlugin::getTypeName ( const char  type  )  const [virtual]

Implements CompuCell3D::Automaton.

Definition at line 93 of file CellTypePlugin.cpp.

References THROW, and typeNameMap.

Referenced by CompuCell3D::PIFDumper::step().

virtual unsigned char CompuCell3D::CellTypePlugin::getTypeId ( const std::string  typeName  )  const [virtual]

Implements CompuCell3D::Automaton.

Referenced by CompuCell3D::BlobFieldInitializer::initializeEngulfment().

void CellTypePlugin::readXML ( XMLPullParser in  )  [virtual]

Begin XMLSerializable interface.

deciding whether to freeze or not

Implements XMLSerializable.

Definition at line 145 of file CellTypePlugin.cpp.

References CompuCell3D::CellTypeParseData::cellTypeTuppleVec, XMLPullParser::check(), cpd, XMLPullParser::findAttribute(), CompuCell3D::CellTypeTupple::freeze, XMLPullParser::getAttribute(), XMLPullParser::getLocation(), XMLPullParser::getName(), XMLPullParser::matchSimple(), BasicString::parseUByte(), CompuCell3D::SimObject::pd, XMLPullParser::skip(), XMLEventTypes::START_ELEMENT, XMLEventTypes::TEXT, CompuCell3D::CellTypeTupple::typeId, CompuCell3D::CellTypeTupple::typeName, and XMLAttrib::value.

Here is the call graph for this function:

void CellTypePlugin::writeXML ( XMLSerializer xmlOut  )  [virtual]

Serialize this serializable.

Parameters:
xmlOut The serializer.

Implements XMLSerializable.

Definition at line 202 of file CellTypePlugin.cpp.


Member Data Documentation

Potts3D* CompuCell3D::CellTypePlugin::potts [private]

Reimplemented from CompuCell3D::Automaton.

Definition at line 43 of file CellTypePlugin.h.

Referenced by init().

std::map<unsigned char,std::string> CompuCell3D::CellTypePlugin::typeNameMap [private]

Definition at line 45 of file CellTypePlugin.h.

Referenced by getTypeName(), getTypeNameMap(), and init().

std::map<std::string,unsigned char> CompuCell3D::CellTypePlugin::nameTypeMap [private]

Definition at line 46 of file CellTypePlugin.h.

Referenced by init().

CellTypeParseData CompuCell3D::CellTypePlugin::cpd

Definition at line 55 of file CellTypePlugin.h.

Referenced by readXML().


The documentation for this class was generated from the following files:
Generated on Thu Feb 21 14:40:01 2008 for CompuCell3D by  doxygen 1.5.3