certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] applications/HLA_TestsSuite create_destroy.cc


From: certi-cvs
Subject: [certi-cvs] applications/HLA_TestsSuite create_destroy.cc
Date: Wed, 14 May 2008 07:47:36 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     ROUSSELOT <rousse>      08/05/14 07:47:36

Modified files:
        HLA_TestsSuite : create_destroy.cc 

Log message:
        renumbering steps

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/create_destroy.cc?cvsroot=certi&r1=1.4&r2=1.5

Patches:
Index: create_destroy.cc
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/create_destroy.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- create_destroy.cc   13 May 2008 13:04:31 -0000      1.4
+++ create_destroy.cc   14 May 2008 07:47:35 -0000      1.5
@@ -768,7 +768,7 @@
     auto_ptr<RTI::AttributeHandleSet> 
attributes(RTI::AttributeHandleSetFactory::create(1));
     attributes->add(AttributeID);
 
-    answer = say_Y_N("Do you want to publish the object class ? [y/n]");
+    answer = say_Y_N("Do you want to publish the object class ? [y/n]",71);
     if ( answer == 'y' )
        {
        // Publish Object class with attribute set.
@@ -787,7 +787,7 @@
        // printf("Made\n");
        }
 
-    answer = say_Y_N("Do you want to subscribe to the object class ? [y/n]");
+    answer = say_Y_N("Do you want to subscribe to the object class ? 
[y/n]",72);
     if ( answer == 'y' )
        {
        // Subscribe to object class named class_name, which has handle=ClassID 
and
@@ -800,20 +800,14 @@
        // myCreate_Destroy->subscribeInteractionClass(InteractClassID, 
RTI::RTI_TRUE);
        // printf("Made\n");
        // tick needed here 
-       answer = say_Y_N("Do you want to do a tick to get discover (needed 
here) ? [y/n]");
+       answer = say_Y_N("Do you want to do a tick to get discover (needed 
here) ? [y/n]",73);
        if ( answer == 'y' )
            {
            myCreate_Destroy->tick();
-           // Local delete ?
-           answer = say_Y_N("Do you want to local delete object instance ? 
[y/n]");
-           if ( answer == 'y' )
-               {
-               
//myCreate_Destroy->localDeleteObjectInstance(Object_discovered,"LOCAL_DELETE");
-               }
            }
        }
 
-    answer = say_Y_N("Do you want to register an instance of the object class 
? [y/n]");
+    answer = say_Y_N("Do you want to register an instance of the object class 
? [y/n]",74);
     if ( answer == 'y' )
        {
        // Register an instance of the object class ClassID, we give his name 
from the federate name (why not ?)
@@ -828,7 +822,7 @@
 
 
     // UPDATE
-    answer = say_Y_N("Do you want to do an updateAttributeValues ? [y/n]");
+    answer = say_Y_N("Do you want to do an updateAttributeValues ? [y/n]",75);
     if ( answer == 'y' )
        {
        // 1 attribute AttributeID stored in attributeSet
@@ -841,14 +835,14 @@
        std::cout << std::endl << "update attribute values made" << std::endl;
        } 
 
-    answer = say_Y_N("Do you want to do a tick to get reflect attribute values 
? [y/n]");
+    answer = say_Y_N("Do you want to do a tick to get reflect attribute values 
? [y/n]",76);
     if ( answer == 'y' )
        {  
        myCreate_Destroy->tick(); 
        }
  
 //=================== REQUEST OBJECT ATTRIBUTE TEST ===========================
-     answer = say_Y_N("Do you want to do a request object attribute ? [y/n]");
+     answer = say_Y_N("Do you want to do a request object attribute ? 
[y/n]",77);
      if ( answer == 'y' )
        {
         printf("Now, I want the values of this attribute.\n");
@@ -857,13 +851,13 @@
         
myCreate_Destroy->requestObjectAttributeValueUpdate(Object_discovered,*attributes);
         } 
 
-     answer = say_Y_N("Do you want to do a tick to get provide attribute 
values ? [y/n]");
+     answer = say_Y_N("Do you want to do a tick to get provide attribute 
values ? [y/n]",78);
      if ( answer == 'y' )
          {  
           myCreate_Destroy->tick(); 
           }
     // UPDATE
-    answer = say_Y_N("Do you want to do an updateAttributeValues ? [y/n]");
+    answer = say_Y_N("Do you want to do an updateAttributeValues ? [y/n]",79);
     if ( answer == 'y' )
        {
        // 1 attribute AttributeID stored in attributeSet
@@ -876,7 +870,7 @@
        std::cout << std::endl << "update attribute values made" << std::endl;
        } 
 
-    answer = say_Y_N("Do you want to do a tick to get reflect attribute values 
? [y/n]");
+    answer = say_Y_N("Do you want to do a tick to get reflect attribute values 
? [y/n]",700);
     if ( answer == 'y' )
        {  
        myCreate_Destroy->tick(); 
@@ -885,7 +879,7 @@
     
     // SEND INTERACTION
     // 1 parameter : PositionX value stored in ParameterSet
-    answer = say_Y_N("Do you want to do a sendInteraction ? [y/n]");
+    answer = say_Y_N("Do you want to do a sendInteraction ? [y/n]",701);
     if ( answer == 'y' )
        {
        parameterSet = RTI::ParameterSetFactory::create(1);




reply via email to

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