BioGearsSystem.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/exports.h>
16 
17 namespace biogears {
18 class BioGearsEngine;
19 
23 class BIOGEARS_API BioGearsSystem {
25 
26 public:
30  virtual void Initialize()
31  {
32  SetUp();
33  }
35  virtual void AtSteadyState(){};
36  virtual void PreProcess() = 0;
37  virtual void Process() = 0;
38  virtual void PostProcess() = 0;
39 
40 protected:
41  virtual void SetUp() = 0;
42  virtual void LoadState()
43  {
44  SetUp();
45  }
46 };
47 }
virtual void Initialize()
Default system values to their homeostatic values
Definition: BioGearsSystem.h:30
friend BioGearsEngine
Definition: BioGearsSystem.h:24
virtual void AtSteadyState()
Notify systems that steady state has been achieved.
Definition: BioGearsSystem.h:35
Generic class for handling the BioGears stabilization methodology.
Definition: BioGearsSystem.h:23
Definition: SEElectricalCircuit.h:18
virtual void LoadState()
Definition: BioGearsSystem.h:42