Skip to content

Commit

Permalink
Merge pull request #2 from vs-uulm/feature/fusion-operator-type
Browse files Browse the repository at this point in the history
Feature/fusion operator type
  • Loading branch information
berb authored Oct 8, 2024
2 parents a4fd326 + 0c2292d commit 14faf21
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions pkg/trustmodelstructure/operators.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package trustmodelstructure

type FusionOperator int

const (
AveragingFusion FusionOperator = iota
ConstraintFusion
CumulativeFusion
WeightedFusion
ConsensusAndCompromiseFusion
)
2 changes: 1 addition & 1 deletion pkg/trustmodelstructure/structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package trustmodelstructure

// 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)
type TrustGraphStructure interface {
Operator() string
Operator() FusionOperator
AdjacencyList() []AdjacencyListEntry
}

Expand Down

0 comments on commit 14faf21

Please sign in to comment.