Something went wrong on our end
Forked from
VECTO / VECTO Sim
6237 commits behind the upstream repository.
-
Markus QUARITSCH authoredMarkus QUARITSCH authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
EnvironmentalCondition.vb 1005 B
Imports VectoAuxiliaries.DownstreamModules.HVAC
Namespace Hvac
Public Class EnvironmentalCondition
Implements IEnvironmentalCondition
Private _temperature As Double
Private _solar As Double
Private _weight As Double
Public Sub New(temperature As Double, solar As Double, weight As Double)
_temperature = temperature
_solar = solar
_weight = weight
End Sub
Public Function GetTemperature() As Double Implements IEnvironmentalCondition.GetTemperature
Return _temperature
End Function
Public Function GetSolar() As Double Implements IEnvironmentalCondition.GetSolar
Return _solar
End Function
Public Function GetWeight() As Double Implements IEnvironmentalCondition.GetWeighting
Return _weight
End Function
Public Function GetNormalisedWeight(map As List(Of IEnvironmentalCondition)) As Double _
Implements IEnvironmentalCondition.GetNormalisedWeighting
Return _weight/map.Sum(Function(w) w.GetWeighting())
End Function
End Class
End Namespace