Ignore:
Timestamp:
07/16/20 17:18:01 (4 years ago)
Author:
ymipsl
Message:

Big update on on going work related to data distribution and transfer between clients and servers.

  • move all related file into distribution directorie
  • implement the concept of data "View"
  • implement the concept of "connector" which make the data transfer between 2 differents "Views"

YM

File:
1 edited

Legend:

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

    r1875 r1918  
    1818#include "server_distribution_description.hpp" 
    1919#include "mesh.hpp" 
     20#include "element.hpp" 
     21#include "local_connector.hpp" 
     22#include "gatherer_connector.hpp" 
    2023 
    2124namespace xios { 
     
    5053           EVENT_ID_INDEX, EVENT_ID_LON, EVENT_ID_LAT,  
    5154           EVENT_ID_AREA, 
    52            EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT 
     55           EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT, 
     56           EVENT_ID_DOMAIN_DISTRIBUTION 
    5357         } ; 
    5458 
     
    216220       private: 
    217221 
     222         static void recvDomainDistribution(CEventServer& event) ; 
     223         void receivedDomainDistribution(CEventServer& event, int phasis) ; 
     224         
     225 
     226         void sendDomainDistribution(CContextClient* client, const string& domainId="") ; //for testing 
    218227         void sendAttributes(); // ym obsolete -> to be removed 
    219228         void sendIndex(CContextClient* client, const string& domainId=""); 
     
    301310         static bool _dummyTransformationMapList; 
    302311 
     312  
     313       private: 
     314         CLocalElement* localElement_ = nullptr ; 
     315         void initializeLocalElement(void) ; 
     316        
     317       public:   
     318         CLocalElement* getLocalElement(void) { if (localElement_==nullptr) initializeLocalElement() ; return localElement_ ; } 
     319         CLocalView* getLocalView(CElementView::type type) { return getLocalElement()->getView(type) ;} 
     320        
     321       private:   
     322         void addFullView(void) ; 
     323         void addWorkflowView(void) ; 
     324         void addModelView(void) ; 
     325         
     326       private: 
     327         CLocalConnector* modelToWorkflowConnector_ ; 
     328         void computeModelToWorkflowConnector(void)  ; 
     329         CGathererConnector*  gathererConnector_ ; 
     330 
     331       public: 
     332         CLocalConnector* getModelToWorkflowConnector(void) { if (modelToWorkflowConnector_==nullptr) computeModelToWorkflowConnector() ; return modelToWorkflowConnector_ ;} 
     333          
    303334         DECLARE_REF_FUNC(Domain,domain) 
    304335 
Note: See TracChangeset for help on using the changeset viewer.