MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
connection.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include "legionNet/export.h"
9 
11 
12 #include <memory>
13 
14 namespace Legion
15 {
16  class Configuration;
17  class SimulationDatabase;
18  class OwnershipManager;
19  class Boundary;
20 
21  typedef UInt64 ConnectionHandle;
22  const UInt32 ALL_ATTRIBUTE_SETS = 0xffff;
23 
25  {
26  public:
27  Connection(const SimulationDatabase& db, const Configuration& config);
28  virtual ~Connection();
29 
30  virtual ConnectionHandle handle() { return myHandle; }
31 
32  virtual bool isConnected();
33 
40  virtual void startProcessingMessages(double maxProcessingTime = 0.0);
41 
47  virtual void stopProcessingMessages();
48 
53  virtual void waitUntilDoneProcessingMessages();
54 
55  virtual UInt32 clientId();
56 
58  virtual void setInterest(const Boundary& boundary);
59 
61  virtual void removeInterest();
62 
64  virtual std::unique_ptr<Boundary> interest() const;
65 
67  virtual void setIntent(const Boundary& boundary);
68 
70  virtual void removeIntent();
71 
73  virtual std::unique_ptr<Boundary> intent() const;
74 
76  virtual OwnershipManager* ownershipManager();
77 
80 
81  virtual void setAttributeSetInterest(const UInt32 attrSetType = ALL_ATTRIBUTE_SETS);
82  virtual void addAttributeSetInterest(const UInt32 attrSetType = ALL_ATTRIBUTE_SETS);
83  virtual void removeAttributeSetInterest(const UInt32 attrSetType = ALL_ATTRIBUTE_SETS);
85 
86  protected:
89  };
90 }
UInt64 ConnectionHandle
Definition: connection.h:19
ConnectionHandle myHandle
Definition: connection.h:87
#define LEGIONNET_DLL
Definition: legionNet/export.h:15
Definition: ownershipManager.h:87
Definition: boundary.h:31
unsigned int UInt32
Definition: dataTypes.h:44
The SimulationDatabase stores all data for the simulation. It also owns the event, control, and view managers.
Definition: simulationDatabase.h:39
const UInt32 ALL_ATTRIBUTE_SETS
Definition: connection.h:22
virtual ConnectionHandle handle()
Definition: connection.h:30
unsigned long long UInt64
Definition: dataTypes.h:46
OwnershipManager * myOwnershipManager
Definition: connection.h:88
The configuration object parses the command line and loads a configuration file to provide the user c...
Definition: configuration.h:23
Definition: connection.h:24

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)