certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

certi RTIG/Federation.cc libRTI/RTIambassador.cc


From: certi-cvs
Subject: certi RTIG/Federation.cc libRTI/RTIambassador.cc
Date: Wed, 19 Dec 2007 10:38:06 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     ROUSSELOT <rousse>      07/12/19 10:38:06

Modified files:
        RTIG           : Federation.cc 
        libRTI         : RTIambassador.cc 

Log message:
        Added a few debugging traces

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIG/Federation.cc?cvsroot=certi&r1=3.74&r2=3.75
http://cvs.savannah.gnu.org/viewcvs/certi/libRTI/RTIambassador.cc?cvsroot=certi&r1=3.62&r2=3.63

Patches:
Index: RTIG/Federation.cc
===================================================================
RCS file: /sources/certi/certi/RTIG/Federation.cc,v
retrieving revision 3.74
retrieving revision 3.75
diff -u -b -r3.74 -r3.75
--- RTIG/Federation.cc  17 Dec 2007 16:01:24 -0000      3.74
+++ RTIG/Federation.cc  19 Dec 2007 10:38:06 -0000      3.75
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: Federation.cc,v 3.74 2007/12/17 16:01:24 rousse Exp $
+// $Id: Federation.cc,v 3.75 2007/12/19 10:38:06 rousse Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -1051,6 +1051,8 @@
 Federation::federateSaveStatus(FederateHandle the_federate, bool the_status)
     throw (FederateNotExecutionMember)
 {
+    G.Out(pdGendoc,"enter Federation::federateSaveStatus");
+
     Federate &federate = getFederate(the_federate);
     federate.setSaving(false);
 
@@ -1060,8 +1062,11 @@
     // Verify that all federates save ended (complete or not).
     for (FederateList::iterator j = federates.begin(); j != federates.end(); 
++j) {
         if (j->isSaving())
+            {
+            G.Out(pdGendoc,"exit  Federation::federateSaveStatus one federate 
has not save ended");
             return ;
     }
+    }
 
     // Save RTIG Data for future restoration.
     if (saveStatus) {
@@ -1081,6 +1086,8 @@
     // Reinitialize state.
     saveStatus = true ;
     saveInProgress = false ;
+
+    G.Out(pdGendoc,"exit  Federation::federateSaveStatus");
 }
 
 // ----------------------------------------------------------------------------
@@ -2239,5 +2246,5 @@
 
 }} // namespace certi/rtig
 
-// $Id: Federation.cc,v 3.74 2007/12/17 16:01:24 rousse Exp $
+// $Id: Federation.cc,v 3.75 2007/12/19 10:38:06 rousse Exp $
 

Index: libRTI/RTIambassador.cc
===================================================================
RCS file: /sources/certi/certi/libRTI/RTIambassador.cc,v
retrieving revision 3.62
retrieving revision 3.63
diff -u -b -r3.62 -r3.63
--- libRTI/RTIambassador.cc     18 Dec 2007 16:23:58 -0000      3.62
+++ libRTI/RTIambassador.cc     19 Dec 2007 10:38:06 -0000      3.63
@@ -19,7 +19,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 // USA
 //
-// $Id: RTIambassador.cc,v 3.62 2007/12/18 16:23:58 rousse Exp $
+// $Id: RTIambassador.cc,v 3.63 2007/12/19 10:38:06 rousse Exp $
 // ----------------------------------------------------------------------------
 
 
@@ -626,7 +626,7 @@
     req.type = Message::JOIN_FEDERATION_EXECUTION ;
     req.setFederateName(yourName);
     req.setFederationName(executionName);
-
+    G.Out(pdGendoc,"        ====>executeService JOIN_FEDERATION_EXECUTION");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::joinFederationExecution");
     return rep.getFederate();
@@ -648,6 +648,8 @@
 
     req.type = Message::RESIGN_FEDERATION_EXECUTION ;
     req.setResignAction(theAction);
+
+    G.Out(pdGendoc,"        ====>executeService RESIGN_FEDERATION_EXECUTION");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit RTIambassador::resignFederationExecution");
@@ -679,7 +681,7 @@
     req.setTag(the_tag);
     // boolean false because without set of federates
     req.setBoolean(false);
-
+    G.Out(pdGendoc,"        ====>executeService 
REGISTER_FEDERATION_SYNCHRONIZATION_POINT");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit RTIambassador::registerFederationSynchronizationPoint 
for all federates");
@@ -725,7 +727,7 @@
             req.handleArray[i] = set_of_fed.getHandle(i) ;
             }
         }
-
+    G.Out(pdGendoc,"        ====>executeService 
REGISTER_FEDERATION_SYNCHRONIZATION_POINT");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit RTIambassador::registerFederationSynchronizationPoint 
for some federates");
@@ -749,7 +751,7 @@
 
     req.type = Message::SYNCHRONIZATION_POINT_ACHIEVED ;
     req.setLabel(label);
-
+    G.Out(pdGendoc,"        ====>executeService 
SYNCHRONIZATION_POINT_ACHIEVED");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit  RTIambassador::synchronizationPointAchieved");
@@ -778,9 +780,7 @@
     // boolean true means time constrained
     req.setBoolean(true);
 
-    G.Out(pdGendoc,"      requestFederationSave===>executeService "
-                   "REQUEST_FEDERATION_SAVE");
-
+    G.Out(pdGendoc,"        ====>executeService REQUEST_FEDERATION_SAVE");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit RTIambassador::requestFederationSave with time");
@@ -805,7 +805,7 @@
     // boolean false means without time
     req.setBoolean(false);
 
-    G.Out(pdGendoc,"      ====>executeService for REQUEST_FEDERATION_SAVE");
+    G.Out(pdGendoc,"      ====>executeService REQUEST_FEDERATION_SAVE");
 
     privateRefs->executeService(&req, &rep);
 
@@ -827,7 +827,7 @@
     G.Out(pdGendoc,"enter RTIambassador::federateSaveBegun");
 
     req.type = Message::FEDERATE_SAVE_BEGUN ;
-
+    G.Out(pdGendoc,"      ====>executeService FEDERATE_SAVE_BEGUN");
     privateRefs->executeService(&req, &rep);
 
     G.Out(pdGendoc,"exit  RTIambassador::federateSaveBegun");
@@ -848,7 +848,7 @@
     G.Out(pdGendoc,"enter RTIambassador::federateSaveComplete");
 
     req.type = Message::FEDERATE_SAVE_COMPLETE ;
-
+    G.Out(pdGendoc,"      ====>executeService FEDERATE_SAVE_COMPLETE");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::federateSaveComplete");
 }
@@ -867,7 +867,7 @@
     Message req, rep ;
 
     G.Out(pdGendoc,"enter RTIambassador::federateSaveNotComplete");
-
+    G.Out(pdGendoc,"      ====>executeService FEDERATE_SAVE_NOT_COMPLETE");
     req.type = Message::FEDERATE_SAVE_NOT_COMPLETE ;
 
     privateRefs->executeService(&req, &rep);
@@ -889,7 +889,7 @@
 
     req.type = Message::REQUEST_FEDERATION_RESTORE ;
     req.setLabel(label);
-
+    G.Out(pdGendoc,"      ====>executeService REQUEST_FEDERATION_RESTORE");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::requestFederationRestore");
 }
@@ -908,7 +908,7 @@
     G.Out(pdGendoc,"enter RTIambassador::federateRestoreComplete");
 
     req.type = Message::FEDERATE_RESTORE_COMPLETE ;
-
+    G.Out(pdGendoc,"      ====>executeService FEDERATE_RESTORE_COMPLETE");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::federateRestoreComplete");
 }
@@ -925,7 +925,7 @@
     Message req, rep ;
 
     G.Out(pdGendoc,"enter RTIambassador::federateRestoreNotComplete");
-
+    G.Out(pdGendoc,"      ====>executeService FEDERATE_RESTORE_NOT_COMPLETE");
     req.type = Message::FEDERATE_RESTORE_NOT_COMPLETE ;
 
     privateRefs->executeService(&req, &rep);
@@ -949,7 +949,7 @@
     req.type = Message::PUBLISH_OBJECT_CLASS ;
     req.setObjectClass(theClass);
     req.setAHS(attributeList);
-
+    G.Out(pdGendoc,"      ====>executeService PUBLISH_OBJECT_CLASS");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::publishObjectClass");
 }
@@ -969,6 +969,7 @@
 
     req.type = Message::UNPUBLISH_OBJECT_CLASS ;
     req.setObjectClass(theClass);
+    G.Out(pdGendoc,"      ====>executeService UNPUBLISH_OBJECT_CLASS");
     privateRefs->executeService(&req, &rep);
     G.Out(pdGendoc,"exit  RTIambassador::unpublishObjectClass");
 }
@@ -986,6 +987,7 @@
 
     req.type = Message::PUBLISH_INTERACTION_CLASS ;
     req.setInteractionClass(theInteraction);
+    G.Out(pdGendoc,"      ====>executeService PUBLISH_INTERACTION_CLASS");
     privateRefs->executeService(&req, &rep);
 }
 
@@ -2900,4 +2902,4 @@
     privateRefs->executeService(&req, &rep);
 }
 
-// $Id: RTIambassador.cc,v 3.62 2007/12/18 16:23:58 rousse Exp $
+// $Id: RTIambassador.cc,v 3.63 2007/12/19 10:38:06 rousse Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]