SELiquidCompartmentGraph.h
1 /**************************************************************************************
2 Copyright 2015 Applied Research Associates, Inc.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the License
5 at:
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software distributed under
8 the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
9 CONDITIONS OF ANY KIND, either express or implied. See the License for the
10 specific language governing permissions and limitations under the License.
11 **************************************************************************************/
12 
13 #pragma once
14 #include <biogears/cdm/CommonDataModel.h>
15 #include <biogears/cdm/compartment/SECompartmentTransportGraph.h>
16 #include <biogears/schema/cdm/Compartment.hxx>
17 #include <biogears/cdm/substance/SESubstanceTransport.h>
18 #include <biogears/cdm/compartment/fluid/SELiquidCompartmentLink.h>
19 
20 CDM_BIND_DECL(LiquidCompartmentGraphData)
21 
22 namespace biogears {
23 class SECompartmentManager;
24 class BIOGEARS_API SELiquidCompartmentGraph : public SECompartmentTransportGraph<SELiquidTransportGraph, SELiquidTransportVertex, SELiquidTransportEdge, SELiquidCompartment, SELiquidCompartmentLink> {
25  friend class SECompartmentManager;
26 
27 protected:
28  SELiquidCompartmentGraph(const char* name, Logger* logger);
29  SELiquidCompartmentGraph(const std::string& name, Logger* logger);
30 
31 public:
32  virtual ~SELiquidCompartmentGraph() override;
33 
34  void AddGraph(SELiquidCompartmentGraph& graph);
35 
36  virtual bool Load(const CDM::LiquidCompartmentGraphData& in, SECompartmentManager& cmptMgr);
37  virtual CDM::LiquidCompartmentGraphData* Unload();
38 
39 protected:
40  virtual void Unload(CDM::LiquidCompartmentGraphData& data);
41 
42 protected:
43  void BalanceByIntensive() override;
44 };
45 }
Definition: SELiquidCompartmentGraph.h:24
Definition: SECompartmentManager.h:32
Definition: Logger.h:75
Definition: SECompartmentTransportGraph.h:24
virtual void BalanceByIntensive() override=0
Class corresponding to the LiquidCompartmentGraphData schema type.
Definition: Compartment.hxx:3296
Definition: SEElectricalCircuit.h:18