43 lines
777 B
Go
43 lines
777 B
Go
// 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
|
|
}
|