Diana
0.8.3
|
Public Member Functions | |
void | AddModel (CapeLong _lModelIndex) |
void | RemoveModel (CapeLong _lModelIndex) |
void | ReadConnectionsFile (const CapeString &_szConnectionsFileName) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) |
const CapeArrayLong & | GetModelsDisplacement () |
const CapeArrayString & | GetProcessorsNames () |
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< ModelInfoType > | ModelsList |
{ModelName, ESOName} |
add model by its index to the list of models on this Processor
void GenerateRoutes | ( | ) | [private] |
This function create table where situated each object
CapeLong GetGlobalIndex | ( | const CapeString & | _ModelName | ) | throw (Common::Error::ECapeInvalidArgument) |
Get the global index for model. (it takes from connections file. ) Global indexes - its the order of models in connection file
const CapeArrayLong& GetModelsDisplacement | ( | ) |
Return indexes of processes where situated models
const CapeArrayString& GetProcessorsNames | ( | ) |
Return indexes of processes where situated models
Return the number of processor where situated model with index _Index
void ReadConnectionsFile | ( | const CapeString & | _szConnectionsFileName | ) | throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument) |
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