Ignore:
Timestamp:
09/10/20 13:51:02 (4 years ago)
Author:
ymipsl
Message:

Big update on on going work related to data distribution and transfer between clients and servers.
Revisite of the source and store filter using "connectors".

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field.hpp

    r1883 r1930  
    1919#include "pass_through_filter.hpp" 
    2020#include "temporal_filter.hpp" 
    21  
    22  
    23  
    24 namespace xios { 
     21#include "model_to_client_source_filter.hpp" 
     22#include "client_from_client_source_filter.hpp" 
     23#include "client_from_server_source_filter.hpp" 
     24#include "client_to_model_store_filter.hpp" 
     25 
     26 
     27 
     28 
     29namespace xios  
     30{ 
    2531 
    2632   /// ////////////////////// Déclarations ////////////////////// /// 
     
    4046   class COutputPin; 
    4147   class CSourceFilter; 
    42    class CStoreFilter; 
    4348   class CFileWriterFilter; 
    4449   class CFileServerWriterFilter; 
    45    class CFileServerReaderFilter; 
     50   class CFileReaderSourceFilter; 
    4651   class CServerToClientFilter; 
     52   class CModelToClientSourceFilter; 
     53   class CServerFromClientSourceFilter; 
    4754   ///-------------------------------------------------------------- 
    4855 
     
    6673         typedef CFieldAttributes SuperClassAttribute; 
    6774 
     75      public :    
    6876         enum EReadField 
    6977         { 
     
    188196 
    189197        static void recvUpdateData(CEventServer& event); 
    190         void recvUpdateData(std::map<int,CBufferIn*>& rankBuffers); 
    191         void recvUpdateDataFromClient(std::map<int,CBufferIn*>& rankBuffers); 
    192         void recvUpdateDataFromCoupler(std::map<int,CBufferIn*>& rankBuffers); 
     198        void receiveUpdateData(CEventServer& event);   
     199         
     200        void recvUpdateData(std::map<int,CBufferIn*>& rankBuffers); // old interface to be removed 
     201        void recvUpdateDataFromClient(std::map<int,CBufferIn*>& rankBuffers); // old interface to be removed 
     202        void recvUpdateDataFromCoupler(std::map<int,CBufferIn*>& rankBuffers); // old interface to be removed 
    193203         
    194204        void writeField(const CArray<double,1>& data); 
     
    196206        bool sendReadDataRequestIfNeeded(void); 
    197207        static void recvReadDataRequest(CEventServer& event); 
    198         void recvReadDataRequest(CContextServer* server); 
     208        void recvReadDataRequest(void); 
    199209        EReadField readField(CArray<double,1>& data); 
    200210        static void recvReadDataReady(CEventServer& event); 
    201         void recvReadDataReady(vector<int> ranks, vector<CBufferIn*> buffers); 
    202         void recvDataFromCoupler(vector<int> ranks, vector<CBufferIn*> buffers) ; 
     211        void receiveReadDataReady(CEventServer& event); 
     212        void recvReadDataReady(vector<int> ranks, vector<CBufferIn*> buffers); // old interface to remove 
     213        void recvDataFromCoupler(vector<int> ranks, vector<CBufferIn*> buffers) ; // old interface to remove 
    203214        void checkForLateDataFromServer(void); 
    204215        void checkForLateDataFromCoupler(void) ; 
     
    393404 
    394405         //! The source filter for data provided by the client 
    395          std::shared_ptr<CSourceFilter> clientSourceFilter; 
    396           
     406         std::shared_ptr<CSourceFilter> clientSourceFilter; // obsolete to remove 
     407  
     408         //! The source filter for data provided by the model to enter the client workflow 
     409         std::shared_ptr<CModelToClientSourceFilter> modelToClientSourceFilter_; 
     410 
     411         //! The source filter for data provided by the model to enter the client workflow 
     412         std::shared_ptr<CClientToModelStoreFilter> clientToModelStoreFilter_; 
     413 
     414         //! The source filter for data provided by the client that send data to server workflow 
     415         std::shared_ptr<CServerFromClientSourceFilter> serverFromClientSourceFilter_; 
     416 
     417         //! The source filter for data provided by an other to enter the current client workflow (coupling mode) 
     418         std::shared_ptr<CClientFromClientSourceFilter> clientFromClientSourceFilter_; 
     419 
     420         //! The source filter for data provided by server to enter the current client workflow (reading mode) 
     421         std::shared_ptr<CClientFromServerSourceFilter> clientFromServerSourceFilter_; 
     422          
     423         //! The source filter for data read from file on server side  
     424         std::shared_ptr<CFileReaderSourceFilter> fileReaderSourceFilter_; 
     425 
    397426         //! The source filter for data provided by the server 
    398          std::shared_ptr<CSourceFilter> serverSourceFilter; 
    399           
    400          //! The terminal filter which stores the instant data 
    401          std::shared_ptr<CStoreFilter> storeFilter; 
     427         std::shared_ptr<CSourceFilter> serverSourceFilter; // obsolete to remove 
    402428         
    403429         //! The terminal filter which writes the data to file 
     
    407433         std::shared_ptr<CFileServerWriterFilter> fileServerWriterFilter; 
    408434 
    409          //! The source filter which read data from file 
    410          std::shared_ptr<CFileServerReaderFilter> fileServerReaderFilter_; 
    411  
    412          //! The terminal filter which send data from file server to client 
     435         //! The terminal filter which send data from server to client 
    413436         std::shared_ptr<CServerToClientFilter> serverToClientFilter_; 
    414437 
Note: See TracChangeset for help on using the changeset viewer.