SEFunctionElectricPotentialVsTime.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/properties/SEFunction.h"
6
8{
9 friend class PBProperty;//friend the serialization class
10public:
11
14
15 void Clear() override;
16 void Copy(const SEFunction& src) = delete;
18
19 double GetIndependentValue(size_t index) = delete;
20 const CCompoundUnit* GetIndependentUnit() const override {return (CCompoundUnit*)m_TimeUnit;}
21 double GetTimeValue(size_t index, const TimeUnit& unit) const;
22 std::vector<double>& GetTime();
23 const TimeUnit* GetTimeUnit() const;
24 void SetTimeUnit(const TimeUnit& unit);
25
26 double GetDependentValue(size_t index) = delete;
27 const CCompoundUnit* GetDependentUnit() const override {return (CCompoundUnit*)m_ElectricPotentialUnit;}
28 double GetElectricPotentialValue(size_t index, const ElectricPotentialUnit& unit) const;
29 std::vector<double>& GetElectricPotential();
30 const ElectricPotentialUnit* GetElectricPotentialUnit() const;
31 void SetElectricPotentialUnit(const ElectricPotentialUnit& unit);
32
33protected:
34
37};
Definition: CompoundUnit.h:40
Definition: SEScalarElectricPotential.h:8
Definition: PBProperties.h:87
Definition: SEFunctionElectricPotentialVsTime.h:8
double GetIndependentValue(size_t index)=delete
const ElectricPotentialUnit * m_ElectricPotentialUnit
Definition: SEFunctionElectricPotentialVsTime.h:36
void Copy(const SEFunction &src)=delete
const TimeUnit * m_TimeUnit
Definition: SEFunctionElectricPotentialVsTime.h:35
const CCompoundUnit * GetDependentUnit() const override
Definition: SEFunctionElectricPotentialVsTime.h:27
const CCompoundUnit * GetIndependentUnit() const override
Definition: SEFunctionElectricPotentialVsTime.h:20
double GetDependentValue(size_t index)=delete
Definition: SEFunction.h:8
virtual void Clear()
Definition: SEFunction.cpp:19
void Copy(const SEFunction &src)
Definition: SEFunction.cpp:25
Definition: SEScalarTime.h:8

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.