Skip to content

Commit 3b0108e

Browse files
authored
Merge pull request #3 from vs-uulm/feature/discout-operators
added DiscountOperator type
2 parents 8695024 + c32e5b5 commit 3b0108e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package trustmodelstructure
2+
3+
type DiscountOperator int
4+
5+
const (
6+
DefaultDiscount = iota
7+
OppositeBeliefDiscount
8+
)

pkg/trustmodelstructure/structure.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package trustmodelstructure
33
// A TrustGraphStructure defines the graph-structural properties of a trust model. It does not define scopes, as scopes are only defined for the values of a graph (i.e., trust opinions)
44
type TrustGraphStructure interface {
55
Operator() FusionOperator
6+
DiscountOperator() DiscountOperator
67
AdjacencyList() []AdjacencyListEntry
78
}
89

0 commit comments

Comments
 (0)