Class: Inverter

Inherits:
ActiveCsv show all
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

Instance Method Summary collapse

Methods inherited from ActiveCsv

create, #load_data, #persisted?, #valid?

Instance Attribute Details

#c0Object

Returns the value of attribute c0.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def c0
  @c0
end

#c1Object

Returns the value of attribute c1.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def c1
  @c1
end

#c2Object

Returns the value of attribute c2.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def c2
  @c2
end

#c3Object

Returns the value of attribute c3.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def c3
  @c3
end

#idcmaxObject

Returns the value of attribute idcmax.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def idcmax
  @idcmax
end

#librarynameObject

Returns the value of attribute libraryname.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def libraryname
  @libraryname
end

#librarytypeObject

Returns the value of attribute librarytype.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def librarytype
  @librarytype
end

#mppthiObject

Returns the value of attribute mppthi.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def mppthi
  @mppthi
end

#mpptlowObject

Returns the value of attribute mpptlow.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def mpptlow
  @mpptlow
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def name
  @name
end

#pac0Object

Returns the value of attribute pac0.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def pac0
  @pac0
end

#pdc0Object

Returns the value of attribute pdc0.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def pdc0
  @pdc0
end

#pntObject

Returns the value of attribute pnt.



8
9
10
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 8

def pnt
  @pnt
end

#ps0Object

Returns the value of attribute ps0.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def ps0
  @ps0
end

#vacObject

Returns the value of attribute vac.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def vac
  @vac
end

#vdc0Object

Returns the value of attribute vdc0.



7
8
9
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 7

def vdc0
  @vdc0
end

#vdcmaxObject

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_ratingObject



18
19
20
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 18

def coefficient_for_dc_power_for_maximum_ac_power_rating
  BigDecimal(self.c1.to_s)
end

#coefficient_for_power_adjustment_coefficientObject



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_powerObject



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_ratingObject



14
15
16
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 14

def dc_power_for_maximum_ac_power_rating
  BigDecimal(self.pdc0.to_s)
end

#dc_power_level_for_maximum_ac_power_ratingObject



22
23
24
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 22

def dc_power_level_for_maximum_ac_power_rating
  BigDecimal(self.vdc0.to_s)
end

#maximum_ac_power_ratingObject



10
11
12
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 10

def maximum_ac_power_rating
  BigDecimal(self.pac0.to_s)
end

#night_tare_lossObject



42
43
44
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 42

def night_tare_loss
  BigDecimal(self.pnt.to_s)
end

#power_adjustment_coefficientObject



34
35
36
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 34

def power_adjustment_coefficient
  BigDecimal(self.c0.to_s)
end

#starting_dc_powerObject



26
27
28
# File 'lib/PVLIB_Ruby/models/inverter.rb', line 26

def starting_dc_power
  BigDecimal(self.ps0.to_s)
end