Class: Inverter
- Defined in:
- lib/PVLIB_Ruby/models/inverter.rb
Overview
This is a model in model-view-controller design pattern. In this case, it is expending ActiveCsv, i.e. it is analogous to ActiveRecord. Hence, it’s a placeholder for data from CSV file.
Instance Attribute Summary collapse
-
#c0 ⇒ Object
Returns the value of attribute c0.
-
#c1 ⇒ Object
Returns the value of attribute c1.
-
#c2 ⇒ Object
Returns the value of attribute c2.
-
#c3 ⇒ Object
Returns the value of attribute c3.
-
#idcmax ⇒ Object
Returns the value of attribute idcmax.
-
#libraryname ⇒ Object
Returns the value of attribute libraryname.
-
#librarytype ⇒ Object
Returns the value of attribute librarytype.
-
#mppthi ⇒ Object
Returns the value of attribute mppthi.
-
#mpptlow ⇒ Object
Returns the value of attribute mpptlow.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pac0 ⇒ Object
Returns the value of attribute pac0.
-
#pdc0 ⇒ Object
Returns the value of attribute pdc0.
-
#pnt ⇒ Object
Returns the value of attribute pnt.
-
#ps0 ⇒ Object
Returns the value of attribute ps0.
-
#vac ⇒ Object
Returns the value of attribute vac.
-
#vdc0 ⇒ Object
Returns the value of attribute vdc0.
-
#vdcmax ⇒ Object
Returns the value of attribute vdcmax.
Instance Method Summary collapse
- #coefficient_for_dc_power_for_maximum_ac_power_rating ⇒ Object
- #coefficient_for_power_adjustment_coefficient ⇒ Object
- #coefficient_for_starting_dc_power ⇒ Object
- #dc_power_for_maximum_ac_power_rating ⇒ Object
- #dc_power_level_for_maximum_ac_power_rating ⇒ Object
- #maximum_ac_power_rating ⇒ Object
- #night_tare_loss ⇒ Object
- #power_adjustment_coefficient ⇒ Object
- #starting_dc_power ⇒ Object
Methods inherited from ActiveCsv
create, #load_data, #persisted?, #valid?
Instance Attribute Details
#c0 ⇒ Object
Returns the value of attribute c0.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def c0 @c0 end |
#c1 ⇒ Object
Returns the value of attribute c1.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def c1 @c1 end |
#c2 ⇒ Object
Returns the value of attribute c2.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def c2 @c2 end |
#c3 ⇒ Object
Returns the value of attribute c3.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def c3 @c3 end |
#idcmax ⇒ Object
Returns the value of attribute idcmax.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def idcmax @idcmax end |
#libraryname ⇒ Object
Returns the value of attribute libraryname.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def libraryname @libraryname end |
#librarytype ⇒ Object
Returns the value of attribute librarytype.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def librarytype @librarytype end |
#mppthi ⇒ Object
Returns the value of attribute mppthi.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def mppthi @mppthi end |
#mpptlow ⇒ Object
Returns the value of attribute mpptlow.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def mpptlow @mpptlow end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def name @name end |
#pac0 ⇒ Object
Returns the value of attribute pac0.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def pac0 @pac0 end |
#pdc0 ⇒ Object
Returns the value of attribute pdc0.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def pdc0 @pdc0 end |
#pnt ⇒ Object
Returns the value of attribute pnt.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def pnt @pnt end |
#ps0 ⇒ Object
Returns the value of attribute ps0.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def ps0 @ps0 end |
#vac ⇒ Object
Returns the value of attribute vac.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def vac @vac end |
#vdc0 ⇒ Object
Returns the value of attribute vdc0.
7 8 9 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7 def vdc0 @vdc0 end |
#vdcmax ⇒ Object
Returns the value of attribute vdcmax.
8 9 10 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8 def vdcmax @vdcmax end |
Instance Method Details
#coefficient_for_dc_power_for_maximum_ac_power_rating ⇒ Object
18 19 20 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 18 def BigDecimal(self.c1.to_s) end |
#coefficient_for_power_adjustment_coefficient ⇒ Object
38 39 40 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 38 def coefficient_for_power_adjustment_coefficient BigDecimal(self.c3.to_s) end |
#coefficient_for_starting_dc_power ⇒ Object
30 31 32 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 30 def coefficient_for_starting_dc_power BigDecimal(self.c2.to_s) end |
#dc_power_for_maximum_ac_power_rating ⇒ Object
14 15 16 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 14 def BigDecimal(self.pdc0.to_s) end |
#dc_power_level_for_maximum_ac_power_rating ⇒ Object
22 23 24 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 22 def BigDecimal(self.vdc0.to_s) end |
#maximum_ac_power_rating ⇒ Object
10 11 12 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 10 def BigDecimal(self.pac0.to_s) end |
#night_tare_loss ⇒ Object
42 43 44 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 42 def night_tare_loss BigDecimal(self.pnt.to_s) end |
#power_adjustment_coefficient ⇒ Object
34 35 36 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 34 def power_adjustment_coefficient BigDecimal(self.c0.to_s) end |
#starting_dc_power ⇒ Object
26 27 28 |
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 26 def starting_dc_power BigDecimal(self.ps0.to_s) end |