satisfaction_levels

package
v0.0.0-...-4dcd76e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const IdealAdditive = "idealAdditiveCoefficient"
View Source
const IdealDecreasingMul = "idealMultipliedCoefficient"
View Source
const IdealIncreasingMul = "idealMultipliedCoefficient"
View Source
const IdealSubtractive = "idealSubtractiveCoefficient"
View Source
const Thresholds = "thresholds"

Variables

View Source
var DecreasingThresholds = ThresholdSatisfactionLevelsSource{
	// contains filtered or unexported fields
}
View Source
var IdealAdditiveCoefficientSatisfaction = IdealCoefficientSatisfactionLevelsSource{
	// contains filtered or unexported fields
}
View Source
var IdealDecreasingMulCoefficientSatisfaction = IdealCoefficientSatisfactionLevelsSource{
	// contains filtered or unexported fields
}
View Source
var IdealIncreasingMulCoefficientSatisfaction = IdealCoefficientSatisfactionLevelsSource{
	// contains filtered or unexported fields
}
View Source
var IdealSubtrCoefficientSatisfaction = IdealCoefficientSatisfactionLevelsSource{
	// contains filtered or unexported fields
}
View Source
var IncreasingThresholds = ThresholdSatisfactionLevelsSource{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type CoefficientManager

type CoefficientManager interface {
	Validate(params *IdealCoefficientSatisfactionLevels)
	UpdateValue(current, coefficient float64) float64
	InitialValue(params *IdealCoefficientSatisfactionLevels) float64
	HasNext(params *IdealCoefficientSatisfactionLevels) bool
}

type CriterionAdder

type CriterionAdder interface {
	OnCriterionAdded(
		criterion *model.Criterion,
		referenceCriterion *model.Criterion,
		params SatisfactionLevels,
		generator utils.ValueGenerator,
	) ParamsAddition
}

type CriterionRemover

type CriterionRemover interface {
	OnCriteriaRemoved(leftCriteria *model.Criteria, params SatisfactionLevels) SatisfactionLevels
}

type DecreasingCoefficientManager

type DecreasingCoefficientManager struct {
	// contains filtered or unexported fields
}

func (*DecreasingCoefficientManager) HasNext

func (*DecreasingCoefficientManager) InitialValue

func (*DecreasingCoefficientManager) UpdateValue

func (d *DecreasingCoefficientManager) UpdateValue(current, coefficient float64) float64

func (*DecreasingCoefficientManager) Validate

type IdealCoefficientSatisfactionLevels

type IdealCoefficientSatisfactionLevels struct {
	Coefficient float64 `json:"coefficient"`
	MaxValue    float64 `json:"maxValue"`
	MinValue    float64 `json:"minValue"`
	// contains filtered or unexported fields
}

func (*IdealCoefficientSatisfactionLevels) HasNext

func (*IdealCoefficientSatisfactionLevels) Initialize

func (*IdealCoefficientSatisfactionLevels) Next

type IdealCoefficientSatisfactionLevelsSource

type IdealCoefficientSatisfactionLevelsSource struct {
	// contains filtered or unexported fields
}

func (*IdealCoefficientSatisfactionLevelsSource) BlankParams

func (*IdealCoefficientSatisfactionLevelsSource) Identifier

func (*IdealCoefficientSatisfactionLevelsSource) Merge

func (*IdealCoefficientSatisfactionLevelsSource) OnCriteriaRemoved

func (*IdealCoefficientSatisfactionLevelsSource) OnCriterionAdded

func (s *IdealCoefficientSatisfactionLevelsSource) OnCriterionAdded(criterion *model.Criterion, referenceCriterion *model.Criterion, params SatisfactionLevels, generator utils.ValueGenerator) ParamsAddition

type IncreasingCoefficientManager

type IncreasingCoefficientManager struct {
	// contains filtered or unexported fields
}

func (*IncreasingCoefficientManager) HasNext

func (*IncreasingCoefficientManager) InitialValue

func (*IncreasingCoefficientManager) UpdateValue

func (i *IncreasingCoefficientManager) UpdateValue(current, coefficient float64) float64

func (*IncreasingCoefficientManager) Validate

type ParamsAddition

type ParamsAddition = interface{}

type SatisfactionLevels

type SatisfactionLevels interface {
	Initialize(dmp *model.DecisionMakingParams)
	HasNext() bool
	Next() model.Weights
}

func Find

func Find(function string, params interface{}, functions []SatisfactionLevelsSource) SatisfactionLevels

type SatisfactionLevelsSource

type SatisfactionLevelsSource interface {
	utils.Identifiable
	SatisfactionParamsSource
}

type SatisfactionLevelsUpdateListeners

type SatisfactionLevelsUpdateListeners struct {
	Listeners ListenersMap
}

func (*SatisfactionLevelsUpdateListeners) Fetch

func (*SatisfactionLevelsUpdateListeners) Get

type SatisfactionParamsMerger

type SatisfactionParamsMerger interface {
	Merge(params SatisfactionLevels, addition ParamsAddition) SatisfactionLevels
}

type SatisfactionParamsSource

type SatisfactionParamsSource interface {
	BlankParams() SatisfactionLevels
}

type ThresholdSatisfactionLevels

type ThresholdSatisfactionLevels struct {
	Thresholds []model.Weights `json:"thresholds"`
	// contains filtered or unexported fields
}

func (*ThresholdSatisfactionLevels) HasNext

func (t *ThresholdSatisfactionLevels) HasNext() bool

func (*ThresholdSatisfactionLevels) Initialize

func (*ThresholdSatisfactionLevels) Next

type ThresholdSatisfactionLevelsSource

type ThresholdSatisfactionLevelsSource struct {
	// contains filtered or unexported fields
}

func (*ThresholdSatisfactionLevelsSource) BlankParams

func (*ThresholdSatisfactionLevelsSource) Identifier

func (t *ThresholdSatisfactionLevelsSource) Identifier() string

func (*ThresholdSatisfactionLevelsSource) Merge

func (*ThresholdSatisfactionLevelsSource) OnCriteriaRemoved

func (t *ThresholdSatisfactionLevelsSource) OnCriteriaRemoved(leftCriteria *model.Criteria, params SatisfactionLevels) SatisfactionLevels

func (*ThresholdSatisfactionLevelsSource) OnCriterionAdded

func (t *ThresholdSatisfactionLevelsSource) OnCriterionAdded(
	criterion *model.Criterion,
	referenceCriterion *model.Criterion,
	params SatisfactionLevels,
	generator utils.ValueGenerator,
) ParamsAddition

type ThresholdsUpdate

type ThresholdsUpdate struct {
	Thresholds []model.Weights `json:"thresholds"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL