Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Glib::ustring GVLE::card_identity(graph::Model* mModel)
- {
- std::string nom_dyn = "";
- try {
- std::string nom_model = "Model : " + mModel->getName();
- Glib::ustring card2 = nom_model;
- if (mModel->isCoupled()){
- card2 += " (Coupled)";
- } else {
- card2 += " (Atomic)";
- vpz::Model& model = mModeling->vpz().project().model();
- vpz::AtomicModel& atm = model.atomicModels().get(mModel);
- nom_dyn = atm.dynamics();
- //nom_dyn = mModeling->vpz().project().model().atomicModels()
- // .get(mModel).dynamics();
- if (nom_dyn != ""){
- card2 = "\nDynamic : " + nom_dyn + "\n";
- card2 = mModeling->dynamics().recup_dyn(card2, nom_dyn);
- }
- }
- return card2;
- } catch (std::exception& e){
- std::cout << "Exception :\n" << e.what() << "\n";
- return "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement