initial commit

This commit is contained in:
Andreas Schröpfer
2020-12-13 08:26:15 +01:00
commit e1dcf9b740
3 changed files with 91 additions and 0 deletions

31
valuation/valuation.go Normal file
View File

@@ -0,0 +1,31 @@
package valuation
type Matrix struct {
Version string // Semantic Version of the matrix 5.0.0
Target string // Unternehmen oder Gemeinde
Subjects [][]Subject
}
type Subject struct {
Version string // Semantic Version of the matrix 5.0.0
Target string // Unternehmen oder Gemeinde
ID string // A1
Weight Weight // 1.5
Aspects []Aspect // Auflistung der einzelnen Aspekte
NegativeAspects []Aspect // Negativaspekte
}
type Aspect struct {
Version string // Semantic Version of the matrix 5.0.0
Target string // Unternehmen oder Gemeinde
ID string // A1.1
Weight Weight // 1.5
Explanation string // ausführliche Begründung
EvaluationStepTitle string // Basislinie
Value int // Punkte
}
// Weight is used
type Weight struct {
w float32 // kann bei float-Problemen umgestellt werden
}