certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] jcerti/src/certi/rti/jlc CertiRtiFactory.java


From: certi-cvs
Subject: [certi-cvs] jcerti/src/certi/rti/jlc CertiRtiFactory.java
Date: Sun, 21 Mar 2010 20:08:16 +0000

CVSROOT:        /sources/certi
Module name:    jcerti
Changes by:     Eric NOULARD <erk>      10/03/21 20:08:16

Added files:
        src/certi/rti/jlc: CertiRtiFactory.java 

Log message:
        Add missing file from initial commit

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/jcerti/src/certi/rti/jlc/CertiRtiFactory.java?cvsroot=certi&rev=1.1

Patches:
Index: CertiRtiFactory.java
===================================================================
RCS file: CertiRtiFactory.java
diff -N CertiRtiFactory.java
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ CertiRtiFactory.java        21 Mar 2010 20:08:16 -0000      1.1
@@ -0,0 +1,120 @@
+// ----------------------------------------------------------------------------
+// CERTI - HLA RunTime Infrastructure
+// Copyright (C) 2010 Andrej Pancik
+//
+// This program 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 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser 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
+//
+// ----------------------------------------------------------------------------
+package certi.rti.jlc;
+
+import certi.rti.impl.CertiRtiAmbassador;
+import certi.rti.impl.CertiAttributeHandleSet;
+import certi.rti.impl.CertiFederateHandleSet;
+import certi.rti.impl.CertiHandleValuePairCollection;
+import hla.rti.AttributeHandleSet;
+import hla.rti.FederateHandleSet;
+import hla.rti.RTIinternalError;
+import hla.rti.SuppliedAttributes;
+import hla.rti.SuppliedParameters;
+import hla.rti.jlc.RTIambassadorEx;
+import hla.rti.jlc.RtiFactory;
+import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ *
+ * @author aVe
+ */
+public class CertiRtiFactory implements RtiFactory {
+
+    /**
+     *
+     * @return
+     * @throws RTIinternalError
+     */
+    public RTIambassadorEx createRtiAmbassador() throws RTIinternalError {
+        try {
+            return new CertiRtiAmbassador();
+        } catch (IOException ex) {
+            
Logger.getLogger(CertiRtiFactory.class.getName()).log(Level.SEVERE, null, ex);
+            throw new RTIinternalError(ex.getMessage());
+        }
+    }
+
+    /**
+     *
+     * @return
+     */
+    public String RtiName() {
+        return "Certi";
+    }
+
+    /**
+     *
+     * @return
+     */
+    public String RtiVersion() {
+        return "3.3.3";
+    }
+
+    /**
+     *
+     * @return
+     */
+    public long getMinExtent() {
+        return Long.MIN_VALUE;
+    }
+
+    /**
+     *
+     * @return
+     */
+    public long getMaxExtent() {
+        return Long.MAX_VALUE;
+    }
+
+    /**
+     *
+     * @return
+     */
+    public AttributeHandleSet createAttributeHandleSet() {
+        return new CertiAttributeHandleSet();
+    }
+
+    /**
+     *
+     * @return
+     */
+    public FederateHandleSet createFederateHandleSet() {
+        return new CertiFederateHandleSet();
+    }
+
+    /**
+     *
+     * @return
+     */
+    public SuppliedAttributes createSuppliedAttributes() {
+        return new CertiHandleValuePairCollection();
+    }
+
+    /**
+     *
+     * @return
+     */
+    public SuppliedParameters createSuppliedParameters() {
+        return new CertiHandleValuePairCollection();
+    }
+}




reply via email to

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