Diana  0.8.3
Public Member Functions | Private Member Functions | Private Attributes
CRouter Class Reference

List of all members.

Public Member Functions

void AddModel (CapeLong _lModelIndex)
void RemoveModel (CapeLong _lModelIndex)
void ReadConnectionsFile (const CapeString &_szConnectionsFileName) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
const CapeArrayLongGetModelsDisplacement ()
const CapeArrayStringGetProcessorsNames ()
CapeLong GetGlobalIndex (const CapeString &_ModelName) throw (Common::Error::ECapeInvalidArgument)
CapeLong GetRank (CapeLong _Index)
CapeArrayString GetAllModelNames ()
CapeArrayString GetAllESONames ()

Private Member Functions

void CollectProcessorsInfo ()
void GenerateRoutes ()

Private Attributes

int m_nMyRank
 my rank
int m_nProcQuantity
 quantity of processes
CapeArrayLong m_DisplacementArray
CapeArrayString m_ProcessorsNames
CapeBoolean m_bNeedToUpdateRoutes
CapeArrayLong MyModelsIndexes
 m_pMyModels[i]==1 if i-th model situated on that processor
std::vector< ModelInfoTypeModelsList
 {ModelName, ESOName}

Member Function Documentation

void AddModel ( CapeLong  _lModelIndex)

add model by its index to the list of models on this Processor

void GenerateRoutes ( ) [private]

This function create table where situated each object

Get the global index for model. (it takes from connections file. ) Global indexes - its the order of models in connection file

Return indexes of processes where situated models

Return indexes of processes where situated models

CapeLong GetRank ( CapeLong  _Index)

Return the number of processor where situated model with index _Index

Read connections file and save names and indexes of the models

void RemoveModel ( CapeLong  _lModelIndex)

Remove model by its index from the list of models on this Processor


The documentation for this class was generated from the following file: