certi-cvs
[Top][All Lists]
Advanced

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

applications/F90HLA demoF90/00Content.txt demoF...


From: certi-cvs
Subject: applications/F90HLA demoF90/00Content.txt demoF...
Date: Mon, 28 Jan 2008 21:44:31 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Eric NOULARD <erk>      08/01/28 21:44:31

Added files:
        F90HLA/demoF90 : 00Content.txt AUTHORS COPYING CMakeLists.txt 
                         00Changes.txt README gpl.txt 
        F90HLA/libF90HLA13: rtiSrvMod.f90 00Changes.txt constantsMod.f90 
                            AUTHORS F90HLA13CERTIWrap.cpp README COPYING 
                            fedSrvMod.f90 
                            F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt 
                            CMakeLists.txt 00Content.txt lesser.txt 
        F90HLA/demoF90/TwoLevelController/controllerFederate: 
                                                              
controllerFederate_wTime.f90 
                                                              fedSrvMod.f90 
                                                              
controllerFederate_woTime.f90 
        F90HLA/demoF90/TwoLevelController/processFederate: fedSrvMod.f90 
                                                           
processFederate_woTime.f90 
                                                           
processFederate_wTime.f90 
        F90HLA/demoF90/TwoLevelController: F90TwoLevelController.fed 

Log message:
        First commit in order to import Christain Stenzel F90HLA module

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/00Content.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/AUTHORS?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/COPYING?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/CMakeLists.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/00Changes.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/README?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/gpl.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/rtiSrvMod.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/00Changes.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/constantsMod.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/AUTHORS?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/F90HLA13CERTIWrap.cpp?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/README?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/COPYING?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/fedSrvMod.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/CMakeLists.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/00Content.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/libF90HLA13/lesser.txt?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/controllerFederate/controllerFederate_wTime.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/controllerFederate/fedSrvMod.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/controllerFederate/controllerFederate_woTime.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/processFederate/fedSrvMod.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/processFederate/processFederate_woTime.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/processFederate/processFederate_wTime.f90?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/applications/F90HLA/demoF90/TwoLevelController/F90TwoLevelController.fed?cvsroot=certi&rev=1.1

Patches:
Index: demoF90/00Content.txt
===================================================================
RCS file: demoF90/00Content.txt
diff -N demoF90/00Content.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/00Content.txt       28 Jan 2008 21:44:28 -0000      1.1
@@ -0,0 +1,23 @@
+(01)  2008-01-18  00Changes.txt
+(02)  2008-01-18  00Content.txt
+(03)  2008-01-18  AUTHORS
+(04)  2008-01-18  CMakeLists.txt
+(05)  2008-01-18  COPYING
+(06)  2008-01-18  gpl.txt
+(07)  2008-01-18  README
+
+(08)  2008-01-18  TwoLevelController
+(08.1)  2008-01-18  controllerFederate
+(08.1.1)  2008-01-18  controllerFederate_woTime.f90
+(08.1.2)  2008-01-18  controllerFederate_wTime.f90
+(08.1.3)  2008-01-18  fedSrvMod.f90
+(08.2)  2008-01-18  processFederate
+(08.2.1)  2008-01-18  fedSrvMod.f90
+(08.2.2)  2008-01-18  processFederate_woTime.f90
+(08.2.3)  2008-01-18  processFederate_wTime.f90
+(08.3)  2008-01-18  F90TwoLevelController.fed
+
+(08.1.1) controller federate without using time management
+(08.1.2) controller federate using time management
+(08.2.2) process federate without using time management
+(08.2.3) process federate using time management

Index: demoF90/AUTHORS
===================================================================
RCS file: demoF90/AUTHORS
diff -N demoF90/AUTHORS
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/AUTHORS     28 Jan 2008 21:44:28 -0000      1.1
@@ -0,0 +1,2 @@
+Christian Stenzel, january 2008
address@hidden

Index: demoF90/COPYING
===================================================================
RCS file: demoF90/COPYING
diff -N demoF90/COPYING
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/COPYING     28 Jan 2008 21:44:28 -0000      1.1
@@ -0,0 +1,18 @@
+Copyright (C) 2008 Christian Stenzel
+
+This file is part of F90HLA13.
+
+F90HLA13 is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as 
+published by the Free Software Foundation, either version 3 of 
+the License, or (at your option) any later version.
+
+F90HLA13 is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public 
+License along with F90HLA13.  
+    
+If not, see <http://www.gnu.org/licenses/>.

Index: demoF90/CMakeLists.txt
===================================================================
RCS file: demoF90/CMakeLists.txt
diff -N demoF90/CMakeLists.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/CMakeLists.txt      28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,106 @@
+#    Copyright (C) 2008 Christian Stenzel
+#
+#    This file is part of F90HLA13.
+#
+#    F90HLA13 is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Lesser General Public License as 
+#    published by the Free Software Foundation, either version 3 of 
+#    the License, or (at your option) any later version.
+#
+#    F90HLA13 is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Lesser General Public License for more details.
+#
+#    You should have received a copy of the GNU Lesser General Public 
+#    License along with F90HLA13.  
+#    
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+#########################################################################
+# CMakeLists.txt for the fortran demo programs 
+#########################################################################
+PROJECT(Demo_Fortran_Wrapper Fortran)
+
+# CERTI requires CMake 2.4.x
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4)
+
+EXEC_PROGRAM(rm ARGS constantsMod.mod.proxy
+                    fedSrvMod.mod.proxy
+                    rtiSrvMod.mod.proxy)
+
+EXEC_PROGRAM(touch ARGS constantsMod.mod.proxy
+                       fedSrvMod.mod.proxy
+                       rtiSrvMod.mod.proxy)
+
+FIND_PATH(INC modF90)
+INCLUDE_DIRECTORIES(${INC}/modF90)
+FIND_LIBRARY(F90_LIB NAMES F90HLA13Modules)
+
+###################################
+# Setup Control Federate
+###################################
+SET(EXE_NAME F90controllerFederate)
+SET(SRC_LIST TwoLevelController/controllerFederate/fedSrvMod.f90
+    TwoLevelController/controllerFederate/controllerFederate_woTime.f90)
+
+###################################
+# Generic CMake library target
+###################################
+ADD_EXECUTABLE(${EXE_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES (${EXE_NAME} ${F90_LIB})
+INSTALL(TARGETS ${EXE_NAME} 
+        RUNTIME DESTINATION bin)
+
+###################################
+# Setup Control Federate with time
+###################################
+SET(EXE_NAME F90TMcontrollerFederate)
+SET(SRC_LIST TwoLevelController/controllerFederate/fedSrvMod.f90
+    TwoLevelController/controllerFederate/controllerFederate_wTime.f90)
+
+###################################
+# Generic CMake library target
+###################################
+ADD_EXECUTABLE(${EXE_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES (${EXE_NAME} ${F90_LIB})
+INSTALL(TARGETS ${EXE_NAME} 
+        RUNTIME DESTINATION bin)
+
+
+###################################
+# Setup Process Federate
+###################################
+SET(EXE_NAME F90processFederate)
+SET(SRC_LIST TwoLevelController/processFederate/fedSrvMod.f90 
+    TwoLevelController/processFederate/processFederate_woTime.f90)
+
+###################################
+# Generic CMake library target
+###################################
+ADD_EXECUTABLE(${EXE_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES (${EXE_NAME} ${F90_LIB})
+INSTALL(TARGETS ${EXE_NAME} 
+        RUNTIME DESTINATION bin)
+
+###################################
+# Setup Process Federate with time
+###################################
+SET(EXE_NAME F90TMprocessFederate)
+SET(SRC_LIST TwoLevelController/processFederate/fedSrvMod.f90 
+    TwoLevelController/processFederate/processFederate_wTime.f90)
+
+###################################
+# Generic CMake library target
+###################################
+ADD_EXECUTABLE(${EXE_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES (${EXE_NAME} ${F90_LIB})
+INSTALL(TARGETS ${EXE_NAME} 
+        RUNTIME DESTINATION bin)
+
+INSTALL(FILES  
+  TwoLevelController/F90TwoLevelController.fed
+  DESTINATION share/federations)
+
+
+MESSAGE(STATUS "*** ${CMAKE_PROJECT_NAME} has been successfully configured 
***")

Index: demoF90/00Changes.txt
===================================================================
RCS file: demoF90/00Changes.txt
diff -N demoF90/00Changes.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/00Changes.txt       28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,2 @@
+18.01.2008 First release of F90HLA13 (v0.1), cs
+Provided demo applications

Index: demoF90/README
===================================================================
RCS file: demoF90/README
diff -N demoF90/README
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/README      28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,10 @@
+This are demo application for the fortran-HLA13 library. The usage
+of library is demonstrated with short fortran programs.
+
+1. get and install cmake (www.cmake.org)
+2. get and install CERTI (www.cert.fr/CERTI) 
+3. get and install libF90HLA13 (www.mb.hs-wismar.de/~stenzel)  
+4. create build_dir, e.g ~/build_libF90HLA13Demo
+5. cd ~/build_libF90HLA13Demo
+6. cmake source_dir
+7. make && sudo make install

Index: demoF90/gpl.txt
===================================================================
RCS file: demoF90/gpl.txt
diff -N demoF90/gpl.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/gpl.txt     28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,340 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.

Index: libF90HLA13/rtiSrvMod.f90
===================================================================
RCS file: libF90HLA13/rtiSrvMod.f90
diff -N libF90HLA13/rtiSrvMod.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/rtiSrvMod.f90   28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,738 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU Lesser General Public License as 
+!    published by the Free Software Foundation, either version 3 of 
+!    the License, or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU Lesser General Public License for more details.
+!
+!    You should have received a copy of the GNU Lesser General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+module rtiSrvMod
+!
+use constantsMod
+!
+implicit none
+!
+contains
+!
+!
+! library specific function 
+!
+  subroutine rtiOn(err)
+
+    implicit none
+    
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+    
+    write(*,*) "Call rtion()"
+    call rtion1(wrapErr)
+    write(*,*) "rtion() called"
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine rtiOn
+!
+!
+  subroutine rtiOff(err)
+
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call rtioff1(wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error ocured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine rtiOff
+!
+!
+! 4. federation management
+!
+! 4.2
+  subroutine createFedExec(fedExecName, FED, err)
+    
+    implicit none
+    
+    character (len=*), intent(in) :: fedExecName, FED
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call createFedExec5(fedExecName, len(fedExecName), &
+                        FED, len(FED), wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+      err = 0
+    else
+      if (wrapErr.eq.FederationExecutionAlreadyExists) then
+        write(*,*) "FederationExecutionAlreadyExists"
+      elseif (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine createFedExec
+!
+! 4.3
+  subroutine destroyFedExec(fedExecName, err)
+    
+    implicit none
+    
+    character (len=*), intent(in) :: fedExecName
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call destroyFedExec3(fedExecName, len(fedExecName), wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.eq.FederationExecutionDoesNotExist) then
+        write(*,*) "FederationExecutionDoesNotExist"
+      elseif (wrapErr.eq.FederatesCurrentlyJoined) then
+        write(*,*) "FederatesCurrentlyJoined"
+      elseif (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine destroyFedExec
+!
+! 4.4
+  subroutine joinFedExec(fedName, fedExecName, ret, err)
+
+    implicit none
+
+    character (len=*), intent(in) :: fedName, fedExecName
+    integer, intent(out) :: ret 
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call joinFedExec6(fedName, len(fedName), fedExecName, len(fedExecName), &
+                      ret, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+    end subroutine joinFedExec
+!
+! 4.5
+  subroutine resignFedExec(resignAction, err)
+
+    implicit none
+    
+    integer, intent(in) :: resignAction
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call resignFedExec2(resignAction, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine resignFedExec 
+!
+! 4.6
+  subroutine registerFedSyncPoint(label, tag, fedHdlSet, err)
+
+    implicit none 
+
+    character (len=*), intent(in) :: label, tag
+    integer, dimension(:), intent(in), optional :: fedHdlSet
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    if (present(fedHdlSet)) then
+      call registerFedSyncPoint7(label, len(label), tag, len(tag), &
+                                 fedHdlSet, size(fedHdlSet), wrapErr)
+    else
+      call registerFedSyncPoint5(label, len(label), tag, len(tag), &
+                                 wrapErr)
+    end if
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine registerFedSyncPoint
+!
+! 4.9 
+  subroutine syncPointAchieved(label, err)
+
+    implicit none
+
+    character (len=*), intent(in) :: label
+    integer, intent(out), optional :: err
+    
+    integer :: wrapErr = 0
+   
+    call syncPointAchieved3(label, len(label), wrapErr) 
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine syncPointAchieved
+!
+!
+! 4.11
+  subroutine requestFedSave(label, time, err)
+
+    implicit none
+
+    character (len=*), intent(in) :: label
+    real (kind=8), intent(in), optional :: time
+    integer, intent(out), optional :: err
+    
+    integer :: wrapErr = 0
+
+    if (present(time)) then
+      call requestFedSave4(label, len(label), time, wrapErr)
+    else
+      call requestFedSave3(label, len(label), wrapErr)
+    end if
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine requestFedSave
+!
+!
+! 4.13
+  subroutine fedSaveBegun(err)
+    
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call fedSaveBegun1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine fedSaveBegun
+!
+!
+! 4.14
+  subroutine fedSaveComplete(err)
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call fedSaveComplete1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine fedSaveComplete
+!
+!
+! 4.14
+  subroutine fedSaveNotComplete(err)
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call fedSaveNotComplete1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine fedSaveNotComplete
+!
+!
+! 4.16
+  subroutine requestFedRestore(label, err)
+
+    implicit none
+
+    character (len=*), intent(in) :: label
+    integer, intent(out), optional :: err
+    
+    integer :: wrapErr = 0
+   
+    call requestFedRestore3(label, len(label), wrapErr) 
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine requestFedRestore 
+!
+!
+! 4.20
+  subroutine fedRestoreComplete(err)
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call fedRestoreComplete1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine fedRestoreComplete
+!
+!
+! 4.20
+  subroutine fedRestoreNotComplete(err)
+
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call fedRestoreNotComplete1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine fedRestoreNotComplete
+!
+!
+! 5. Declaration Management
+!
+!
+! 5.2
+  subroutine publishObjClass(objClassHdl, attrList, err)
+
+    implicit none
+
+    integer, intent(in) :: objClassHdl
+    integer, dimension(:), intent(in) :: attrList
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call publishObjClass4(objClassHdl, attrList, size(attrList), wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine publishObjClass
+!
+! 5.6
+  subroutine subscribeObjClassAttr(objClassHdl, attrList, err)
+
+    implicit none
+
+    integer, intent(in) :: objClassHdl
+    integer, dimension(:), intent(in) :: attrList
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call subscribeObjClassAttr4(objClassHdl, attrList, size(attrList), wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine subscribeObjClassAttr
+!
+!
+! 6. Object Management
+!
+!
+! 6.4
+  subroutine registerObjInst(objClassHdl, theObjInstName, ret, err)
+    
+    implicit none
+    
+    integer, intent(in) :: objClassHdl    
+    character (len=*), intent(in), optional :: theObjInstName
+    integer, intent(out) :: ret 
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+    
+    if (present(theObjInstName)) then
+      call registerObjInst5(objClassHdl, theObjInstName, len(TheObjInstName), &
+                            ret, wrapErr)
+    else
+      call registerObjInst3(objClassHdl, ret, wrapErr)
+    end if
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+  
+  end subroutine registerObjInst
+!
+!
+! 6.6
+  subroutine updateAttrVals(objHdl, attrHdl, attrVals, tag, &
+                            logTime, ret1, ret2, err) 
+    
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: attrHdl
+    real (kind=8), dimension(:), intent(in) :: attrVals
+    character (len=*), intent(in) :: tag
+    real (kind=8), intent(in), optional :: logTime 
+    integer, intent(out), optional :: ret1
+    integer, intent(out), optional :: ret2
+    integer, intent(out), optional :: err
+    
+    integer :: wrapErr = 0
+    integer :: wrapRet1 = 0
+    integer :: wrapRet2 = 0
+   
+!    write(*,*) objInstHdl
+!    write(*,*) attrHdl
+!    write(*,*) attrVals 
+!    write(*,*) userSuppliedTag
+!    write(*,*) logTime 
+
+    if (present(logTime)) then
+      call updateAttrVals10(objHdl, attrHdl, attrVals, size(attrVals), &
+                            tag, len(tag), logTime, &
+                            wrapRet1, wrapRet2, wrapErr) 
+    else
+      call updateAttrVals7(objHdl, attrHdl, attrVals, size(attrVals), &
+                           tag, len(tag), wrapErr) 
+    end if
+
+    if (present(ret1)) then
+      ret1 = wrapRet1;
+    end if
+
+    if (present(ret2)) then
+      ret1 = wrapRet2;
+    end if
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine updateAttrVals
+!
+!
+! 8. Time Management
+!
+!
+! 8.2
+  subroutine enableTimeReg(fedTime, lookAhead, err) 
+    
+    implicit none
+
+    real (kind=8), intent(in) :: fedTime 
+    real (kind=8), intent(in) :: lookAhead
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call enableTimeReg3(fedTime, lookAhead, wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine enableTimeReg
+!
+! 8.5
+  subroutine enableTimeCons(err) 
+    
+    implicit none
+
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call enableTimeCons1(wrapErr)
+    
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine enableTimeCons
+!
+! 8.8
+  subroutine timeAdvReq(time, err) 
+
+    implicit none
+
+    real (kind=8), intent(in) :: time
+    integer, intent(out), optional :: err 
+    
+    integer :: wrapErr = 0
+    
+    call timeAdvReq2(time, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine timeAdvReq
+!
+!
+! 8.14
+  subroutine enableAsyncDeliv(err)
+    
+    implicit none
+
+    integer, intent(out), optional :: err 
+    
+    integer :: wrapErr = 0
+    
+    call enableAsyncDeliv1(wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine enableAsyncDeliv
+    
+!
+! 10. Ancillary Services
+!
+! 
+  subroutine tick_1(ret, err)
+    
+    implicit none
+    
+    logical, intent(out) :: ret 
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+        
+    call tick2(ret, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine tick_1
+
+  subroutine tick_2(minTick, maxTick, ret, err)
+
+    implicit none
+    
+    real (kind=8), intent(in) :: minTick
+    real (kind=8), intent(in) :: maxTick
+    
+    logical, intent(out) :: ret 
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+        
+    call tick4(minTick, maxTick, ret, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+  end subroutine tick_2
+!
+!
+! 10.2
+  subroutine getObjClassHdl(theName, ret, err)
+    
+    implicit none
+
+    character (len=*), intent(in) :: theName
+    integer, intent(out) :: ret
+    integer, intent(out), optional :: err
+
+    integer :: wrapErr = 0
+
+    call getObjClassHdl4(theName, len(theName), ret, wrapErr)
+
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+    end subroutine getObjClassHdl
+!
+!
+!
+! 10.4
+  subroutine getAttrHdl(objClassHdl, theAttrName, ret, err)
+    
+    implicit none
+
+    integer, intent(in) :: objClassHdl 
+    character (len=*), intent(in) :: theAttrName
+    integer, intent(out) :: ret
+    integer, intent(out), optional :: err
+    
+    integer :: wrapErr = 0
+
+    call getAttrHdl5(objClassHdl, theAttrName, len(theAttrName), ret, wrapErr)
+   
+    if (present(err)) then
+      err = wrapErr
+    else
+      if (wrapErr.lt.0) then
+        write(*,*) "Error occured. Errorcode = ", wrapErr
+        stop "Terminating."
+      end if
+    end if
+
+    end subroutine getAttrHdl
+!
+end module rtiSrvMod

Index: libF90HLA13/00Changes.txt
===================================================================
RCS file: libF90HLA13/00Changes.txt
diff -N libF90HLA13/00Changes.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/00Changes.txt   28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1 @@
+18.01.2008 First release of F90HLA13 (v0.1), cs

Index: libF90HLA13/constantsMod.f90
===================================================================
RCS file: libF90HLA13/constantsMod.f90
diff -N libF90HLA13/constantsMod.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/constantsMod.f90        28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,114 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU Lesser General Public License as 
+!    published by the Free Software Foundation, either version 3 of 
+!    the License, or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU Lesser General Public License for more details.
+!
+!    You should have received a copy of the GNU Lesser General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+module constantsMod
+!
+implicit none
+!
+! Resign Actions
+!
+integer, parameter :: RELEASE_ATTRIBUTES                                = 1
+integer, parameter :: DELETE_OBJECTS                                    = 2
+integer, parameter :: DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES             = 3
+integer, parameter :: NO_ACTION                                         = 4
+!
+!
+! Exceptions
+!
+integer, parameter :: ArrayIndexOutOfBounds                            =  -1
+integer, parameter :: AsynchronousDeliveryAlreadyDisabled              =  -2
+integer, parameter :: AsynchronousDeliveryAlreadyEnabled               =  -3
+integer, parameter :: AttributeAcquisitionWasNotRequested              =  -4
+integer, parameter :: AttributeAcquisitionWasNotCanceled               =  -5
+integer, parameter :: AttributeAlreadyBeingAcquired                    =  -6   
+integer, parameter :: AttributeAlreadyBeingDivested                    =  -7   
+integer, parameter :: AttributeAlreadyOwned                            =  -8   
+integer, parameter :: AttributeDivestitureWasNotRequested               =  -9  
+integer, parameter :: AttributeNotDefined                              = -10
+integer, parameter :: AttributeNotKnown                                = -11 
+integer, parameter :: AttributeNotOwned                                        
= -12
+integer, parameter :: AttributeNotPublished                            = -13
+integer, parameter :: ConcurrentAccessAttempted                         = -14
+integer, parameter :: CouldNotDiscover                                 = -15
+integer, parameter :: CouldNotOpenFED                                  = -16
+integer, parameter :: CouldNotRestore                                  = -17
+integer, parameter :: DeletePrivilegeNotHeld                           = -18
+integer, parameter :: DimensionNotDefined                              = -19
+integer, parameter :: EnableTimeConstrainedPending                      = -20
+integer, parameter :: EnableTimeConstrainedWasNotPending                = -21
+integer, parameter :: EnableTimeRegulationPending                       = -22
+integer, parameter :: EnableTimeRegulationWasNotPending                 = -23
+integer, parameter :: ErrorReadingFED                                   = -24
+integer, parameter :: EventNotKnown                                     = -25
+integer, parameter :: FederateAlreadyExecutionMember                   = -26
+integer, parameter :: FederateInternalError                            = -27
+integer, parameter :: FederateLoggingServiceCalls                       = -28
+integer, parameter :: FederateNotExecutionMember                       = -29
+integer, parameter :: FederateOwnsAttributes                           = -30
+integer, parameter :: FederateWasNotAskedToReleaseAttribute             = -31  
+integer, parameter :: FederatesCurrentlyJoined                         = -32
+integer, parameter :: FederationExecutionAlreadyExists                 = -33
+integer, parameter :: FederationExecutionDoesNotExist                  = -34
+integer, parameter :: FederationTimeAlreadyPassed                      = -35
+integer, parameter :: HandleValuePairMaximumExceeded                   = -36
+integer, parameter :: InteractionClassNotDefined                       = -37
+integer, parameter :: InteractionClassNotKnown                         = -38
+integer, parameter :: InteractionClassNotPublished                     = -39
+integer, parameter :: InteractionClassNotSubscribed                    = -40
+integer, parameter :: InteractionParameterNotDefined                   = -41
+integer, parameter :: InteractionParameterNotKnown                     = -42
+integer, parameter :: InvalidExtents                                   = -43
+integer, parameter :: InvalidFederationTime                            = -44
+integer, parameter :: InvalidHandleValuePairSetContext                 = -45
+integer, parameter :: InvalidLookahead                                 = -46
+integer, parameter :: InvalidOrderingHandle                            = -47
+integer, parameter :: InvalidRegionContext                             = -48
+integer, parameter :: InvalidResignAction                               = -49
+integer, parameter :: InvalidRetractionHandle                          = -50
+integer, parameter :: InvalidTransportationHandle                      = -51
+integer, parameter :: MemoryExhausted                                  = -52
+integer, parameter :: NameNotFound                                             
= -53
+integer, parameter :: ObjectClassNotDefined                            = -54
+integer, parameter :: ObjectClassNotKnown                              = -55
+integer, parameter :: ObjectClassNotPublished                          = -56
+integer, parameter :: ObjectClassNotSubscribed                         = -57
+integer, parameter :: ObjectNotKnown                                   = -58
+integer, parameter :: ObjectAlreadyRegistered                          = -59
+integer, parameter :: OwnershipAcquisitionPending                      = -60
+integer, parameter :: RegionInUse                                      = -61
+integer, parameter :: RegionNotKnown                                   = -62
+integer, parameter :: RestoreInProgress                                        
= -63
+integer, parameter :: RestoreNotRequested                              = -64
+integer, parameter :: RTIinternalError                                 = -65
+integer, parameter :: SpaceNotDefined                                  = -66
+integer, parameter :: SaveInProgress                                   = -67
+integer, parameter :: SaveNotInitiated                                 = -68
+integer, parameter :: SpecifiedSaveLabelDoesNotExist                   = -69
+integer, parameter :: SynchronizationPointLabelNotAnnounced            = -70
+integer, parameter :: TimeAdvanceAlreadyInProgress                     = -71
+integer, parameter :: TimeAdvanceWasNotInProgress                      = -72
+integer, parameter :: TimeConstrainedAlreadyEnabled                    = -73
+integer, parameter :: TimeConstrainedWasNotEnabled                     = -74
+integer, parameter :: TimeRegulationAlreadyEnabled                     = -75
+integer, parameter :: TimeRegulationWasNotEnabled                      = -76
+integer, parameter :: UnableToPerformSave                              = -77
+integer, parameter :: ValueCountExceeded                               = -78
+integer, parameter :: ValueLengthExceeded                              = -79
+!
+end module constantsMod

Index: libF90HLA13/AUTHORS
===================================================================
RCS file: libF90HLA13/AUTHORS
diff -N libF90HLA13/AUTHORS
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/AUTHORS 28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,2 @@
+Christian Stenzel, january 2008
address@hidden

Index: libF90HLA13/F90HLA13CERTIWrap.cpp
===================================================================
RCS file: libF90HLA13/F90HLA13CERTIWrap.cpp
diff -N libF90HLA13/F90HLA13CERTIWrap.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/F90HLA13CERTIWrap.cpp   28 Jan 2008 21:44:29 -0000      1.1
@@ -0,0 +1,2402 @@
+/*
+    Copyright (C) 2008 Christian Stenzel
+
+    This file is part of F90HLA13.
+
+    F90HLA13 is free software: you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as 
+    published by the Free Software Foundation, either version 3 of 
+    the License, or (at your option) any later version.
+
+    F90HLA13 is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public 
+    License along with F90HLA13.  
+    
+    If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifdef __INTEL_COMPILER
+#pragma warning(disable : 383)
+#pragma warning(disable : 592)
+#pragma warning(disable : 810)
+#pragma warning(disable : 869)
+#pragma warning(disable : 981)
+#pragma warning(disable : 1418)
+#pragma warning(disable : 1419)
+#pragma warning(disable : 1469)
+#endif
+
+#include <iostream>
+#include <sstream>
+#include <string>
+#include <netinet/in.h>
+
+#include <RTI.hh>
+#include <fedtime.hh>
+#include <NullFederateAmbassador.hh>
+
+#if defined __INTEL_COMPILER
+
+// symbols federate services (Intel)
+
+// federation management
+
+#define _F90syncPointRegSucceeded fedsrvmod_mp_syncpointregsucceeded_
+#define _F90syncPointRegFailed fedsrvmod_mp_syncpointregfailed_
+#define _F90announceSyncPoint fedsrvmod_mp_announcesyncpoint_
+#define _F90fedSynchronized fedsrvmod_mp_fedsynchronized_
+#define _F90initFedSave fedsrvmod_mp_initfedsave_
+#define _F90fedSaved fedsrvmod_mp_fedsaved_
+#define _F90fedNotSaved fedsrvmod_mp_fednotsaved_
+#define _F90requestFedResSucceeded fedsrvmod_mp_requestfedressucceeded_
+#define _F90requestFedResFailed fedsrvmod_mp_requestfedresfailed_
+#define _F90fedResBegun fedsrvmod_mp_fedresbegun_
+#define _F90initFedRes fedsrvmod_mp_initfedres_
+#define _F90fedRestored fedsrvmod_mp_fedrestored_
+#define _F90fedNotRestored fedsrvmod_mp_fednotrestored_
+
+// declaration management
+
+#define _F90startRegForObjClass fedsrvmod_mp_startregforobjclass_
+#define _F90stopRegforObjClass fedsrvmod_mp_stopregforobjclass_
+#define _F90turnInteractOn fedsrvmod_mp_turninteracton_
+#define _F90turnInteractOff fedsrvmod_mp_turninteractoff_
+
+// object management
+
+#define _F90discoverObjInst fedsrvmod_mp_discoverobjinst_
+#define _F90reflectAttrVals fedsrvmod_mp_reflectattrvals_
+#define _F90receiveInteract fedsrvmod_mp_receiveinteract_
+#define _F90removeObjInst fedsrvmod_mp_removeobjinst_
+#define _F90attrInScope fedsrvmod_mp_attrinscope_
+#define _F90attrOutOfScope fedsrvmod_mp_attroutofscope_
+#define _F90provideAttrValUp fedsrvmod_mp_provideattrvalup_
+#define _F90turnUpdatesOnForObjInst fedsrvmod_mp_turnUpdatesOnForObjInst_
+#define _F90turnUpdatesOffForObjInst fedsrvmod_mp_turnUpdatesOffForObjInst_
+
+
+// time management
+
+#define _F90timeRegEnabled fedsrvmod_mp_timeregenabled_
+#define _F90timeConsEnabled fedsrvmod_mp_timeconsenabled_
+#define _F90timeAdvGrant fedsrvmod_mp_timeadvgrant_
+#define _F90requestRetr fedsrvmod_mp_requestretr_
+
+#elif defined __GNUG__
+
+// symbols federate services (GNU)
+
+// federation management
+
+#define _F90syncPointRegSucceeded __fedsrvmod__syncpointregsucceeded
+#define _F90syncPointRegFailed __fedsrvmod__syncpointregfailed
+#define _F90announceSyncPoint __fedsrvmod__announcesyncpoint
+#define _F90fedSynchronized __fedsrvmod__fedsynchronized
+#define _F90initFedSave __fedsrvmod__initfedsave
+#define _F90fedSaved __fedsrvmod__fedsaved
+#define _F90fedNotSaved __fedsrvmod__fednotsaved
+#define _F90requestFedResSucceeded __fedsrvmod__requestfedressucceeded
+#define _F90requestFedResFailed __fedsrvmod__requestfedresfailed
+#define _F90fedResBegun __fedsrvmod__fedresbegun
+#define _F90initFedRes __fedsrvmod__initfedres
+#define _F90fedRestored __fedsrvmod__fedrestored
+#define _F90fedNotRestored __fedsrvmod__fednotrestored
+
+// declaration management
+
+#define _F90startRegForObjClass __fedsrvmod__startregforobjclass
+#define _F90stopRegforObjClass  __fedsrvmod__stopregforobjclass
+#define _F90turnInteractOn __fedsrvmod__turninteracton
+#define _F90turnInteractOff __fedsrvmod__turninteractoff
+
+// object management
+
+#define _F90objInstNameResSucceeded __fedsrvmod__objinstnameressucceeded
+#define _F90objInstNameResFailed __fedsrvmod__objinstnameresfailed
+#define _F90discoverObjInst __fedsrvmod__discoverobjinst
+#define _F90reflectAttrVals __fedsrvmod__reflectattrvals
+#define _F90receiveInteract __fedsrvmod__receiveinteract
+#define _F90removeObjInst __fedsrvmod__removeobjinst
+#define _F90attrInScope __fedsrvmod__attrinscope
+#define _F90attrOutOfScope __fedsrvmod__attroutofscope
+#define _F90provideAttrValUp __fedsrvmod__provideattrvalup
+#define _F90turnUpdatesOnForObjInst __fedsrvmod__turnUpdatesOnForObjInst
+#define _F90turnUpdatesOffForObjInst __fedsrvmod__turnUpdatesOffForObjInst
+
+// time management
+
+#define _F90timeRegEnabled __fedsrvmod__timeregenabled
+#define _F90timeConsEnabled __fedsrvmod__timeconsenabled
+#define _F90timeAdvGrant __fedsrvmod__timeadvgrant
+#define _F90requestRetr __fedsrvmod__requestretr
+
+#endif
+
+// Exceptions
+
+#define __ArrayIndexOutOfBounds                      -1
+#define __AsynchronousDeliveryAlreadyDisabled        -2
+#define __AsynchronousDeliveryAlreadyEnabled         -3
+#define __AttributeAcquisitionWasNotRequested        -4
+#define __AttributeAcquisitionWasNotCanceled         -5
+#define __AttributeAlreadyBeingAcquired              -6
+#define __AttributeAlreadyBeingDivested              -7
+#define __AttributeAlreadyOwned                      -8
+#define __AttributeDivestitureWasNotRequested        -9
+#define __AttributeNotDefined                       -10
+#define __AttributeNotKnown                         -11
+#define __AttributeNotOwned                         -12
+#define __AttributeNotPublished                     -13
+#define __ConcurrentAccessAttempted                 -14
+#define __CouldNotDiscover                          -15
+#define __CouldNotOpenFED                           -16
+#define __CouldNotRestore                           -17
+#define __DeletePrivilegeNotHeld                    -18
+#define __DimensionNotDefined                       -19
+#define __EnableTimeConstrainedPending              -20
+#define __EnableTimeConstrainedWasNotPending        -21
+#define __EnableTimeRegulationPending               -22
+#define __EnableTimeRegulationWasNotPending         -23
+#define __ErrorReadingFED                           -24
+#define __EventNotKnown                             -25
+#define __FederateAlreadyExecutionMember            -26
+#define __FederateInternalError                     -27
+#define __FederateLoggingServiceCalls               -28
+#define __FederateNotExecutionMember                -29
+#define __FederateOwnsAttributes                    -30
+#define __FederateWasNotAskedToReleaseAttribute     -31
+#define __FederatesCurrentlyJoined                  -32
+#define __FederationExecutionAlreadyExists          -33
+#define __FederationExecutionDoesNotExist           -34
+#define __FederationTimeAlreadyPassed               -35
+#define __HandleValuePairMaximumExceeded            -36
+#define __InteractionClassNotDefined                -37
+#define __InteractionClassNotKnown                  -38
+#define __InteractionClassNotPublished              -39
+#define __InteractionClassNotSubscribed             -40
+#define __InteractionParameterNotDefined            -41
+#define __InteractionParameterNotKnown              -42
+#define __InvalidExtents                            -43
+#define __InvalidFederationTime                     -44
+#define __InvalidHandleValuePairSetContext          -45
+#define __InvalidLookahead                          -46
+#define __InvalidOrderingHandle                     -47
+#define __InvalidRegionContext                      -48
+#define __InvalidResignAction                       -49
+#define __InvalidRetractionHandle                   -50
+#define __InvalidTransportationHandle               -51
+#define __MemoryExhausted                           -52
+#define __NameNotFound                              -53
+#define __ObjectClassNotDefined                     -54
+#define __ObjectClassNotKnown                       -55
+#define __ObjectClassNotPublished                   -56
+#define __ObjectClassNotSubscribed                  -57
+#define __ObjectNotKnown                            -58
+#define __ObjectAlreadyRegistered                   -59
+#define __OwnershipAcquisitionPending               -60
+#define __RegionInUse                               -61
+#define __RegionNotKnown                            -62
+#define __RestoreInProgress                         -63
+#define __RestoreNotRequested                       -64
+#define __RTIinternalError                          -65
+#define __SpaceNotDefined                           -66
+#define __SaveInProgress                            -67
+#define __SaveNotInitiated                          -68
+#define __SpecifiedSaveLabelDoesNotExist            -69
+#define __SynchronizationPointLabelWasNotAnnounced  -70
+#define __TimeAdvanceAlreadyInProgress              -71
+#define __TimeAdvanceWasNotInProgress               -72
+#define __TimeConstrainedAlreadyEnabled             -73
+#define __TimeConstrainedWasNotEnabled              -74
+#define __TimeRegulationAlreadyEnabled              -75
+#define __TimeRegulationWasNotEnabled               -76
+#define __UnableToPerformSave                       -77
+#define __ValueCountExceeded                        -78
+#define __ValueLengthExceeded                       -79
+
+extern "C" {
+
+    void rtion1_(int*);     // error
+    void rtioff1_(int*);    // error
+
+    /////////////////////////////////////
+    // RTI services                    //
+    /////////////////////////////////////
+
+
+    /////////////////////////////////////
+    // federation management (4)       //
+    /////////////////////////////////////
+
+    // 4.2
+    extern void
+        createfedexec5_(const char*, const int*,   // fedExecName
+                        const char*, const int*,   // path2FDD
+                        int*);                     // error
+
+    // 4.3
+    extern void
+        destroyfedexec3_(const char*, const int*,   // fedExecName
+                         int*);                     // error
+
+    // 4.4
+    extern void
+        joinfedexec6_(const char*, const int*,  // fedType
+                      const char*, const int*,  // fedExecName
+                      int*,                     // fedHdl (retVal)
+                      int*);                    // error
+
+    // 4.5
+    extern void
+        resignfedexec2_(const int*,    // resignAction
+                        int*);         // error
+
+    // 4.6
+    extern void
+        registerfedsyncpoint5_(const char*, const int*, // label
+                               const char*, const int*, // theTag
+                               int*);                   // error
+
+    extern void
+        registerfedsyncpoint7_(const char*, const int*, // label
+                               const char*, const int*, // theTag
+                               const int*, const int*,  // fedHdlSet
+                               int*);                   // error
+
+    // 4.9
+    extern void
+        syncpointachieved3_(const char*, const int*,  // label
+                            int*);                    // error
+
+    // 4.11
+    extern void
+        requestfedsave3_(const char*, const int*,  // label
+                         int*);                    // error
+
+    extern void
+        requestfedsave4_(const char*, const int*,  // label
+                         const double*,            // theTime
+                         int*);                    // error
+
+    // 4.13
+    extern void
+        fedsavebegun1_(int*);          // error
+
+    // 4.14
+    extern void
+        fedsavecomplete1_(int*);       // error
+
+    extern void
+        fedsavenotcomplete1_(int*);    // error
+
+    // 4.16
+    extern void
+        requestfedrestore3_(const char*, const int*,  // label
+                            int*);                    // error
+
+    // 4.20
+    extern void
+        fedrestorecomplete1_(int*);    // error
+
+    extern void
+        fedrestorenotcomplete1_(int*);  // error
+    
+    /////////////////////////////////////
+    // declaration management (5)      //
+    /////////////////////////////////////
+    
+    // 5.2
+    extern void 
+       publishobjclass4_(const int*,                     // ObjClassHdl
+                          const int*, const int*,         // AttrHdlSet
+                          int*);                          // error
+
+    // 5.6
+    extern void
+       subscribeobjclassattr4_(const int*,                   // ObjClassHdl
+                                const int*, const int*,       // AttrHdlSet
+                                int*);                        // error
+    
+    /////////////////////////////////////
+    // object management (6)           //
+    /////////////////////////////////////
+    
+    // 6.2
+    extern void
+       registerobjinst3_(const int*,                   // theClass
+                         int*,                         // ObjHdl (retVal)
+                         int*);                        // error
+
+    extern void
+       registerobjinst5_(const int*,                   // theClass
+                         const char*, const int*,      // theObject
+                         int*,                         // ObjHdl (retVal)
+                         int*);                        // error
+
+    
+    // 6.6
+    extern void
+    updateattrvals7_(const int*,                               // ObjInstHdl 
+                    const int*, const double*, const int*,     // AttrValMap 
+                    const char*, const int*,                   // 
UserSuppliedTag
+                    int*);                                     // error
+  
+    extern void
+    updateattrvals10_(const int*,                              // ObjInstHdl
+                     const int*, const double*, const int*,    // AttrValMap
+                     const char*, const int*,                  // 
UserSuppliedTag
+                     const double*,                            // logTime
+                     int*,                                     // 
EventRetrHdl.Serial (retVal)
+                     int*,                                     // 
EventRetrHdl.sendingFederate (retVal)
+                     int*);                                    // error
+    
+    /////////////////////////////////////
+    // time management (8)             //
+    /////////////////////////////////////
+    
+    // 8.2
+    extern void
+    enabletimereg3_(const double*,     // theFederateTime
+                   const double*,      // theLookahead
+                   int*);              // error
+
+    // 8.5
+    extern void
+    enabletimecons1_(int*);            // error
+
+    // 8.8
+    extern void
+    timeadvreq2_(const double*,                // theTime
+                int *);                // error
+
+    // 8.14
+    extern void
+    enableasyncdeliv1_(int*);          // error
+
+
+    /////////////////////////////////////
+    // ancillary services              //
+    /////////////////////////////////////
+
+    extern void
+    tick2_(bool*,                      // bool (retVal)                        
+          int*);                      // error
+
+    extern void
+    tick4_(double*,                    // tickMinTime
+           double*,                    // tickMaxTime
+          bool*,                      // bool (retVal)
+          int*);                      // error
+
+    // 10.2
+    extern void
+    getobjclasshdl4_(const char*, const int*,          // ObjClassName
+                    int*,                              // ObjClassHdl (retVal)
+                    int*);                             // error
+
+    // 10.4
+    extern void
+    getattrhdl5_(const int*,                           // ObjClassHdl
+                const char*, const int*,               // attrName
+                int*,                                  // attrHdl (retVal)
+                int*);                                 // error
+
+    /////////////////////////////////////
+    // federate services               //
+    /////////////////////////////////////
+
+
+    /////////////////////////////////////
+    // federation management (4)       //
+    /////////////////////////////////////
+
+    // 4.7
+    extern void
+        _F90syncPointRegSucceeded(const char*, const int*, //label
+                                  int*);                   //error
+    extern void
+        _F90syncPointRegFailed(const char*, const int*,    //label
+                               int*);                      //error
+
+    // 4.8
+    extern void
+        _F90announceSyncPoint(const char*, const int*, // label
+                              const char*, const int*, // tag
+                              int*);                   // error
+
+    // 4.10
+    extern void
+        _F90fedSynchronized(const char*, const int*, // label
+                            int*);                   // error
+
+    // 4.12
+    extern void
+        _F90initFedSave(const char*, const int*, // label
+                        int*);                   // error
+
+    // 4.15
+    extern void
+        _F90fedSaved(int*);       // error
+
+    extern void
+        _F90fedNotSaved(int*);    // error
+
+    // 4.17
+    extern void
+        _F90requestFedResSucceeded(const char*, const int*,// label
+                                   int*);                  // error
+    extern void
+        _F90requestFedResFailed(const char*, const int*,   // label
+                                const char*, const int*,   // reason
+                                int*);                     // error
+
+    // 4.18
+    extern void
+        _F90fedResBegun(int*);   // error
+
+    // 4.19
+    extern void
+        _F90initFedRes(const char*, const int*, // label
+                       const int*,              // fedHdl
+                       int*);                   // error
+
+    // 4.21
+    extern void
+        _F90fedRestored(int*);      // error
+
+    extern void
+        _F90fedNotRestored(int*);   // error
+    
+    
+    /////////////////////////////////////
+    // object management (6)           //
+    /////////////////////////////////////
+    
+    // 6.3
+    extern void
+    _F90discoverObjInst(const int*,                    // ObjHdl
+                       const int*,                     // ObjClassHdl
+                       const char*, const int*,        // ObjName
+                       int*);                          // error
+
+    
+    // 6.7
+    extern void
+    _F90reflectAttrVals(const int*,                            // ObjHdl
+                       const int*, const double*, const int*,  // 
AttrHdlValPairSet
+                       const double*,                          // theTime
+                       const char*, const int*,                // theTag
+                       const int*,                             // 
EventRetrHdl.Serial
+                       const int*,                             // 
EventRetrHdl.sendingFederate
+                       int*);                                  // error
+    
+    /////////////////////////////////////
+    // time management (8)             //
+    /////////////////////////////////////
+
+    // 8.13
+    extern void
+    _F90timeAdvGrant(const double*,    // theTime
+                    int*);             // error
+
+}
+
+using std::string;
+using std::cout;
+using std::cerr;
+using std::endl;
+using std::auto_ptr;
+
+/////////////////////////////////////
+// conversions                    //
+/////////////////////////////////////
+
+void
+charArray2String(string &dest, const char* src, unsigned int size) {
+    dest.resize(size);
+    for (string::size_type i = 0; i < size; i++) {
+        dest[i] = static_cast<unsigned char>(src[i]);
+    }
+    dest[size] = '\0';
+}
+
+int
+fedHdl2Int(RTI::FederateHandle fedHdl) {
+    return static_cast<int>(fedHdl);
+}
+
+int
+objClassHdl2Int(RTI::ObjectClassHandle objClassHdl) {
+    return static_cast<int>(objClassHdl);
+}
+
+int
+objHdl2Int(RTI::ObjectHandle objHdl) {
+    return static_cast<int>(objHdl);
+}
+
+int
+attrHdl2Int(RTI::AttributeHandle attrHdl) {
+    return static_cast<int>(attrHdl);
+}
+
+void
+eventRetrHdl2Int(RTI::EventRetractionHandle eventHdl, int *ret1, int *ret2) {
+    *ret1 = static_cast<int>(eventHdl.theSerialNumber);
+    *ret2 = static_cast<int>(eventHdl.sendingFederate);
+}
+
+/////////////////////////////////////
+// net conversions                //
+/////////////////////////////////////
+
+double
+double2net (double dval) {
+        double tmp;
+
+        *((long*)&tmp) = htonl(*(((long*)&dval) +1 ));
+        *(((long*)&tmp) + 1) = htonl(*((long*)&dval));
+        return tmp;
+}
+
+double
+net2double (double dval) {
+        long tmp;
+
+        tmp = ntohl(*(long*)&dval);
+        *(long*)&dval = ntohl(*(((long*)&dval) + 1));
+        *(((long*)&dval)+1) = tmp;
+        return dval;
+}
+
+/////////////////////////////////////
+// federate ambassador             //
+/////////////////////////////////////
+
+class F90FedAmbassador : public NullFederateAmbassador {
+
+public:
+    F90FedAmbassador() : NullFederateAmbassador() {}
+
+    ~F90FedAmbassador() throw() {}
+
+    /////////////////////////////////////
+    // federation management (6)       //
+    /////////////////////////////////////
+    
+    // 4.7
+    void
+    synchronizationPointRegistrationSucceeded(const char *label)
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+
+        _F90syncPointRegSucceeded(theLabel.c_str(), &lenLabel, &err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: syncPointRegSucceeded")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+        }
+    }
+
+    void
+    synchronizationPointRegistrationFailed(const char *label)
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+
+        _F90syncPointRegFailed(theLabel.c_str(), &lenLabel, &err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: syncPointRegFailed")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+        }
+    }
+
+    // 4.8
+    void
+    announceSynchronizationPoint(const char *label,
+                                 const char *tag)
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+
+        string theLabel(label), theTag(tag);
+
+        int lenLabel = theLabel.size();
+        int lenTag   = theTag.size();
+
+
+        _F90announceSyncPoint(theLabel.c_str(), &lenLabel,
+                              theTag.c_str(), &lenTag,
+                              &err);
+
+        switch (err) {
+        case 0:
+            break;
+        case __FederateInternalError:
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: announceSynchronizationPoint")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+        }
+    }
+
+    // 4.10
+    void
+    federationSynchronized(const char *label)
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+
+        _F90fedSynchronized(theLabel.c_str(), &lenLabel, &err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationSynchronized")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+        }
+    }
+
+    // 4.12
+    void
+    initiateFederateSave(const char *label)
+    throw (RTI::FederateInternalError,
+          RTI::UnableToPerformSave) {
+        
+       int err = 0;
+
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+
+        _F90initFedSave(theLabel.c_str(), &lenLabel, &err);
+        
+       switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: initiateFederateSave")
+                  );
+            break;
+        case __UnableToPerformSave :
+            throw (RTI::UnableToPerformSave(
+                       __UnableToPerformSave,
+                       "Federation Management: initiateFederateSave")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+        }
+    }
+
+    // 4.15
+    void
+    federationSaved()
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+       _F90fedSaved(&err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationSaved")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+    
+    void
+    federationNotSaved()
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+       _F90fedNotSaved(&err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationNotSaved")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    // 4.17
+    void
+    requestFederationRestoreSucceeded(const char *label) 
+    throw (RTI::FederateInternalError) {
+        
+       int err = 0;
+
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+
+        _F90requestFedResSucceeded(theLabel.c_str(), &lenLabel, &err);
+        
+       switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: requestFedRestoreSucceeded")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    void
+    requestFederationRestoreFailed(const char *label,
+                                  const char *reason) 
+    throw (RTI::FederateInternalError) {
+        
+       int err = 0;
+
+        string theLabel(label), theReason(reason);
+        int lenLabel = theLabel.size(), lenReason = theReason.size();
+
+        _F90requestFedResFailed(theLabel.c_str(), &lenLabel, 
+                               theReason.c_str(), &lenReason,
+                               &err);
+        
+       switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: requestFedRestoreSucceeded")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    // 4.18
+    void
+    federationRestoreBegun() 
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+       _F90fedResBegun(&err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationRestoreBegun")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    // 4.19
+    void
+    initiateFederateRestore(const char *label,
+                           RTI::FederateHandle handle) 
+    throw (RTI::SpecifiedSaveLabelDoesNotExist,
+           RTI::CouldNotRestore,
+           RTI::FederateInternalError) {
+
+        int err = 0;
+        string theLabel(label);
+        int lenLabel = theLabel.size();
+       int fedHdl = fedHdl2Int(handle);
+
+       _F90initFedRes(theLabel.c_str(), &lenLabel,
+                      &fedHdl,
+                      &err);
+
+       switch (err) {
+       case 0 :
+           break;
+       case __CouldNotRestore :
+           throw (RTI::CouldNotRestore(
+                       __CouldNotRestore,
+                       "Federation Management: initiateFederateRestore")
+                 );
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                        __FederateInternalError,
+                       "Federation Management: initiateFederateRestore")
+                  );
+           break;
+       case __SpecifiedSaveLabelDoesNotExist : 
+           throw (RTI::SpecifiedSaveLabelDoesNotExist(
+                       __SpecifiedSaveLabelDoesNotExist,
+                       "Federation Management: initiateFederateRestore")
+                 );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    // 4.21
+    void
+    federationRestored()
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+       _F90fedRestored(&err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationRestored")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+
+    void
+    federationNotRestored()
+    throw (RTI::FederateInternalError) {
+
+        int err = 0;
+
+       _F90fedNotRestored(&err);
+
+        switch (err) {
+        case 0 :
+            break;
+        case __FederateInternalError :
+            throw (RTI::FederateInternalError(
+                       __FederateInternalError,
+                       "Federation Management: federationNotRestored")
+                  );
+            break;
+        default:
+            cerr << "Unknown Exception" << endl;
+            break;
+       }
+    }
+    
+    /////////////////////////////////////
+    // object management (6)           //
+    /////////////////////////////////////
+    
+    // 6.3
+    void
+    discoverObjectInstance(
+       RTI::ObjectHandle theObject,
+       RTI::ObjectClassHandle theObjectClass,
+       const char* theObjectName)
+    throw (
+       RTI::CouldNotDiscover,
+       RTI::FederateInternalError,
+       RTI::ObjectClassNotKnown
+    ) {
+       int err = 0;
+       int objHdl;
+       int objClassHdl;
+       string objName(theObjectName);
+       int lenObjName = objName.size();
+
+       objHdl = objHdl2Int(theObject);
+       objClassHdl = objClassHdl2Int(theObjectClass);
+
+       cout << "DiscoverObjInst" << endl;
+
+       _F90discoverObjInst(&objHdl, &objClassHdl,
+                           objName.c_str(), &lenObjName,       
+                           &err);
+
+       switch (err) {
+               case 0 : 
+                 break;
+               case __CouldNotDiscover :
+                 throw (RTI::CouldNotDiscover(
+                               __CouldNotDiscover,
+                               "Object Management: CouldNotDiscover")
+                       );
+                 break;
+               case __ObjectClassNotKnown :
+                 throw (RTI::ObjectClassNotKnown(
+                               __ObjectClassNotKnown,
+                               "ObjectClassNotKnown")
+                       );
+                 break;
+               case __FederateInternalError :
+                 throw (RTI::FederateInternalError(
+                               __FederateInternalError,
+                               "FederateInternalError")
+                       );
+                 break;
+               default :
+                 cout << "Unknown Exception" << endl;
+                 break;
+       }
+    }
+
+    // 6.5
+    void
+    reflectAttributeValues (
+       RTI::ObjectHandle theObject,
+       const RTI::AttributeHandleValuePairSet& theAttributes,
+       const RTI::FedTime& theTime,
+       const char *theTag,
+       RTI::EventRetractionHandle theHandle)
+    throw (
+       RTI::AttributeNotKnown,
+       RTI::FederateInternalError,
+       RTI::FederateOwnsAttributes,
+       RTI::InvalidFederationTime,
+       RTI::ObjectNotKnown
+    ) {
+       
+       int err = 0;
+       int objHdl;
+       int attrHdl;
+       double *attrVals;
+       RTI::ULong lenAttrVals;
+       double logTime;
+       string tag(theTag);
+       int lenTag = tag.size();
+       
+       objHdl = objHdl2Int(theObject);
+       
+       for (int i=0; i<theAttributes.size(); i++) {
+
+               RTI::AttributeHandle handle = theAttributes.getHandle(i);
+               lenAttrVals = theAttributes.getValueLength(i);
+               attrVals = new double[lenAttrVals];
+               theAttributes.getValue(i, reinterpret_cast<char*>(attrVals), 
lenAttrVals);
+
+               for (int j=0; j<lenAttrVals; j++) {
+                       attrVals[j] = net2double(attrVals[j]);
+               }
+
+               int lenAttrValues = lenAttrVals;
+               _F90reflectAttrVals(&objHdl,
+                                   &attrHdl, attrVals, &lenAttrValues,
+                                   &logTime,
+                                   tag.c_str(), &lenTag,
+                                   NULL, 
+                                   NULL,
+                                   &err);
+               
+               delete attrVals;
+
+               switch (err) {
+                       case 0 : 
+                         break;
+                       case __AttributeNotKnown :
+                         throw (RTI::AttributeNotKnown(
+                                       __AttributeNotKnown,
+                                       "AttributeNotKnown")
+                               );
+                               break;
+                       case __FederateInternalError :
+                         throw (RTI::FederateInternalError(
+                                       __FederateInternalError,
+                                       "FederateInternalError")
+                               );
+                               break;
+                       case __FederateOwnsAttributes :
+                         throw (RTI::FederateOwnsAttributes(
+                                       __FederateOwnsAttributes,
+                                       "FederateOwnsAttributes")
+                               );
+                               break;
+                       case __InvalidFederationTime :
+                         throw (RTI::InvalidFederationTime(
+                                       __InvalidFederationTime,
+                                       "InvalidFederationTime")
+                               );
+                               break;
+                       case __ObjectNotKnown :
+                         throw (RTI::ObjectNotKnown(
+                                       __ObjectNotKnown,
+                                       "ObjectNotKnown")
+                               );
+                               break;
+                       default :
+                                 cout << "Unknown Exception" << endl;
+                                 break;
+                       }
+
+       }
+    }
+ 
+    void
+    reflectAttributeValues (
+       RTI::ObjectHandle theObject,
+       const RTI::AttributeHandleValuePairSet& theAttributes,
+       const char *theTag)
+    throw (
+       RTI::AttributeNotKnown,
+       RTI::FederateInternalError,
+       RTI::FederateOwnsAttributes,
+       RTI::ObjectNotKnown
+    ) {
+    
+       int err = 0;
+       int objHdl;
+       int attrHdl;
+       double *attrVals;
+       RTI::ULong lenAttrVals;
+       string tag(theTag);
+       int lenTag = tag.size();
+       
+       objHdl = objHdl2Int(theObject);
+
+       for (int i=0; i<theAttributes.size(); i++) {
+
+               RTI::AttributeHandle handle = theAttributes.getHandle(i);
+               lenAttrVals = theAttributes.getValueLength(i);
+               attrVals = new double[lenAttrVals];
+               theAttributes.getValue(i, reinterpret_cast<char*>(attrVals), 
lenAttrVals);
+
+               for (int j=0; j<lenAttrVals; j++) {
+                       attrVals[j] = net2double(attrVals[j]);
+               }
+
+               int lenAttrValues = lenAttrVals;
+               _F90reflectAttrVals(&objHdl,
+                                   &attrHdl, attrVals, &lenAttrValues,
+                                   NULL,
+                                   tag.c_str(), &lenTag,
+                                   NULL, 
+                                   NULL,
+                                   &err);
+               
+               delete attrVals;
+
+               switch (err) {
+                       case 0 : 
+                         break;
+                       case __AttributeNotKnown :
+                         throw (RTI::AttributeNotKnown(
+                                       __AttributeNotKnown,
+                                       "AttributeNotKnown")
+                               );
+                               break;
+                       case __FederateInternalError :
+                         throw (RTI::FederateInternalError(
+                                       __FederateInternalError,
+                                       "FederateInternalError")
+                               );
+                               break;
+                       case __FederateOwnsAttributes :
+                         throw (RTI::FederateOwnsAttributes(
+                                       __FederateOwnsAttributes,
+                                       "FederateOwnsAttributes")
+                               );
+                               break;
+                       case __ObjectNotKnown :
+                         throw (RTI::ObjectNotKnown(
+                                       __ObjectNotKnown,
+                                       "ObjectNotKnown")
+                               );
+                               break;
+                       default :
+                                 cout << "Unknown Exception" << endl;
+                                 break;
+                       }
+
+       }
+    }
+    
+    /////////////////////////////////////
+    // time management (6)             //
+    /////////////////////////////////////
+    
+   
+    // 8.13 
+    void 
+    timeAdvanceGrant(const RTI::FedTime& theTime) 
+    throw (RTI::FederateInternalError,
+          RTI::InvalidFederationTime,
+          RTI::TimeAdvanceWasNotInProgress) { 
+       int err = 0;
+       double logTime;
+               
+       logTime = RTIfedTime(theTime).getTime();
+       
+       _F90timeAdvGrant(&logTime, &err);
+
+       switch (err) {
+       case 0 : 
+         break;
+       case __FederateInternalError :
+         throw (RTI::FederateInternalError(
+               __FederateInternalError,
+               "FederateInternalError")
+               );
+               break;
+       case __InvalidFederationTime : 
+         throw (RTI::InvalidFederationTime(
+               __InvalidFederationTime, 
+               "InvalidLogicalTime")
+               );
+               break;
+       case __TimeAdvanceWasNotInProgress : 
+         throw (RTI::TimeAdvanceWasNotInProgress(
+               __TimeAdvanceWasNotInProgress, 
+               "TimeAdvanceWasNotInProgress")
+               );
+               break;
+       default : 
+               cout << "Unknown Exception" << endl;
+               break;
+       }
+    }
+ 
+};
+
+static F90FedAmbassador *FEDAMB;
+static RTI::RTIambassador *RTIAMB;
+
+void
+rtion1_(int* err) {
+
+    RTIAMB = new RTI::RTIambassador();
+    FEDAMB = new F90FedAmbassador();
+
+    *err = 0;
+}
+
+void
+rtioff1_(int *err) {
+    delete RTIAMB;
+    delete FEDAMB;
+
+    *err = 0;
+}
+
+/////////////////////////////////////
+// rti ambassador                  //
+/////////////////////////////////////
+
+/////////////////////////////////////
+// federation management (4)       //
+/////////////////////////////////////
+
+// 4.2
+void
+createfedexec5_(const char *fedExecName, const int *lenFedExecName,
+                const char *FED, const int *lenFED,
+                int *err) {
+
+    string federationExecutionName;
+    string FEDFile;
+
+    charArray2String(federationExecutionName, fedExecName,
+                     *lenFedExecName);
+    charArray2String(FEDFile, FED,
+                     *lenFED);
+
+    try {
+        RTIAMB -> createFederationExecution(
+            federationExecutionName.c_str(),
+            FEDFile.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederationExecutionAlreadyExists) {
+        *err = __FederationExecutionAlreadyExists;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.3
+extern void
+    destroyfedexec3_(const char *fedExecName, const int *lenFedExecName,
+                     int *err) {
+
+    string federationExecutionName;
+
+    charArray2String(federationExecutionName, fedExecName,
+                     *lenFedExecName);
+
+    try {
+        RTIAMB -> destroyFederationExecution(
+            federationExecutionName.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederatesCurrentlyJoined) {
+        *err = __FederatesCurrentlyJoined;
+    } catch (RTI::FederationExecutionDoesNotExist) {
+        *err = __FederationExecutionDoesNotExist;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.4
+extern void
+    joinfedexec6_(const char *fedName, const int *lenFedName,
+                  const char *fedExecName, const int *lenFedExecName,
+                  int *ret, int *err) {
+
+    string federateName;
+    string federationExecutionName;
+    RTI::FederateHandle federateHandle;
+
+    charArray2String(federateName, fedName, *lenFedName);
+    charArray2String(federationExecutionName, fedExecName,
+                     *lenFedExecName);
+
+    try {
+        federateHandle = RTIAMB -> joinFederationExecution(
+                             federateName.c_str(),
+                             federationExecutionName.c_str(),
+                             FEDAMB);
+
+        *ret = fedHdl2Int(federateHandle);
+        *err = 0;
+
+    } catch (RTI::ConcurrentAccessAttempted) {
+        ret = NULL;
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::CouldNotOpenFED) {
+        ret = NULL;
+        *err = __CouldNotOpenFED;
+    } catch (RTI::ErrorReadingFED) {
+        ret = NULL;
+        *err = __ErrorReadingFED;
+    } catch (RTI::FederateAlreadyExecutionMember) {
+        ret = NULL;
+        *err = __FederateAlreadyExecutionMember;
+    } catch (RTI::FederationExecutionDoesNotExist) {
+        ret = NULL;
+        *err = __FederationExecutionDoesNotExist;
+    } catch (RTI::RestoreInProgress) {
+        ret = NULL;
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        ret = NULL;
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        ret = NULL;
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.5
+extern void
+    resignfedexec2_(const int *resignAction, int *err) {
+
+    try {
+        switch (*resignAction) {
+        case 1 :
+            RTIAMB -> resignFederationExecution(
+                RTI::RELEASE_ATTRIBUTES);
+            break;
+        case 2 :
+            RTIAMB -> resignFederationExecution(
+                RTI::DELETE_OBJECTS);
+            break;
+        case 3 :
+            RTIAMB -> resignFederationExecution(
+                RTI::DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES);
+            break;
+        case 4 :
+            RTIAMB -> resignFederationExecution(
+                RTI::NO_ACTION);
+            break;
+        }
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::FederateOwnsAttributes) {
+        *err = __FederateOwnsAttributes;
+    } catch (RTI::InvalidResignAction) {
+        *err = __InvalidResignAction;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.6
+extern void
+    registerfedsyncpoint5_(const char *label, const int *lenLabel,
+                           const char *tag, const int *lenTag,
+                           int *err) {
+
+    string theLabel;
+    string theTag;
+
+    charArray2String(theLabel, label, *lenLabel);
+    charArray2String(theTag, tag, *lenTag);
+
+    try {
+        RTIAMB -> registerFederationSynchronizationPoint(
+            theLabel.c_str(), theTag.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+extern void
+    registerfedsyncpoint7_(const char *label, const int *lenLabel,
+                           const char *tag, const int *lenTag,
+                           const int *fedHdlSet, const int *numFedHdlSet,
+                           int *err) {
+
+    string theLabel;
+    string theTag;
+    RTI::FederateHandleSet *syncSet;
+
+    charArray2String(theLabel, label, *lenLabel);
+    charArray2String(theTag, tag, *lenTag);
+
+    syncSet = RTI::FederateHandleSetFactory::create(*numFedHdlSet);
+
+    try {
+        for (int i=0; i<*numFedHdlSet; i++) {
+            syncSet -> add(
+                    static_cast<RTI::FederateHandle>(fedHdlSet[i]));
+        }
+    } catch (RTI::MemoryExhausted) {
+        *err = __MemoryExhausted;
+    } catch (RTI::ValueCountExceeded) {
+        *err = __ValueCountExceeded;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+
+    try {
+        RTIAMB -> registerFederationSynchronizationPoint(
+            theLabel.c_str(), theTag.c_str(), *syncSet);
+        syncSet -> empty();
+        delete syncSet;
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.9
+extern void
+    syncpointachieved3_(const char *label, const int *lenLabel, int *err) {
+
+    string theLabel;
+
+    charArray2String(theLabel, label, *lenLabel);
+
+    try {
+        RTIAMB -> synchronizationPointAchieved(theLabel.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (RTI::SynchronizationPointLabelWasNotAnnounced) {
+        *err = __SynchronizationPointLabelWasNotAnnounced;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.11
+extern void
+    requestfedsave3_(const char *label, const int *lenLabel,
+                     int *err) {
+
+    string theLabel;
+
+    charArray2String(theLabel, label, *lenLabel);
+
+    try {
+        RTIAMB -> requestFederationSave(theLabel.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+extern void
+    requestfedsave4_(const char *label, const int *lenLabel,
+                     const double *time,
+                     int *err) {
+
+    string theLabel;
+    RTIfedTime theTime(*time);
+
+    charArray2String(theLabel, label, *lenLabel);
+
+    try {
+        RTIAMB -> requestFederationSave(theLabel.c_str(),
+                                        theTime);
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::FederationTimeAlreadyPassed) {
+        *err = __FederationTimeAlreadyPassed;
+    } catch (RTI::InvalidFederationTime) {
+        *err = __InvalidFederationTime;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.13
+extern void
+    fedsavebegun1_(int *err) {
+
+    try {
+        RTIAMB -> federateSaveBegun();
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveNotInitiated) {
+        *err = __SaveNotInitiated;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.14
+extern void
+    fedsavecomplete1_(int *err) {
+
+    try {
+        RTIAMB -> federateSaveComplete();
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveNotInitiated) {
+        *err = __SaveNotInitiated;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+extern void
+    fedsavenotcomplete1_(int *err) {
+
+    try {
+        RTIAMB -> federateSaveNotComplete();
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveNotInitiated) {
+        *err = __SaveNotInitiated;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+// 4.16
+extern void
+    requestfedrestore3_(const char *label, const int *lenLabel,
+                        int *err) {
+
+    string theLabel;
+
+    charArray2String(theLabel, label, *lenLabel);
+
+    try {
+        RTIAMB -> requestFederationRestore(theLabel.c_str());
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreInProgress) {
+        *err = __RestoreInProgress;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (RTI::SaveInProgress) {
+        *err = __SaveInProgress;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+
+// 4.20
+extern void
+    fedrestorecomplete1_(int *err) {
+
+    try {
+        RTIAMB -> federateRestoreComplete();
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreNotRequested) {
+        *err = __RestoreNotRequested;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+extern void
+    fedrestorenotcomplete1_(int *err) {
+
+    try {
+        RTIAMB -> federateRestoreNotComplete();
+        *err = 0;
+    } catch (RTI::ConcurrentAccessAttempted) {
+        *err = __ConcurrentAccessAttempted;
+    } catch (RTI::FederateNotExecutionMember) {
+        *err = __FederateNotExecutionMember;
+    } catch (RTI::RestoreNotRequested) {
+        *err = __RestoreNotRequested;
+    } catch (RTI::RTIinternalError) {
+        *err = __RTIinternalError;
+    } catch (...) {
+        cout << "Unknown Exception. Terminating" << endl;
+        exit(EXIT_FAILURE);
+    }
+}
+
+/////////////////////////////////////
+// declaration management (5)      //
+/////////////////////////////////////
+
+// 5.2
+extern void
+publishobjclass4_(const int *objClassHdl, const int *attrList,
+                  const int *numOfElementsInAttrList, int *err) {
+       
+        RTI::AttributeHandleSet *attributeList = 
+               
RTI::AttributeHandleSetFactory::create(*numOfElementsInAttrList);
+
+        for (int i=0; i<*numOfElementsInAttrList; i++) {
+                attributeList -> add(
+                        static_cast<RTI::AttributeHandle>(*(attrList+i)));
+        }
+
+        try {
+                RTIAMB -> publishObjectClass(
+                        static_cast<RTI::ObjectClassHandle>(*objClassHdl),
+                        *attributeList );
+                attributeList -> empty();
+               delete attributeList;
+                *err = 0;
+        }
+        catch (RTI::AttributeNotDefined) {
+                *err = __AttributeNotDefined;
+        }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::ObjectClassNotDefined) {
+                *err = __ObjectClassNotDefined;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+// 5.6
+extern void
+subscribeobjclassattr4_(const int *objClassHdl, const int *attrList,
+                        const int *numOfElementsInAttrList, int *err) {
+        
+       RTI::AttributeHandleSet *attributeList = 
+               
RTI::AttributeHandleSetFactory::create(*numOfElementsInAttrList);
+
+        for (int i=0; i<*numOfElementsInAttrList; i++) {
+                attributeList -> add(
+                        static_cast<RTI::AttributeHandle>(*(attrList+i)));
+        }
+
+        try {
+                RTIAMB -> subscribeObjectClassAttributes(
+                        static_cast<RTI::ObjectClassHandle>(*objClassHdl),
+                        *attributeList,
+                       RTI::RTI_TRUE);
+                attributeList -> empty();
+               delete attributeList;
+                *err = 0;
+        }
+        catch (RTI::AttributeNotDefined) {
+                *err = __AttributeNotDefined;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::ObjectClassNotDefined) {
+                *err = __ObjectClassNotDefined;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+/////////////////////////////////////
+// object management (5)           //
+/////////////////////////////////////
+
+// 6.4
+extern void
+registerobjinst3_(const int *objClassHdl, 
+                 int *ret, 
+                 int *err) {
+
+       RTI::ObjectHandle theObject;
+
+       try {
+               theObject = RTIAMB -> registerObjectInstance(
+                               
static_cast<RTI::ObjectClassHandle>(*objClassHdl));
+               *ret = objHdl2Int(theObject);
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+               ret = NULL;
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::ObjectClassNotDefined) {
+               ret = NULL;
+                *err = __ObjectClassNotDefined;
+        }
+        catch (RTI::ObjectClassNotPublished) {
+               ret = NULL;
+                *err = __ObjectClassNotPublished;
+        }
+        catch (RTI::RestoreInProgress) {
+               ret = NULL;
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+               ret = NULL;
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+               ret = NULL;
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+extern void
+registerobjinst5_(const int *objClassHdl, 
+                 const char *theObjInstName, const int *lenTheObjInstName, 
+                 int *ret, 
+                 int *err) {
+
+       RTI::ObjectHandle theObject;
+       string theObjectInstanceName;
+
+       charArray2String(theObjectInstanceName, theObjInstName, 
+                        *lenTheObjInstName);   
+
+       try {
+               theObject = RTIAMB -> registerObjectInstance(
+                               
static_cast<RTI::ObjectClassHandle>(*objClassHdl),
+                               theObjectInstanceName.c_str());
+               *ret = objHdl2Int(theObject);
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+               ret = NULL;
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::ObjectAlreadyRegistered) {
+               ret = NULL;
+                *err = __ObjectAlreadyRegistered;
+        }
+        catch (RTI::ObjectClassNotDefined) {
+               ret = NULL;
+                *err = __ObjectClassNotDefined;
+        }
+        catch (RTI::ObjectClassNotPublished) {
+               ret = NULL;
+                *err = __ObjectClassNotPublished;
+        }
+        catch (RTI::RestoreInProgress) {
+               ret = NULL;
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+               ret = NULL;
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+               ret = NULL;
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+// 6.6
+extern void
+updateattrvals7_(const int *objHdl, 
+                const int *attrHdl, const double *attrVals, const int 
*lenAttrVals, 
+                 const char *tag, const int *lenTag,
+                int *err) {
+
+       RTI::AttributeHandleValuePairSet *ahvps =  
+               RTI::AttributeSetFactory::create(*lenAttrVals);
+       RTI::Handle h = *attrHdl;
+       double tmp[*lenAttrVals];
+       string theTag;
+       
+       charArray2String(theTag, tag, *lenTag); 
+
+       for (int i=0; i<*lenAttrVals; i++) tmp[i] = double2net(attrVals[i]);
+       
+       try {
+               ahvps -> add (h, reinterpret_cast<char*>(tmp), 
*lenAttrVals*sizeof(double));
+       } 
+       catch (RTI::ValueLengthExceeded) {
+               *err = __ValueLengthExceeded;
+       }
+       catch (RTI::ValueCountExceeded) {
+               *err = __ValueCountExceeded;
+       }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+               
+       try {
+               RTIAMB -> updateAttributeValues (
+                       (static_cast<RTI::ObjectHandle>(*objHdl)),
+                       *ahvps, 
+                       theTag.c_str());
+               *err = 0;
+       }
+        catch (RTI::AttributeNotDefined) {
+                *err = __AttributeNotDefined;
+        }
+        catch (RTI::AttributeNotOwned) {
+                *err = __AttributeNotOwned;
+        }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::ObjectNotKnown) {
+                *err = __ObjectNotKnown;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+extern void
+updateattrvals10_(const int *objHdl, const int *attrHdl, 
+                  const double *attrVals, const int *lenAttrVals, 
+                  const char *tag, const int *lenTag,
+                 const double *time, 
+                 int *ret1,
+                 int *ret2,
+                 int *err) {
+
+       RTI::AttributeHandleValuePairSet *ahvps =  
+               RTI::AttributeSetFactory::create(*lenAttrVals);
+       RTI::Handle h = *attrHdl;
+       RTI::EventRetractionHandle eventHdl;
+
+       double tmp[*lenAttrVals];
+       string theTag;
+       
+       charArray2String(theTag, tag, *lenTag); 
+
+       for (int i=0; i<*lenAttrVals; i++) tmp[i] = double2net(attrVals[i]);
+       
+       try {
+               ahvps -> add (h, reinterpret_cast<char*>(tmp), 
*lenAttrVals*sizeof(double));
+       } 
+       catch (RTI::ValueLengthExceeded) {
+               *err = __ValueLengthExceeded;
+       }
+       catch (RTI::ValueCountExceeded) {
+               *err = __ValueCountExceeded;
+       }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+       
+       try {
+                eventHdl = RTIAMB -> updateAttributeValues (
+                               static_cast<RTI::ObjectHandle>(*objHdl), 
+                               *ahvps, 
+                               RTIfedTime(*time),
+                               theTag.c_str());
+       
+               int eventHdlSerial, eventHdlSendingFed;
+
+               eventRetrHdl2Int(eventHdl, &eventHdlSerial, 
&eventHdlSendingFed);
+               *ret1 = eventHdlSerial;
+               *ret2 = eventHdlSendingFed;
+               *err = 0;
+       }
+        catch (RTI::AttributeNotDefined) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __AttributeNotDefined;
+        }
+        catch (RTI::AttributeNotOwned) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __AttributeNotOwned;
+        }
+       catch (RTI::ConcurrentAccessAttempted) {
+               ret1 = NULL;
+               ret2 = NULL;
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::InvalidFederationTime) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __InvalidFederationTime;
+        }
+        catch (RTI::ObjectNotKnown) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __ObjectNotKnown;
+        }
+        catch (RTI::RestoreInProgress) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+               ret1 = NULL;
+               ret2 = NULL;
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+/////////////////////////////////////
+// time management (5)             //
+/////////////////////////////////////
+
+// 8.2
+extern void
+enabletimereg3_(const double* fedTime,
+               const double* lh,
+               int* err) {
+
+       try {
+               RTIAMB -> enableTimeRegulation(
+                               RTIfedTime(*fedTime),
+                               RTIfedTime(*lh));
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::EnableTimeRegulationPending) {
+                *err = __EnableTimeRegulationPending;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::InvalidFederationTime) {
+                *err = __InvalidFederationTime;
+        }
+        catch (RTI::InvalidLookahead) {
+                *err = __InvalidLookahead;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+        catch (RTI::TimeAdvanceAlreadyInProgress) {
+                *err = __TimeAdvanceAlreadyInProgress;
+        }
+        catch (RTI::TimeRegulationAlreadyEnabled) {
+                *err = __TimeRegulationAlreadyEnabled;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+
+}
+
+// 8.5
+extern void
+enabletimecons1_(int* err) {
+
+       try {
+               RTIAMB -> enableTimeConstrained();
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::EnableTimeConstrainedPending) {
+                *err = __EnableTimeConstrainedPending;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+        catch (RTI::TimeAdvanceAlreadyInProgress) {
+                *err = __TimeAdvanceAlreadyInProgress;
+        }
+        catch (RTI::TimeConstrainedAlreadyEnabled) {
+                *err = __TimeConstrainedAlreadyEnabled;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+
+}
+
+// 8.8
+extern void
+timeadvreq2_(const double* advTime,
+            int *err) {
+
+       try {
+               RTIAMB -> timeAdvanceRequest(
+                       RTIfedTime(*advTime));
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::EnableTimeConstrainedPending) {
+                *err = __EnableTimeConstrainedPending;
+       }
+        catch (RTI::EnableTimeRegulationPending) {
+                *err = __EnableTimeRegulationPending;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::FederationTimeAlreadyPassed) {
+                *err = __FederationTimeAlreadyPassed;
+        }
+        catch (RTI::InvalidFederationTime) {
+                *err = __InvalidFederationTime;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+        catch (RTI::TimeAdvanceAlreadyInProgress) {
+                *err = __TimeAdvanceAlreadyInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+
+}
+
+// 8.14
+extern void
+enableasyncdeliv1_(int* err) {
+
+       try {
+               RTIAMB -> enableAsynchronousDelivery();
+               *err = 0;
+       }
+       catch (RTI::AsynchronousDeliveryAlreadyEnabled) {
+               *err = __AsynchronousDeliveryAlreadyEnabled;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               *err = __ConcurrentAccessAttempted;
+       }
+        catch (RTI::FederateNotExecutionMember) {
+                *err = __FederateNotExecutionMember;
+        }
+        catch (RTI::RestoreInProgress) {
+                *err = __RestoreInProgress;
+        }
+        catch (RTI::RTIinternalError) {
+                *err = __RTIinternalError;
+        }
+        catch (RTI::SaveInProgress) {
+                *err = __SaveInProgress;
+        }
+       catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+       }
+}
+
+/////////////////////////////////////
+// ancillary services              //
+/////////////////////////////////////
+
+extern void
+tick2_(bool *ret,      
+       int *err) {
+
+       RTI::Boolean boolVal;
+
+       try {
+               boolVal = RTIAMB -> tick();
+               *ret = boolVal;
+               *err = 0;
+       } catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       } catch (RTI::RTIinternalError) {
+               ret = NULL;
+               *err = __RTIinternalError;
+       } catch (RTI::SpecifiedSaveLabelDoesNotExist) {
+               ret = NULL;
+               *err = __SpecifiedSaveLabelDoesNotExist;
+       } catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+extern void
+tick4_(double *tickMinTime,
+       double *tickMaxTime,
+       bool *ret, 
+       int *err) {
+
+       RTI::Boolean boolVal;
+
+       try {
+               boolVal = RTIAMB -> tick(*tickMinTime, *tickMaxTime);
+               *ret = boolVal;
+               *err = 0;
+       } catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       } catch (RTI::RTIinternalError) {
+               ret = NULL;
+               *err = __RTIinternalError;
+       } catch (RTI::SpecifiedSaveLabelDoesNotExist) {
+               ret = NULL;
+               *err = __SpecifiedSaveLabelDoesNotExist;
+       } catch (...) {
+               cout << "Unknown Exception. Terminating" << endl;
+               exit(EXIT_FAILURE);
+       }
+}
+
+/////////////////////////////////////
+// RTI Support Services (10)      //
+/////////////////////////////////////
+
+// 10.2
+extern void 
+getobjclasshdl4_(const char *theName, const int *lenTheName, 
+                int *ret, int *err) {
+
+       string objClassName;
+       RTI::ObjectClassHandle objClassHdl;
+       
+       charArray2String(objClassName, theName, *lenTheName);
+
+       try {
+               objClassHdl = RTIAMB -> 
getObjectClassHandle(objClassName.c_str());
+               *ret = objClassHdl2Int(objClassHdl);
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       }
+       catch (RTI::FederateNotExecutionMember) {
+               ret = NULL;
+                *err = __FederateNotExecutionMember;
+        }
+       catch (RTI::NameNotFound) {
+               ret = NULL;
+               *err = __NameNotFound;
+       }
+        catch (RTI::RTIinternalError) {
+               ret = NULL;
+                *err = __RTIinternalError;
+        }
+}
+
+// 10.4
+extern void
+getattrhdl5_(const int *objClassHdl, 
+            const char *theName, const int *lenTheName, 
+            int *ret, int *err) {
+
+       string theAttributeName;
+       RTI::AttributeHandle attrHdl;
+
+       charArray2String(theAttributeName, theName, *lenTheName);
+
+       try {
+               attrHdl = RTIAMB -> getAttributeHandle(
+                               theAttributeName.c_str(),
+                               
static_cast<RTI::ObjectClassHandle>(*objClassHdl));
+               *ret = attrHdl2Int(attrHdl);
+               *err = 0;
+       }
+       catch (RTI::ConcurrentAccessAttempted) {
+               ret = NULL;
+               *err = __ConcurrentAccessAttempted;
+       }
+       catch (RTI::FederateNotExecutionMember) {
+               ret = NULL;
+                *err = __FederateNotExecutionMember;
+        }
+       catch (RTI::NameNotFound) {
+               ret = NULL;
+               *err = __NameNotFound;
+       }
+       catch (RTI::ObjectClassNotDefined) {
+               ret = NULL;
+               *err = __ObjectClassNotDefined;
+       }
+        catch (RTI::RTIinternalError) {
+               ret = NULL;
+                *err = __RTIinternalError;
+        }
+}
+

Index: libF90HLA13/README
===================================================================
RCS file: libF90HLA13/README
diff -N libF90HLA13/README
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/README  28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,6 @@
+1. get and install cmake (www.cmake.org)
+2. get and install CERTI (www.cert.fr/CERTI) 
+3. create build_dir, e.g ~/build_libF90HLA13
+4. cd ~/build_libF90HLA13
+5. cmake source_dir
+6. make && sudo make install

Index: libF90HLA13/COPYING
===================================================================
RCS file: libF90HLA13/COPYING
diff -N libF90HLA13/COPYING
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/COPYING 28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,18 @@
+Copyright (C) 2008 Christian Stenzel
+
+This file is part of F90HLA13.
+
+F90HLA13 is free software: you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as 
+published by the Free Software Foundation, either version 3 of 
+the License, or (at your option) any later version.
+
+F90HLA13 is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public 
+License along with F90HLA13.  
+    
+If not, see <http://www.gnu.org/licenses/>.

Index: libF90HLA13/fedSrvMod.f90
===================================================================
RCS file: libF90HLA13/fedSrvMod.f90
diff -N libF90HLA13/fedSrvMod.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/fedSrvMod.f90   28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,318 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU Lesser General Public License as 
+!    published by the Free Software Foundation, either version 3 of 
+!    the License, or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU Lesser General Public License for more details.
+!
+!    You should have received a copy of the GNU Lesser General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+module fedSrvMod
+!
+use constantsMod
+!
+implicit none
+!
+! placeholder for shared variables
+!
+! federate service indication flags
+!
+logical :: SYNCPOINTREGSUCC_ = .false.  ! 4.7
+logical :: SYNCPOINTREGFAIL_ = .false.  ! 4.7
+logical :: ANNOUNCESYNCPOINT_ = .false. ! 4.8
+logical :: FEDSYNC_ = .false.           ! 4.10
+logical :: INITFEDSAVE_ = .false.       ! 4.12
+logical :: FEDSAVED_ = .false.          ! 4.15
+logical :: FEDNOTSAVED_ = .false.       ! 4.15
+logical :: REQFEDRESSUCC_ = .false.     ! 4.17
+logical :: REQFEDRESFAIL_ = .false.     ! 4.17
+logical :: FEDRESBEGUN_ = .false.       ! 4.18
+logical :: INITFEDRES_ = .false.        ! 4.19
+logical :: FEDRESTORED_ = .false.       ! 4.21
+logical :: FEDNOTRESTORED_ = .false.    ! 4.21
+logical :: DISOBJINST_ = .false.        ! 6.5
+logical :: REFLATTRVAL_ = .false.       ! 6.7
+logical :: REMOBJINST_ = .false.        ! 6.11
+logical :: PROATTRVALUP_ = .false.      ! 6.18
+logical :: ENTIMEREG_ = .false.         ! 8.3
+logical :: ENTIMECONS_ = .false.        ! 8.6
+logical :: TIMEADVGRA_ = .false.        ! 8.13
+!
+contains
+!
+! federation management
+!
+! 4.7
+  subroutine syncPointRegSucceeded(label, lenLabel, err)
+  
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(inout) :: err
+
+    write(*,*) "syncPointRegSucceeded(label, err) not implemented"
+    write(*,*) label
+    
+    err = 0
+
+  end subroutine syncPointRegSucceeded 
+!
+  subroutine syncPointRegFailed(label, lenLabel, err)
+!  
+    implicit none
+!
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(inout) :: err
+!
+    write(*,*) "syncPointRegFailed not implemented"
+    write(*,*) label
+!    
+    err = 0
+
+  end subroutine syncPointRegFailed
+!
+! 4.8
+  subroutine announceSyncPoint(label, lenLabel, tag, lenTag, err)
+
+    implicit none
+
+    integer, intent(in) :: lenLabel 
+    integer, intent(in) :: lenTag
+    character (len=lenLabel), intent(in) :: label
+    character (len=lenTag), intent(in) :: tag
+    integer, intent(inout) :: err
+
+    write(*,*) "announceSyncPoint not implemented"
+    write(*,*) label
+    write(*,*) tag 
+
+    err = 0
+  
+  end subroutine announceSyncPoint
+!
+! 4.10
+  subroutine fedSynchronized(label, lenLabel, err)
+
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(inout) :: err
+
+    write(*,*) "fedSynchronized not implemented"
+    write(*,*) label
+
+    err = 0
+  end subroutine fedSynchronized
+!
+! 4.12
+  subroutine initFedSave(label, lenLabel, err)
+
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(inout) :: err
+
+    write(*,*) "initFedSave not implemented"
+    write(*,*) label
+
+    err = 0
+  end subroutine initFedSave
+!
+! 4.15
+  subroutine fedSaved(err)
+
+    implicit none
+
+    integer, intent(inout) :: err
+
+    write(*,*) "fedSaved not implemented"
+
+    err = 0
+  end subroutine fedSaved
+!
+! 4.15
+  subroutine fedNotSaved(err)
+
+    implicit none
+
+    integer, intent(inout) :: err
+
+    write(*,*) "fedNotSaved not implemented"
+
+    err = 0
+  end subroutine fedNotSaved
+!
+! 4.17
+  subroutine requestFedResSucceeded(label, lenLabel, err)
+
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(inout) :: err
+
+    write(*,*) "requestFedResSucceeded not implemented"
+    write(*,*) label
+
+    err = 0
+  end subroutine requestFedResSucceeded
+!
+! 4.17
+  subroutine requestFedResFailed(label, lenLabel, &
+                                 reason, lenReason, &
+                                 err)
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    integer, intent(in) :: lenReason
+    character (len=lenLabel), intent(in) :: label
+    character (len=lenReason), intent(in) :: reason
+    integer, intent(inout) :: err
+
+    write(*,*) "requestFedRestoreFailed not implemented"
+    write(*,*) label
+    write(*,*) reason 
+
+    err = 0
+  end subroutine requestFedResFailed
+!
+! 4.18
+  subroutine fedResBegun(err)
+
+    implicit none
+
+    integer, intent(inout) :: err
+
+    write(*,*) "fedRestoreBegun not implemented"
+
+    err = 0
+  end subroutine fedResBegun
+!
+! 4.19
+  subroutine initFedRes(label, lenLabel, &
+                        fedHdl, &
+                        err)
+
+    implicit none
+
+    integer, intent(in) :: lenLabel
+    character (len=lenLabel), intent(in) :: label
+    integer, intent(in) :: fedHdl 
+    integer, intent(inout) :: err
+
+    write(*,*) "initFedRes not implemented"
+    write(*,*) label
+
+    err = 0
+  end subroutine initFedRes
+!
+! 4.21
+  subroutine fedRestored(err)
+
+    implicit none
+
+    integer, intent(inout) :: err
+
+    write(*,*) "fedRestored not implemented"
+
+    err = 0
+  end subroutine fedRestored
+!
+! 4.21
+  subroutine fedNotRestored(err)
+
+    implicit none
+
+    integer, intent(inout) :: err
+
+    write(*,*) "fedNotRestored not implemented"
+
+    err = 0
+  end subroutine fedNotRestored
+!
+! object management
+!
+! 6.5
+  subroutine discoverObjInst(objHdl, objClassHdl, &
+                             objName, lenObjName, err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: objClassHdl
+    integer, intent(in) :: lenObjName
+    character (len=lenObjName), intent(in) :: objName
+    integer, intent(inout) :: err
+
+    write(*,*) "discoverObjInst not implemented"
+    write(*,*) objHdl
+    write(*,*) objClassHdl
+    err = 0
+
+  end subroutine discoverObjInst
+!
+! 6.7
+  subroutine reflectAttrVals(objHdl, &
+                             attrHdl, attrVals, lenAttrVals, &
+                             logTime, &
+                             tag, lenTag, &
+                             eventRetrHdlSerial, &
+                             eventRetrHdlSendingFed, &
+                             err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: attrHdl
+    integer, intent(in) :: lenAttrVals
+    real (kind=8), dimension(lenAttrVals), intent(in) :: attrVals
+    integer, intent(in) :: lenTag
+    character (len=lenTag), intent(in) :: tag
+    real (kind=8), intent(in), optional :: logTime
+    integer, intent(in), optional :: eventRetrHdlSerial
+    integer, intent(in), optional :: eventRetrHdlSendingFed
+    integer, intent(inout) :: err
+
+    write(*,*) "reflectAttrVals not implemented"
+    write(*,*) objHdl
+    write(*,*) attrHdl
+    write(*,*) attrVals(:)
+    write(*,*) tag
+
+    err = 0
+
+  end subroutine reflectAttrVals
+!
+! time management
+!
+! 8.13
+  subroutine timeAdvGrant(logTime, &
+                          err)
+
+    implicit none
+
+    real (kind=8), intent(in) :: logTime 
+    integer, intent(inout) :: err
+
+    write(*,*) "timeAdvGrant not implemented"
+    write(*,*) logTime
+
+    err = 0
+  
+  end subroutine timeAdvGrant
+!
+end module fedSrvMod

Index: libF90HLA13/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt
===================================================================
RCS file: libF90HLA13/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt
diff -N libF90HLA13/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt 28 Jan 2008 21:44:30 
-0000      1.1
@@ -0,0 +1,18 @@
+Today HLA is the state of the art standard for distributed simulation. 
+
+This library provides engineers an easy way to extent existing 
+Fortran programs to so-called federates. Because HLA do not have an
+Fortran API this library tries to fill the gap.
+
+If you start writing a Fortran application copy the file fedSrvMod.f90
+in your application directory. Extent the function stubs of the federate
+services to your needed functionality and remove unneeded federate 
+services. Obviously, the file fedSrvMod.f90 is part of your application
+code.
+
+For further details have a look at the supplied demo applications.
+
+All software parts are developed by using CERTI (www.cert.fr/CERTI). 
+The usage of this RTI is recommended.
+
+January 2008, Christian Stenzel

Index: libF90HLA13/CMakeLists.txt
===================================================================
RCS file: libF90HLA13/CMakeLists.txt
diff -N libF90HLA13/CMakeLists.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/CMakeLists.txt  28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,129 @@
+#    Copyright (C) 2008 Christian Stenzel
+#
+#    This file is part of F90HLA13.
+#
+#    F90HLA13 is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Lesser General Public License as 
+#    published by the Free Software Foundation, either version 3 of 
+#    the License, or (at your option) any later version.
+#
+#    F90HLA13 is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Lesser General Public License for more details.
+#
+#    You should have received a copy of the GNU Lesser General Public 
+#    License along with F90HLA13.  
+#    
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+#########################################################################
+# CMakeLists.txt for library F90HLA13
+#########################################################################
+PROJECT(libF90HLA13 CXX Fortran)
+
+#########################################################################
+# Setup reasonable default CMake behavior
+#########################################################################
+
+# CERTI requires CMake 2.4.x
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4)
+
+# Use CERTI specific CMake modules first
+# You should set CERTI_HOME env var to appropriate value
+# or put here the full path to the directory
+# containing FindCERTI.cmake
+SET(CMAKE_MODULE_PATH $ENV{CERTI_HOME}/share/scripts)
+
+# You should uncomment the following line
+# if you want VERBOSE build
+#SET(CMAKE_VERBOSE_MAKEFILE ON)
+
+# The preferred (default) behaviour is to
+# build library as shared on all platform
+OPTION(BUILD_SHARED
+  "Build libraries as shared library" ON)
+IF (BUILD_SHARED)
+  SET(BUILD_SHARED_LIBS ON)
+ELSE (BUILD_SHARED)
+  SET(BUILD_SHARED_LIBS OFF)
+ENDIF (BUILD_SHARED)
+
+# Change the build type to release
+# when you are ready to release 
+SET(CMAKE_BUILD_TYPE "Debug")
+#SET(CMAKE_BUILD_TYPE "Release")
+
+#########################################################################
+# Define your project packaging basics
+#########################################################################
+SET(PACKAGE_NAME      ${CMAKE_PROJECT_NAME})
+SET(PACKAGE_VERSION_MAJOR "0")
+SET(PACKAGE_VERSION_MINOR "1")
+SET(PACKAGE_VERSION_PATCH "0")
+SET(PACKAGE_VERSION   
"${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
+SET(PACKAGE_BUGREPORT "address@hidden")
+MESSAGE(STATUS "Configuring ${PACKAGE_NAME} version ${PACKAGE_VERSION}")
+
+#########################################################################
+# Call i.e. INCLUDE the CERTI usage configuration
+#########################################################################
+INCLUDE(UseCERTI)
+
+#########################################################################
+# CPack specific Configuration
+#########################################################################
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "F90-HLA1.3-CERTI-Wrapper")
+SET(CPACK_PACKAGE_VENDOR "University Wismar, RG CEA, Christian Stenzel")
+SET(CPACK_PACKAGE_DESCRIPTION_FILE 
"${CMAKE_CURRENT_SOURCE_DIR}/F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt")
+SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
+SET(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
+SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
+SET(CPACK_SOURCE_IGNORE_FILES 
"/CVS/;/\\\\.svn/;\\\\.swp$;\\\\.#;/#;.*~;cscope.*")
+SET(CPACK_SOURCE_GENERATOR "ZIP;TGZ")
+SET(CPACK_GENERATOR "ZIP;TGZ")
+SET(CPACK_PACKAGE_VERSION ${PACKAGE_VERSION})
+SET(CPACK_PACKAGE_VERSION_MAJOR ${PACKAGE_VERSION_MAJOR})
+SET(CPACK_PACKAGE_VERSION_MINOR ${PACKAGE_VERSION_MINOR})
+SET(CPACK_PACKAGE_VERSION_PATCH ${PACKAGE_VERSION_PATCH})
+
+INCLUDE(CPack)
+
+#########################################################################
+# Go to subdirs 
+# (or process library and executable in the current directory) 
+#########################################################################
+
+###################################
+# Setup F90-Certi-Wrapper
+#   the library name
+#   the source list
+###################################
+SET(LIB_NAME F90HLA13CERTIWrap)
+SET(SRC_LIST F90HLA13CERTIWrap.cpp)
+
+###################################
+# Generic CMake library target
+###################################
+ADD_LIBRARY(${LIB_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES (${LIB_NAME} ${CERTI_LIBRARIES})
+INSTALL(TARGETS ${LIB_NAME} 
+        LIBRARY DESTINATION lib)
+
+###################################
+# Setup Fortran libs
+#   the library name
+#   the source list
+###################################
+
+SET(LIB_NAME F90HLA13Modules)
+SET(SRC_LIST constantsMod.f90 rtiSrvMod.f90 fedSrvMod.f90) 
+
+ADD_LIBRARY(${LIB_NAME} ${SRC_LIST})
+TARGET_LINK_LIBRARIES(${LIB_NAME} $ENV{PWD}/libF90HLA13CERTIWrap.so)
+INSTALL(TARGETS ${LIB_NAME}
+       LIBRARY DESTINATION lib)
+INSTALL(FILES $ENV{PWD}/constantsmod.mod $ENV{PWD}/rtisrvmod.mod
+        DESTINATION include/modF90)
+
+MESSAGE(STATUS "*** ${CMAKE_PROJECT_NAME} has been successfully configured 
***")

Index: libF90HLA13/00Content.txt
===================================================================
RCS file: libF90HLA13/00Content.txt
diff -N libF90HLA13/00Content.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/00Content.txt   28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,27 @@
+directory content
+
+(01)  2008-01-18  00Changes.txt
+(02)  2008-01-18  00Content.txt
+(03)  2008-01-18  AUTHORS
+(04)  2008-01-18  CMakeLists.txt
+(05)  2008-01-18  constantsMod.f90
+(06)  2008-01-18  COPYING
+(07)  2008-01-18  F90HLA13CERTIWrap.cpp
+(08)  2008-01-09  F90_HLA13_CERTI_Wrapper_DESCRIPTION.txt
+(09)  2008-01-18  fedSrvMod.f90
+(10)  2008-01-18  lesser.txt
+(11)  2008-01-18  README
+(12)  2008-01-18  rtiSrvMod.f90
+
+(01)  change log file
+(02)  this file
+(03)  author file
+(04)  cmake file
+(05)  definements of used constants
+(06)  copyright notice
+(07)  wrapper library F90<->CERTI<->F90
+(08)  description of the library
+(09)  federate service module
+(10)  lgpl 
+(11)  install information
+(12)  RTI service module

Index: libF90HLA13/lesser.txt
===================================================================
RCS file: libF90HLA13/lesser.txt
diff -N libF90HLA13/lesser.txt
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ libF90HLA13/lesser.txt      28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,504 @@
+                 GNU LESSER GENERAL PUBLIC LICENSE
+                      Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+  To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard.  To achieve this, non-free programs must be
+allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library".  The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+                 GNU LESSER GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+  A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The "Library", below, refers to any such software library or work
+which has been distributed under these terms.  A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+  "Source code" for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library.  To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License.  (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.)  Do not make any other change in
+these notices.
+
+  Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+  This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+  4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+  If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library".  Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+  However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library".  The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+  When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library.  The
+threshold for this to be true is not precisely defined by law.
+
+  If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work.  (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+  Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+  6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+  You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License.  You must supply a copy of this License.  If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License.  Also, you must do one
+of these things:
+
+    a) Accompany the work with the complete corresponding
+    machine-readable source code for the Library including whatever
+    changes were used in the work (which must be distributed under
+    Sections 1 and 2 above); and, if the work is an executable linked
+    with the Library, with the complete machine-readable "work that
+    uses the Library", as object code and/or source code, so that the
+    user can modify the Library and then relink to produce a modified
+    executable containing the modified Library.  (It is understood
+    that the user who changes the contents of definitions files in the
+    Library will not necessarily be able to recompile the application
+    to use the modified definitions.)
+
+    b) Use a suitable shared library mechanism for linking with the
+    Library.  A suitable mechanism is one that (1) uses at run time a
+    copy of the library already present on the user's computer system,
+    rather than copying library functions into the executable, and (2)
+    will operate properly with a modified version of the library, if
+    the user installs one, as long as the modified version is
+    interface-compatible with the version that the work was made with.
+
+    c) Accompany the work with a written offer, valid for at
+    least three years, to give the same user the materials
+    specified in Subsection 6a, above, for a charge no more
+    than the cost of performing this distribution.
+
+    d) If distribution of the work is made by offering access to copy
+    from a designated place, offer equivalent access to copy the above
+    specified materials from the same place.
+
+    e) Verify that the user has already received a copy of these
+    materials or that you have already sent this user a copy.
+
+  For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it.  However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+  It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system.  Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+  7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+    a) Accompany the combined library with a copy of the same work
+    based on the Library, uncombined with any other library
+    facilities.  This must be distributed under the terms of the
+    Sections above.
+
+    b) Give prominent notice with the combined library of the fact
+    that part of it is a work based on the Library, and explaining
+    where to find the accompanying uncombined form of the same work.
+
+  8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.  Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License.  However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+  9. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Library or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+  10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+  11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded.  In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+  13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation.  If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+  14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission.  For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this.  Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+                           NO WARRANTY
+
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the library's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  <signature of Ty Coon>, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+

Index: 
demoF90/TwoLevelController/controllerFederate/controllerFederate_wTime.f90
===================================================================
RCS file: 
demoF90/TwoLevelController/controllerFederate/controllerFederate_wTime.f90
diff -N 
demoF90/TwoLevelController/controllerFederate/controllerFederate_wTime.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/controllerFederate/controllerFederate_wTime.f90  
28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,118 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+program controlFed 
+!
+use constantsMod
+use rtiSrvMod
+use fedSrvMod
+!
+implicit none
+!
+character (len=*), parameter :: fedExecName = "TwoLevelController" 
+character (len=*), parameter :: FED    = "F90TwoLevelController.fed" 
+character (len=*), parameter :: fedName = "controlFed" 
+!
+integer :: err = 0
+integer :: fedHdl = 0
+integer :: twoLevelContrID = 0
+integer :: ObjInstHdl = 0
+integer :: uID = 0, yID = 0
+integer :: objID_u = 0
+!
+real (kind=8), parameter :: t0 = 0, tend = 30, h = 0.01, w = 0.5
+real (kind=8) :: t, u, y
+logical :: bool = .false.
+!
+! init 
+!
+call rtiOn();
+call createFedExec(fedExecName, FED, err);
+call joinFedExec(fedName, fedExecName, ret=fedHdl);
+write(*,*) "joinFedExec"
+!
+call getObjClassHdl("TwoLevelControllerClass", twoLevelContrID);
+call getAttrHdl(twoLevelContrID, "U", ret=uID)
+call getAttrHdl(twoLevelContrID, "Y", ret=yID)
+call subscribeObjClassAttr(twoLevelContrID,(/yID/))
+call publishObjClass(twoLevelContrID, (/uID/))
+!
+call registerObjInst(twoLevelContrID, ret=objID_u);
+!
+! Time Management functionality
+call enableTimeReg(t0,h)
+call enableTimeCons()
+call enableAsyncDeliv()
+!
+write(*,*) "Wait for y ..."
+do
+  if (DISOBJINST_.eqv..true.) then
+    DISOBJINST_ = .false.
+    exit
+  end if
+  call tick_1(bool)
+end do
+!
+! simulation loop
+t = t0
+u = 0
+y = 0
+do
+  if ( t-tend.gt.0 ) then 
+    exit
+  end if
+  
+  if (y < w-0.1) then 
+    u = 1;
+  end if
+  
+  if (y > w+0.1) then 
+    u = 0;
+  end if
+
+  t = t + h
+
+  call updateAttrVals(objID_u, uID, (/ u /), "u", t)
+
+  call timeAdvReq(t)
+
+  do 
+    if (TIMEADVGRA_.eqv..true.) then
+      TIMEADVGRA_ = .false.
+      exit
+    end if
+    call tick_1(bool) 
+  end do
+
+  y = Yglobal
+
+  write (*, fmt = "(A,F8.3)") "t= ", t
+  write (*, fmt = "(A,F8.3)") "y= ", y
+  write (*, fmt = "(A,F8.3)") "u= ", u
+
+end do
+!
+! deinit 
+!
+call resignFedExec(DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES)
+call destroyFedExec(fedExecName);
+!
+call rtiOff();
+!
+end program controlFed 

Index: demoF90/TwoLevelController/controllerFederate/fedSrvMod.f90
===================================================================
RCS file: demoF90/TwoLevelController/controllerFederate/fedSrvMod.f90
diff -N demoF90/TwoLevelController/controllerFederate/fedSrvMod.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/controllerFederate/fedSrvMod.f90 28 Jan 2008 
21:44:30 -0000      1.1
@@ -0,0 +1,107 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+module fedSrvMod
+!
+use constantsMod
+!
+implicit none
+!
+! placeholder for shared variables
+!
+real (kind=8) :: Yglobal=0
+!
+! federate service indication flags
+!
+logical :: DISOBJINST_ = .false.        ! 6.5
+logical :: REFLATTRVAL_ = .false.       ! 6.7
+logical :: TIMEADVGRA_ = .false.        ! 8.13
+!
+contains
+!
+! 6.5
+  subroutine discoverObjInst(objHdl, objClassHdl, &
+                             objName, lenObjName, err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: objClassHdl
+    integer, intent(in) :: lenObjName
+    character (len=lenObjName), intent(in) :: objName
+    integer, intent(inout) :: err
+
+    ! user implementation
+
+    write(*,*) "discoverObjInst; objHdl = ", objHdl
+    DISOBJINST_ = .true.
+
+    err = 0
+
+  end subroutine discoverObjInst
+!
+! 6.7
+  subroutine reflectAttrVals(objHdl, &
+                             attrHdl, attrVals, lenAttrVals, &
+                             logTime, &
+                             tag, lenTag, &
+                             eventRetrHdlSerial, &
+                             eventRetrHdlSendingFed, &
+                             err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: attrHdl
+    integer, intent(in) :: lenAttrVals
+    real (kind=8), dimension(lenAttrVals), intent(in) :: attrVals
+    integer, intent(in) :: lenTag
+    character (len=lenTag), intent(in) :: tag
+    real (kind=8), intent(in), optional :: logTime
+    integer, intent(in), optional :: eventRetrHdlSerial
+    integer, intent(in), optional :: eventRetrHdlSendingFed
+    integer, intent(inout) :: err
+
+    ! user implementation
+    REFLATTRVAL_ = .true.
+    Yglobal = attrVals(1)
+
+    err = 0
+
+  end subroutine reflectAttrVals
+!
+! time management
+!
+! 8.13
+  subroutine timeAdvGrant(logTime, &
+                          err)
+
+    implicit none
+
+    real (kind=8), intent(in) :: logTime 
+    integer, intent(inout) :: err
+
+    ! user implementation
+    TIMEADVGRA_ = .true.
+
+    err = 0
+  
+  end subroutine timeAdvGrant
+!
+end module fedSrvMod

Index: 
demoF90/TwoLevelController/controllerFederate/controllerFederate_woTime.f90
===================================================================
RCS file: 
demoF90/TwoLevelController/controllerFederate/controllerFederate_woTime.f90
diff -N 
demoF90/TwoLevelController/controllerFederate/controllerFederate_woTime.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/controllerFederate/controllerFederate_woTime.f90 
28 Jan 2008 21:44:30 -0000      1.1
@@ -0,0 +1,109 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+program controlFed 
+!
+use constantsMod
+use rtiSrvMod
+use fedSrvMod
+!
+implicit none
+!
+character (len=*), parameter :: fedExecName = "TwoLevelController" 
+character (len=*), parameter :: FED    = "F90TwoLevelController.fed" 
+character (len=*), parameter :: fedName = "controlFed" 
+!
+integer :: err = 0
+integer :: fedHdl = 0
+integer :: twoLevelContrID = 0
+integer :: ObjInstHdl = 0
+integer :: uID = 0, yID = 0
+integer :: objID_u = 0
+!
+real (kind=8), parameter :: t0 = 0, tend = 30, h = 0.01, w = 0.5
+real (kind=8) :: t, u, y
+logical :: bool = .false.
+!
+! init 
+!
+call rtiOn();
+call createFedExec(fedExecName, FED, err);
+call joinFedExec(fedName, fedExecName, ret=fedHdl);
+write(*,*) "joinFedExec"
+!
+call getObjClassHdl("TwoLevelControllerClass", twoLevelContrID);
+call getAttrHdl(twoLevelContrID, "U", ret=uID)
+call getAttrHdl(twoLevelContrID, "Y", ret=yID)
+call subscribeObjClassAttr(twoLevelContrID,(/yID/))
+call publishObjClass(twoLevelContrID, (/uID/))
+!
+call registerObjInst(twoLevelContrID, ret=objID_u);
+!
+write(*,*) "Wait for y ..."
+do
+  if (DISOBJINST_.eqv..true.) then
+    DISOBJINST_ = .false.
+    exit
+  end if
+  call tick_1(bool)
+end do
+!
+! simulation loop
+t = t0
+u = 0
+y = 0
+do
+  if ( t-tend.gt.0 ) then 
+    exit
+  end if
+
+  if (y < w-0.1) then 
+    u = 1;
+  end if
+  
+  if (y > w+0.1) then 
+    u = 0;
+  end if
+
+  call updateAttrVals(objID_u, uID, (/ u /), "u")
+
+  do 
+    if (REFLATTRVAL_.eqv..true.) then
+      REFLATTRVAL_ = .false.
+      y = Yglobal
+      exit
+    end if
+    call tick_1(bool) 
+  end do
+
+  t = t + h
+  write (*, fmt = "(A,F8.3)") "t= ", t
+  write (*, fmt = "(A,F8.3)") "y= ", y
+  write (*, fmt = "(A,F8.3)") "u= ", u
+
+end do
+!
+! deinit 
+!
+call resignFedExec(DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES)
+call destroyFedExec(fedExecName);
+!
+call rtiOff();
+!
+end program controlFed 

Index: demoF90/TwoLevelController/processFederate/fedSrvMod.f90
===================================================================
RCS file: demoF90/TwoLevelController/processFederate/fedSrvMod.f90
diff -N demoF90/TwoLevelController/processFederate/fedSrvMod.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/processFederate/fedSrvMod.f90    28 Jan 2008 
21:44:31 -0000      1.1
@@ -0,0 +1,108 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+module fedSrvMod
+!
+use constantsMod
+!
+implicit none
+!
+! placeholder for shared variables
+!
+real (kind=8) :: Uglobal = 0
+!
+! federate service indication flags
+!
+logical :: DISOBJINST_ = .false.        ! 6.5
+logical :: REFLATTRVAL_ = .false.       ! 6.7
+logical :: TIMEADVGRA_ = .false.        ! 8.13
+!
+contains
+!
+! object management
+!
+! 6.5
+  subroutine discoverObjInst(objHdl, objClassHdl, &
+                             objName, lenObjName, err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: objClassHdl
+    integer, intent(in) :: lenObjName
+    character (len=lenObjName), intent(in) :: objName
+    integer, intent(inout) :: err
+
+    ! user implementation
+
+    write(*,*) "discoverObjInst; objHdl = ", objHdl
+    DISOBJINST_ = .true.
+
+    err = 0
+
+  end subroutine discoverObjInst
+!
+! 6.7
+  subroutine reflectAttrVals(objHdl, &
+                             attrHdl, attrVals, lenAttrVals, &
+                             logTime, &
+                             tag, lenTag, &
+                             eventRetrHdlSerial, &
+                             eventRetrHdlSendingFed, &
+                             err)
+
+    implicit none
+
+    integer, intent(in) :: objHdl
+    integer, intent(in) :: attrHdl
+    integer, intent(in) :: lenAttrVals
+    real (kind=8), dimension(lenAttrVals), intent(in) :: attrVals
+    integer, intent(in) :: lenTag
+    character (len=lenTag), intent(in) :: tag
+    real (kind=8), intent(in), optional :: logTime
+    integer, intent(in), optional :: eventRetrHdlSerial
+    integer, intent(in), optional :: eventRetrHdlSendingFed
+    integer, intent(inout) :: err
+
+    REFLATTRVAL_ = .true.
+    Uglobal = attrVals(1)
+
+    err = 0
+
+  end subroutine reflectAttrVals
+!
+! time management
+!
+! 8.13
+  subroutine timeAdvGrant(logTime, &
+                          err)
+
+    implicit none
+
+    real (kind=8), intent(in) :: logTime 
+    integer, intent(inout) :: err
+
+    ! user implementation
+    TIMEADVGRA_ = .true.
+
+    err = 0
+  
+  end subroutine timeAdvGrant
+!
+end module fedSrvMod

Index: demoF90/TwoLevelController/processFederate/processFederate_woTime.f90
===================================================================
RCS file: demoF90/TwoLevelController/processFederate/processFederate_woTime.f90
diff -N demoF90/TwoLevelController/processFederate/processFederate_woTime.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/processFederate/processFederate_woTime.f90       
28 Jan 2008 21:44:31 -0000      1.1
@@ -0,0 +1,103 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+program processFed 
+!
+use constantsMod
+use rtiSrvMod
+use fedSrvMod
+!
+implicit none
+!
+character (len=*), parameter :: fedExecName = "TwoLevelController" 
+character (len=*), parameter :: FED    = "F90TwoLevelController.fed" 
+character (len=*), parameter :: fedName = "ProcessFed" 
+!
+integer :: err = 0
+integer :: fedHdl = 0
+integer :: twoLevelContrID = 0
+integer :: ObjInstHdl = 0
+integer :: uID = 0, yID = 0
+integer :: objID_u = 0
+!
+real (kind=8), parameter :: t0 = 0, tend = 30 
+real (kind=8), parameter :: h = 0.01, T1 = 5, k = 1
+real (kind=8) :: t, u, y, ydot
+logical :: bool = .false.
+!
+!
+! init 
+!
+call rtiOn();
+call createFedExec(fedExecName, FED, err);
+call joinFedExec(fedName, fedExecName, ret=fedHdl);
+write(*,*) "joinFedExec"
+!
+call getObjClassHdl("TwoLevelControllerClass", twoLevelContrID);
+call getAttrHdl(twoLevelContrID, "U", ret=uID)
+call getAttrHdl(twoLevelContrID, "Y", ret=yID)
+call subscribeObjClassAttr(twoLevelContrID,(/uID/))
+call publishObjClass(twoLevelContrID, (/yID/))
+!
+call registerObjInst(twoLevelContrID, ret=objID_u);
+!
+write(*,*) "Wait for u ..."
+do
+  if (DISOBJINST_.eqv..true.) then
+    DISOBJINST_ = .false.
+    exit
+  end if
+  call tick_1(bool)
+end do
+!
+! simulation loop
+t = t0
+y = 0 
+u = 0
+do
+  if ( t-tend.gt.0 ) then 
+    exit
+  end if
+
+  do
+    if (REFLATTRVAL_.eqv..true.) then
+      REFLATTRVAL_ = .false.
+      u = Uglobal
+      exit
+    end if
+    call tick_1(bool) 
+  end do
+
+  ydot = (-y + u*k) / T1
+  y = y + h*ydot 
+
+  call updateAttrVals(objID_u, yID, (/ y /), "y")
+
+  t = t + h
+  write (*, fmt = "(A,F8.3)") "t= ", t
+  write (*, fmt = "(A,F8.3)") "y= ", y
+  write (*, fmt = "(A,F8.3)") "u= ", u
+end do
+!
+! deinit 
+!
+call resignFedExec(DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES)
+call destroyFedExec(fedExecName);
+!
+end program processFed 

Index: demoF90/TwoLevelController/processFederate/processFederate_wTime.f90
===================================================================
RCS file: demoF90/TwoLevelController/processFederate/processFederate_wTime.f90
diff -N demoF90/TwoLevelController/processFederate/processFederate_wTime.f90
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/processFederate/processFederate_wTime.f90        
28 Jan 2008 21:44:31 -0000      1.1
@@ -0,0 +1,113 @@
+!    Copyright (C) 2008 Christian Stenzel
+!
+!    This file is part of F90HLA13.
+!
+!    F90HLA13 is free software: you can redistribute it and/or modify
+!    it under the terms of the GNU General Public License as published 
+!    by the Free Software Foundation, either version 3 of the License, 
+!    or (at your option) any later version.
+!
+!    F90HLA13 is distributed in the hope that it will be useful,
+!    but WITHOUT ANY WARRANTY; without even the implied warranty of
+!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+!    GNU General Public License for more details.
+!
+!    You should have received a copy of the GNU General Public 
+!    License along with F90HLA13.  
+!    
+!    If not, see <http://www.gnu.org/licenses/>.
+!
+program processFed 
+!
+use constantsMod
+use rtiSrvMod
+use fedSrvMod
+!
+implicit none
+!
+character (len=*), parameter :: fedExecName = "TwoLevelController" 
+character (len=*), parameter :: FED    = "F90TwoLevelController.fed" 
+character (len=*), parameter :: fedName = "ProcessFed" 
+!
+integer :: err = 0
+integer :: fedHdl = 0
+integer :: twoLevelContrID = 0
+integer :: ObjInstHdl = 0
+integer :: uID = 0, yID = 0
+integer :: objID_u = 0
+!
+real (kind=8), parameter :: t0 = 0, tend = 30 
+real (kind=8), parameter :: h = 0.01, T1 = 5, k = 1
+real (kind=8) :: t, u, y, ydot
+logical :: bool = .false.
+!
+!
+! init 
+!
+call rtiOn();
+call createFedExec(fedExecName, FED, err);
+call joinFedExec(fedName, fedExecName, ret=fedHdl);
+write(*,*) "joinFedExec"
+!
+call getObjClassHdl("TwoLevelControllerClass", twoLevelContrID);
+call getAttrHdl(twoLevelContrID, "U", ret=uID)
+call getAttrHdl(twoLevelContrID, "Y", ret=yID)
+call subscribeObjClassAttr(twoLevelContrID,(/uID/))
+call publishObjClass(twoLevelContrID, (/yID/))
+!
+call registerObjInst(twoLevelContrID, ret=objID_u);
+!
+! Time Management functionality
+call enableTimeReg(t0,h)
+call enableTimeCons()
+call enableAsyncDeliv()
+!
+write(*,*) "Wait for u ..."
+do
+  if (DISOBJINST_.eqv..true.) then
+    DISOBJINST_ = .false.
+    exit
+  end if
+  call tick_1(bool)
+end do
+!
+! simulation loop
+t = t0
+y = 0 
+u = 0
+do
+  if ( t-tend.gt.0 ) then 
+    exit
+  end if
+
+  call tick_1(bool)
+
+  u = Uglobal
+
+  ydot = (-y + u*k) / T1
+  y = y + h*ydot 
+
+  t = t + h
+  call updateAttrVals(objID_u, yID, (/ y /), "y", t)
+  
+  call timeAdvReq(t)
+  
+  do 
+    if (TIMEADVGRA_.eqv..true.) then
+      TIMEADVGRA_ = .false.
+      exit
+    end if
+    call tick_1(bool) 
+  end do
+
+  write (*, fmt = "(A,F8.3)") "t= ", t
+  write (*, fmt = "(A,F8.3)") "y= ", y
+  write (*, fmt = "(A,F8.3)") "u= ", u
+end do
+!
+! deinit 
+!
+call resignFedExec(DELETE_OBJECTS_AND_RELEASE_ATTRIBUTES)
+call destroyFedExec(fedExecName);
+!
+end program processFed 

Index: demoF90/TwoLevelController/F90TwoLevelController.fed
===================================================================
RCS file: demoF90/TwoLevelController/F90TwoLevelController.fed
diff -N demoF90/TwoLevelController/F90TwoLevelController.fed
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ demoF90/TwoLevelController/F90TwoLevelController.fed        28 Jan 2008 
21:44:31 -0000      1.1
@@ -0,0 +1,44 @@
+;;  Copyright (C) 2008 Christian Stenzel
+;;
+;;  This file is part of F90HLA13.
+;;
+;;  F90HLA13 is free software: you can redistribute it and/or modify
+;;  it under the terms of the GNU General Public License as published 
+;;  by the Free Software Foundation, either version 3 of the License, 
+;;  or (at your option) any later version.
+;;
+;;  F90HLA13 is distributed in the hope that it will be useful,
+;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;  GNU General Public License for more details.
+;;
+;;  You should have received a copy of the GNU General Public 
+;;  License along with F90HLA13.  
+;;    
+;;  If not, see <http://www.gnu.org/licenses/>.
+;;
+;; F90TwoLevelController 
+
+(Fed
+  (Federation TwoLevelController)
+  (FedVersion v1.3)
+  (Federate "controlFed" "Public")
+  (Federate "processFed" "Public")
+  (Spaces
+  )
+  (Objects
+    (Class ObjectRoot
+      (Attribute privilegeToDelete reliable timestamp)
+      (Class RTIprivate)
+       (Class TwoLevelControllerClass
+               (Attribute U RELIABLE TIMESTAMP)
+               (Attribute Y RELIABLE TIMESTAMP)
+       )
+    )
+  )
+  (Interactions
+    (Class InteractionRoot BEST_EFFORT RECEIVE
+      (Class RTIprivate BEST_EFFORT RECEIVE)
+    )
+  )
+)




reply via email to

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