certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] certi/scripts GenerateMessages.py CERTI_Message...


From: certi-cvs
Subject: [certi-cvs] certi/scripts GenerateMessages.py CERTI_Message...
Date: Tue, 02 Feb 2010 22:14:59 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      10/02/02 22:14:59

Modified files:
        scripts        : GenerateMessages.py CERTI_Message.msg 

Log message:
        Update CERTI Message specs

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/GenerateMessages.py?cvsroot=certi&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/CERTI_Message.msg?cvsroot=certi&r1=1.5&r2=1.6

Patches:
Index: GenerateMessages.py
===================================================================
RCS file: /sources/certi/certi/scripts/GenerateMessages.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- GenerateMessages.py 30 Jan 2010 23:13:48 -0000      1.26
+++ GenerateMessages.py 2 Feb 2010 22:14:58 -0000       1.27
@@ -19,7 +19,7 @@
 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 ## USA
 ##
-## $Id: GenerateMessages.py,v 1.26 2010/01/30 23:13:48 erk Exp $
+## $Id: GenerateMessages.py,v 1.27 2010/02/02 22:14:58 erk Exp $
 ## ----------------------------------------------------------------------------
 
 """
@@ -33,6 +33,16 @@
 The CERTI developer team did develop a message specification language
 inspired from Google Protocol buffer. CERTI message have several
 specifities which make Google Protocol buffer unusable for CERTI.
+
+The present module is meant to take a message specification language
+input and produce various language specific output (C++, Java, Python).
+The generator uses the Python PLY module (http://www.dabeaz.com/ply/)
+for parsing the message specification language. The definition
+of the language itself should be easy to understand from the PLY
+grammar but here comes some introduction:
+
+TBD
+
 """
 
 import os

Index: CERTI_Message.msg
===================================================================
RCS file: /sources/certi/certi/scripts/CERTI_Message.msg,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- CERTI_Message.msg   31 Jan 2010 13:34:15 -0000      1.5
+++ CERTI_Message.msg   2 Feb 2010 22:14:59 -0000       1.6
@@ -191,7 +191,10 @@
 
 // Ownership management
 message M_Request_Attribute_Ownership_Divestiture : merge Message {}
-message M_Request_Attribute_Ownership_Assumption : merge Message {}
+message M_Request_Attribute_Ownership_Assumption : merge Message {
+       required ObjectHandle object
+       repeated AttributeHandle attributes
+}
 
 message M_Negotiated_Attribute_Ownership_Divestiture : merge Message {
        required ObjectHandle object
@@ -200,17 +203,30 @@
 
 message M_Attribute_Ownership_Divestiture_Notification : merge Message {}
 message M_Attribute_Ownership_Acquisition_Notification : merge Message {}
-message M_Request_Attribute_Ownership_Acquisition : merge Message {}
-message M_Request_Attribute_Ownership_Release : merge Message {}
+message M_Request_Attribute_Ownership_Acquisition : merge Message {
+       required ObjectHandle object
+       repeated AttributeHandle attributes
+}
+message M_Request_Attribute_Ownership_Release : merge Message {
+       required ObjectHandle object
+       repeated AttributeHandle attributes
+}
 
 message M_Query_Attribute_Ownership : merge Message {
        required ObjectHandle object
        required AttributeHandle attribute
+}
+
+message M_Inform_Attribute_Ownership : merge Message {
+       required ObjectHandle object
+       required AttributeHandle attribute
        required FederateHandle federate
 }
 
-message M_Inform_Attribute_Ownership : merge Message {}
-message M_Is_Attribute_Owned_By_Federate : merge Message {}
+message M_Is_Attribute_Owned_By_Federate : merge Message {
+       required ObjectHandle object
+       required AttributeHandle attribute
+}
 
 message M_Attribute_Is_Not_Owned : merge Message {
        required ObjectHandle object
@@ -223,7 +239,10 @@
 message M_Attribute_Ownership_Unavailable : merge Message {}
 message M_Unconditional_Attribute_Ownership_Divestiture : merge Message {}
 message M_Attribute_Ownership_Acquisition : merge Message {}
-message M_Cancel_Negotiated_Attribute_Ownership_Divestiture : merge Message {}
+message M_Cancel_Negotiated_Attribute_Ownership_Divestiture : merge Message {
+       required ObjectHandle object
+       repeated AttributeHandle attributes
+}
 message M_Attribute_Ownership_Release_Response : merge Message {}
 message M_Cancel_Attribute_Ownership_Acquisition : merge Message {}
 message M_Confirm_Attribute_Ownership_Acquisition_Cancellation : merge Message 
{}




reply via email to

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