basic structs for the calculation
This commit is contained in:
3
go.mod
Normal file
3
go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module git.ecogood.org/andras.schroepfer/goodcalc
|
||||
|
||||
go 1.15
|
||||
42
goodcalc.go
Normal file
42
goodcalc.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user