[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[oMetah-devel] ometah/communication itsCommunicationClient.hpp...
From: |
Johann |
Subject: |
[oMetah-devel] ometah/communication itsCommunicationClient.hpp... |
Date: |
Sat, 12 Mar 2005 17:37:50 -0500 |
CVSROOT: /cvsroot/ometah
Module name: ometah
Branch:
Changes by: Johann <address@hidden> 05/03/12 22:37:47
Modified files:
communication : itsCommunicationClient.hpp
itsCommunicationServer.hpp
Added files:
communication : itsCommunication.cpp itsCommunication.hpp
itsCommunicationClient.cpp
itsCommunicationClient_embedded.cpp
itsCommunicationClient_embedded.hpp
itsCommunicationServer.cpp
itsCommunicationServer_embedded.cpp
itsCommunicationServer_embedded.hpp
Log message:
* a base class itsCommunication
* itsCommunicationServer now include a pointer to the problem
* a first step toward a simple communication protocol
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunication.cpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunication.hpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationClient.cpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationClient_embedded.cpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationClient_embedded.hpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationServer.cpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationServer_embedded.cpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationServer_embedded.hpp?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationClient.hpp.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/ometah/ometah/communication/itsCommunicationServer.hpp.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: ometah/communication/itsCommunicationClient.hpp
diff -u ometah/communication/itsCommunicationClient.hpp:1.3
ometah/communication/itsCommunicationClient.hpp:1.4
--- ometah/communication/itsCommunicationClient.hpp:1.3 Fri Mar 11 19:09:51 2005
+++ ometah/communication/itsCommunicationClient.hpp Sat Mar 12 22:37:47 2005
@@ -1,7 +1,7 @@
/***************************************************************************
* itsCommunicationClientt.hpp
*
- * $Id: itsCommunicationClient.hpp,v 1.3 2005/03/11 19:09:51 nojhan Exp $
+ * $Id: itsCommunicationClient.hpp,v 1.4 2005/03/12 22:37:47 nojhan Exp $
* Author : Johann Dréo <address@hidden>
****************************************************************************/
@@ -24,29 +24,17 @@
#ifndef ITSCOMMUNICATIONCLIENT
#define ITSCOMMUNICATIONCLIENT
-#include "../common/itsPoint.hpp"
+#include "../common/itsCommunication.hpp"
-class itsCommunicationClient
+class itsCommunicationClient : public itsCommunication
{
-public:
- //! Call the problem on a point to get its associated values
- virtual itsPoint call(itsPoint point);
-
- //! The minima of the problem bounds
- vector<double> boundsMinima();
-
- //! The maxima of the problem bounds
- vector<double> boundsMaxima();
- //! The bounds matrix
- /*!
- This method call getBoundsMinima and getBoundsMaxima to produce
- a matrix with each dimension on a row.
- */
- vector<vector<double> > bounds();
+};
- //! Return the dimension
- int getDimension();
+class itsCommunicationClientFactory
+{
+public:
+ virtual itsCommunicationClient * create() = 0;
};
#endif
Index: ometah/communication/itsCommunicationServer.hpp
diff -u ometah/communication/itsCommunicationServer.hpp:1.2
ometah/communication/itsCommunicationServer.hpp:1.3
--- ometah/communication/itsCommunicationServer.hpp:1.2 Fri Mar 11 10:27:02 2005
+++ ometah/communication/itsCommunicationServer.hpp Sat Mar 12 22:37:47 2005
@@ -1,5 +1,5 @@
/***************************************************************************
- * $Id: itsCommunicationServer.hpp,v 1.2 2005/03/11 10:27:02 nojhan Exp $
+ * $Id: itsCommunicationServer.hpp,v 1.3 2005/03/12 22:37:47 nojhan Exp $
* Copyright : Université Paris 12 Val-de-Marne
* Author : Johann Dréo <address@hidden>
****************************************************************************/
@@ -23,26 +23,46 @@
#ifndef ITSCOMMUNICATIONSERVER
#define ITSCOMMUNICATIONSERVER
+#include <vector>
+#include "itsCommunication.hpp"
#include "../common/itsPoint.hpp"
+#include "itsProblem.hpp"
-class itsCommunicationServer
+using namespace std;
+
+
+class itsCommunicationServer : public itsCommunication
{
+protected:
+ //! The problem
+ itsProblem* problem;
+
public:
- //! Call the problem on a point to get its associated values
- virtual itsPoint call(itsPoint point);
+ //! Call the problem on a point to get its associated values
+ itsPoint call(itsPoint point);
- //! The minima of the problem bounds
- vector<double> boundsMinima();
+ //! The minima of the problem bounds
+ vector<double> boundsMinima();
- //! The maxima of the problem bounds
- vector<double> boundsMaxima();
+ //! The maxima of the problem bounds
+ vector<double> boundsMaxima();
- //! The bounds matrix
- /*!
- This method call getBoundsMinima and getBoundsMaxima to produce
- a matrix with each dimension on a row.
- */
- vector<vector<double> > bounds();
+ //! The bounds matrix
+ /*!
+ This method call getBoundsMinima and getBoundsMaxima to produce
+ a matrix with each dimension on a row.
+ */
+ vector<vector<double> > bounds();
+
+ //! Return the dimension
+ int getDimension();
+
+};
+
+class itsCommunicationServerFactory
+{
+public:
+ virtual itsCommunicationServer * create() = 0;
};
#endif
- [oMetah-devel] ometah/communication itsCommunicationClient.hpp...,
Johann <=