certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] applications/PyHLA/examples/updateAttributeValu...


From: certi-cvs
Subject: [certi-cvs] applications/PyHLA/examples/updateAttributeValu...
Date: Mon, 04 Oct 2010 20:25:58 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Petr Gotthard <gotthardp>       10/10/04 20:25:58

Modified files:
        PyHLA/examples/updateAttributeValues: uav-send.py 

Log message:
        Bugfix: remove published object upon termination.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/PyHLA/examples/updateAttributeValues/uav-send.py?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: uav-send.py
===================================================================
RCS file: 
/sources/certi/applications/PyHLA/examples/updateAttributeValues/uav-send.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- uav-send.py 9 Jul 2009 15:47:25 -0000       1.1
+++ uav-send.py 4 Oct 2010 20:25:58 -0000       1.2
@@ -17,6 +17,9 @@
             [self.textAttributeHandle, self.structAttributeHandle, 
self.fomAttributeHandle])
         self.myObject = rtia.registerObjectInstance(self.classHandle, "HAF")
 
+    def terminate(self):
+        rtia.deleteObjectInstance(self.myObject, "HAF")
+
     # RTI callbacks
     def startRegistrationForObjectClass(*params):
         print "START", params
@@ -50,6 +53,8 @@
 except KeyboardInterrupt:
     pass
 
+mya.terminate()
+
 
rtia.resignFederationExecution(hla.rti.ResignAction.DeleteObjectsAndReleaseAttributes)
 
 print "Done."



reply via email to

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