HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GAS_NetSliceBalance.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GAS_NetSliceBalance.h ( GAS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GAS_NetSliceBalance__
12 #define __GAS_NetSliceBalance__
13 
14 #include "GAS_API.h"
15 
16 #include "GAS_SubSolver.h"
17 #include "GAS_Utils.h"
18 
19 #include <SIM/SIM_SlicePlane.h>
20 
21 class SIM_GeometryCopy;
22 class GU_Detail;
23 class SIM_SlicePlane;
24 
26 {
27 public:
28  GET_DATA_FUNC_S(GAS_NAME_GEOMETRY, GeometryName);
29 
30  GET_DATA_FUNC_S(GAS_NAME_TRACKERADDR, TrackerAddress);
33  GET_DATA_FUNC_I("slice", Slice);
34 
35  GET_DATA_FUNC_S("sliceattr", SliceAttr);
36  GET_DATA_FUNC_S("sliceroot", SliceRoot);
37 
38  GET_DATA_FUNC_F("balanceweight", BalanceWeight);
39  GET_DATA_FUNC_F("timeweight", TimeWeight);
40 
41 protected:
42  explicit GAS_NetSliceBalance(const SIM_DataFactory *factory);
43  virtual ~GAS_NetSliceBalance();
44 
45  virtual bool solveGasSubclass(SIM_Engine &engine,
46  SIM_Object *obj,
47  SIM_Time time,
48  SIM_Time timestep);
49 
50 private:
51  void doNetBalance(SIM_GeometryCopy *geo,
52  SIM_SlicePlane *sliceroot,
53  int64 delta,
54  const char *address,
55  int port,
56  const char *jobname);
57 
58  static const SIM_DopDescription *getDopDescription();
59 
63  "Gas Net Slice Balance",
64  getDopDescription());
65 };
66 
67 #endif
68 
#define DECLARE_STANDARD_GETCASTTOTYPE()
Definition: SIM_DataUtils.h:45
#define GAS_NAME_GEOMETRY
Definition: GAS_Utils.h:28
#define GAS_API
Definition: GAS_API.h:10
virtual bool solveGasSubclass(SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)=0
#define DECLARE_DATAFACTORY(DataClass, SuperClass, Description, DopParms)
Definition: SIM_DataUtils.h:58
long long int64
Definition: SYS_Types.h:100
#define GET_DATA_FUNC_I(DataName, FuncName)
#define GAS_NAME_TRACKERADDR
Definition: GAS_Utils.h:41
#define GAS_NAME_TRACKERPORT
Definition: GAS_Utils.h:42
#define GAS_NAME_JOBNAME
Definition: GAS_Utils.h:43
#define GET_DATA_FUNC_F(DataName, FuncName)
#define GET_DATA_FUNC_S(DataName, FuncName)
This implements a SIM_Geometry that copies the source geometry.