VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
backendSelectorManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vlpi/simulationAddress.h>
10 #include "vrfutil/scenario.h"
11 
12 #include <map>
13 #include <string>
14 
16 class DtEntityType;
17 class DtSessionStatus;
18 
23 
25 {
26 public:
29  virtual ~DtBackendSelectorManager();
30 
33  virtual DtSimulationAddress backendCreationAddress(const DtEntityType& ot, const DtSimulationAddress&) const;
34 
35  virtual void setGuiRuntimeLoadBalancing(DtLoadBalancingFcn, void*, const DtString&);
37  {
38  return myLoadBalancingFcn;
39  }
40 
41  void* loadBalancingUserData() const
42  {
43  return myUserData;
44  }
45 
47  {
48  return myUserOptions;
49  }
50 
51 protected:
52  static void scenarioStatusChangedCallback(const DtSessionStatus&, void*);
53  virtual void processScenarioStatusChanged(const DtSessionStatus&);
54 
55 protected:
59  void* myUserData = nullptr;
60 };
#define DT_DLL_vrfcontrol
This file is used to determine how to build.
Definition: vrfcontrolDefines.h:28
DtString myUserOptions
Definition: backendSelectorManager.h:58
Basic container class that holds the status of a session of VRF sim engines.
Definition: sessionStatus.h:21
Instances of DtVrfBackendListener are used to track the status of VRF applications. The applications are tracked in a list which is keyed by their message address. For each entry, isActive is true if the application sends out a status message and isLoaded is true if the application has completed the processing of a load scenario message.
Definition: vrfBackendListener.h:79
DtLoadBalancingFcn loadBalancingFunction() const
Definition: backendSelectorManager.h:36
The DtBackendSelectorManager class will keep track of handlers that can be used to select a back-end ...
Definition: backendSelectorManager.h:24
void * loadBalancingUserData() const
Definition: backendSelectorManager.h:41
DtLoadBalancingFcn myLoadBalancingFcn
Definition: backendSelectorManager.h:57
const DtString & loadBalancingUserOptions() const
Definition: backendSelectorManager.h:46
DtVrfBackendListener * myListener
Definition: backendSelectorManager.h:56
bool(* DtLoadBalancingFcn)(DtAddressMap *map, const DtVrfFileParser *parser, const DtList *backends, bool &remapped, void *usr, const DtString &userOptions)
Return true from this function to signal success of load balancing, however, set remapped to true if ...
Definition: scenario.h:575

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)