Documentation ¶
Index ¶
- Constants
- Variables
- type CoefficientManager
- type CriterionAdder
- type CriterionRemover
- type DecreasingCoefficientManager
- func (d *DecreasingCoefficientManager) HasNext(params *IdealCoefficientSatisfactionLevels) bool
- func (d *DecreasingCoefficientManager) InitialValue(params *IdealCoefficientSatisfactionLevels) float64
- func (d *DecreasingCoefficientManager) UpdateValue(current, coefficient float64) float64
- func (d *DecreasingCoefficientManager) Validate(params *IdealCoefficientSatisfactionLevels)
- type IdealCoefficientSatisfactionLevels
- type IdealCoefficientSatisfactionLevelsSource
- func (s *IdealCoefficientSatisfactionLevelsSource) BlankParams() SatisfactionLevels
- func (s *IdealCoefficientSatisfactionLevelsSource) Identifier() string
- func (s *IdealCoefficientSatisfactionLevelsSource) Merge(params SatisfactionLevels, addition ParamsAddition) SatisfactionLevels
- func (s *IdealCoefficientSatisfactionLevelsSource) OnCriteriaRemoved(leftCriteria *model.Criteria, params SatisfactionLevels) SatisfactionLevels
- func (s *IdealCoefficientSatisfactionLevelsSource) OnCriterionAdded(criterion *model.Criterion, referenceCriterion *model.Criterion, ...) ParamsAddition
- type IncreasingCoefficientManager
- func (i *IncreasingCoefficientManager) HasNext(params *IdealCoefficientSatisfactionLevels) bool
- func (i *IncreasingCoefficientManager) InitialValue(params *IdealCoefficientSatisfactionLevels) float64
- func (i *IncreasingCoefficientManager) UpdateValue(current, coefficient float64) float64
- func (i *IncreasingCoefficientManager) Validate(params *IdealCoefficientSatisfactionLevels)
- type ListenersMap
- type ParamsAddition
- type SatisfactionLevels
- type SatisfactionLevelsSource
- type SatisfactionLevelsUpdateListener
- type SatisfactionLevelsUpdateListeners
- type SatisfactionParamsMerger
- type SatisfactionParamsSource
- type ThresholdSatisfactionLevels
- type ThresholdSatisfactionLevelsSource
- func (t *ThresholdSatisfactionLevelsSource) BlankParams() SatisfactionLevels
- func (t *ThresholdSatisfactionLevelsSource) Identifier() string
- func (t *ThresholdSatisfactionLevelsSource) Merge(params SatisfactionLevels, addition ParamsAddition) SatisfactionLevels
- func (t *ThresholdSatisfactionLevelsSource) OnCriteriaRemoved(leftCriteria *model.Criteria, params SatisfactionLevels) SatisfactionLevels
- func (t *ThresholdSatisfactionLevelsSource) OnCriterionAdded(criterion *model.Criterion, referenceCriterion *model.Criterion, ...) ParamsAddition
- type ThresholdsUpdate
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 (d *DecreasingCoefficientManager) HasNext(params *IdealCoefficientSatisfactionLevels) bool
func (*DecreasingCoefficientManager) InitialValue ¶
func (d *DecreasingCoefficientManager) InitialValue(params *IdealCoefficientSatisfactionLevels) float64
func (*DecreasingCoefficientManager) UpdateValue ¶
func (d *DecreasingCoefficientManager) UpdateValue(current, coefficient float64) float64
func (*DecreasingCoefficientManager) Validate ¶
func (d *DecreasingCoefficientManager) Validate(params *IdealCoefficientSatisfactionLevels)
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 (s *IdealCoefficientSatisfactionLevels) HasNext() bool
func (*IdealCoefficientSatisfactionLevels) Initialize ¶
func (s *IdealCoefficientSatisfactionLevels) Initialize(dmp *model.DecisionMakingParams)
func (*IdealCoefficientSatisfactionLevels) Next ¶
func (s *IdealCoefficientSatisfactionLevels) Next() model.Weights
type IdealCoefficientSatisfactionLevelsSource ¶
type IdealCoefficientSatisfactionLevelsSource struct {
// contains filtered or unexported fields
}
func (*IdealCoefficientSatisfactionLevelsSource) BlankParams ¶
func (s *IdealCoefficientSatisfactionLevelsSource) BlankParams() SatisfactionLevels
func (*IdealCoefficientSatisfactionLevelsSource) Identifier ¶
func (s *IdealCoefficientSatisfactionLevelsSource) Identifier() string
func (*IdealCoefficientSatisfactionLevelsSource) Merge ¶
func (s *IdealCoefficientSatisfactionLevelsSource) Merge(params SatisfactionLevels, addition ParamsAddition) SatisfactionLevels
func (*IdealCoefficientSatisfactionLevelsSource) OnCriteriaRemoved ¶
func (s *IdealCoefficientSatisfactionLevelsSource) OnCriteriaRemoved(leftCriteria *model.Criteria, params SatisfactionLevels) SatisfactionLevels
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 (i *IncreasingCoefficientManager) HasNext(params *IdealCoefficientSatisfactionLevels) bool
func (*IncreasingCoefficientManager) InitialValue ¶
func (i *IncreasingCoefficientManager) InitialValue(params *IdealCoefficientSatisfactionLevels) float64
func (*IncreasingCoefficientManager) UpdateValue ¶
func (i *IncreasingCoefficientManager) UpdateValue(current, coefficient float64) float64
func (*IncreasingCoefficientManager) Validate ¶
func (i *IncreasingCoefficientManager) Validate(params *IdealCoefficientSatisfactionLevels)
type ListenersMap ¶
type ListenersMap = map[string]SatisfactionLevelsUpdateListener
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 SatisfactionLevelsUpdateListener ¶
type SatisfactionLevelsUpdateListener interface { SatisfactionParamsSource CriterionAdder CriterionRemover SatisfactionParamsMerger }
type SatisfactionLevelsUpdateListeners ¶
type SatisfactionLevelsUpdateListeners struct {
Listeners ListenersMap
}
func (*SatisfactionLevelsUpdateListeners) Fetch ¶
func (sl *SatisfactionLevelsUpdateListeners) Fetch(listenerName string) *SatisfactionLevelsUpdateListener
func (*SatisfactionLevelsUpdateListeners) Get ¶
func (sl *SatisfactionLevelsUpdateListeners) Get(listenerName string, params interface{}) (SatisfactionLevelsUpdateListener, SatisfactionLevels)
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 (t *ThresholdSatisfactionLevels) Initialize(dmp *model.DecisionMakingParams)
func (*ThresholdSatisfactionLevels) Next ¶
func (t *ThresholdSatisfactionLevels) Next() model.Weights
type ThresholdSatisfactionLevelsSource ¶
type ThresholdSatisfactionLevelsSource struct {
// contains filtered or unexported fields
}
func (*ThresholdSatisfactionLevelsSource) BlankParams ¶
func (t *ThresholdSatisfactionLevelsSource) BlankParams() SatisfactionLevels
func (*ThresholdSatisfactionLevelsSource) Identifier ¶
func (t *ThresholdSatisfactionLevelsSource) Identifier() string
func (*ThresholdSatisfactionLevelsSource) Merge ¶
func (t *ThresholdSatisfactionLevelsSource) Merge(params SatisfactionLevels, addition ParamsAddition) SatisfactionLevels
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 ¶
Click to show internal directories.
Click to hide internal directories.