basic structs for the calculation

This commit is contained in:
Andreas Schröpfer
2020-12-23 08:16:08 +01:00
parent 8389e0b5c6
commit 148382f70a
2 changed files with 45 additions and 0 deletions

42
goodcalc.go Normal file
View File

@@ -0,0 +1,42 @@
// Package goodcalc is a good balance calculator
package goodcalc
type Matrix struct {
MaxPoints int
Stakeholders []Stakeholder
}
type Stakeholder struct {
No string
Weight float32
}
type Theme struct {
No string
Weight float32
Aspects []Aspect
NegativeAspects []NegativeAspect
ThemeCalc // calculatet values
}
type Aspect struct {
No string
Weight float32
Points int
}
type NegativeAspect struct {
Aspect
}
type ThemeCalc struct {
CalcWeight float32
WeightFactor float32
MaxPoints float32
NrPositiveAspects int
ValuationPoints int
EstPercentage float32
blancePoints int
NegativeValuationPoints int
NegativeBlancePoints int
}