Documentation
¶
Index ¶
- Constants
- func Is(v1, v2 value.Value) bool
- func IsImpossible(v1, v2 value.Value) bool
- func NewCompositeCondition(left condition, op logicalOperator, right condition) compositeCondition
- func NewDisableExecution(paramId int) disableExecution
- func NewDisabledCondition(paramId int) parameterDisabledCondition
- func NewExcludeValueExecution(srcId, targetId int, value value.Value) excludeValueExecution
- func NewFinalCondition(paramId int) parameterFinalCondition
- func NewSetValueExecution(srcId, targetId int, value value.Value) setValueExecution
- func NewValueCondition(paramId int, op compareOperator, value value.Value) parameterValueCondition
- type Constraint
- type InternalConfiguration
- type InternalParameter
- func (p *InternalParameter) AppendConstraint(newConstraints Constraint)
- func (p InternalParameter) Final() bool
- func (p InternalParameter) Id() int
- func (p InternalParameter) Name() string
- func (p *InternalParameter) RemoveRestrictionsFromConstraint(srcId int)
- func (p *InternalParameter) RestrictValue(aValue value.Value) (bool, error)
- func (p *InternalParameter) RestrictValueFromConstraint(srcId int, aValue value.Value) (bool, error)
- func (p InternalParameter) RestrictedValue() value.Value
- func (p InternalParameter) Selectable() bool
- func (p InternalParameter) Value() string
Constants ¶
View Source
const ( And logicalOperator = iota Or )
Variables ¶
This section is empty.
Functions ¶
func IsImpossible ¶
func NewCompositeCondition ¶
func NewCompositeCondition(left condition, op logicalOperator, right condition) compositeCondition
func NewDisableExecution ¶
func NewDisableExecution(paramId int) disableExecution
func NewDisabledCondition ¶
func NewDisabledCondition(paramId int) parameterDisabledCondition
func NewFinalCondition ¶
func NewFinalCondition(paramId int) parameterFinalCondition
func NewSetValueExecution ¶
func NewValueCondition ¶
Types ¶
type Constraint ¶
type Constraint func(map[int]*InternalParameter) (bool, error)
func CreateContraint ¶
func CreateContraint(condition condition, exexution execution) Constraint
type InternalConfiguration ¶
type InternalConfiguration struct {
Parameters map[int]*InternalParameter
}
func NewInternalConfiguration ¶
func NewInternalConfiguration(parameters map[int]*InternalParameter) InternalConfiguration
func (InternalConfiguration) MutableParameterById ¶
func (config InternalConfiguration) MutableParameterById(id int) (*InternalParameter, error)
func (InternalConfiguration) ParameterById ¶
func (config InternalConfiguration) ParameterById(id int) (configuration.Parameter, error)
type InternalParameter ¶
type InternalParameter struct { Constraints []Constraint // contains filtered or unexported fields }
func NewInternalParameter ¶
func NewInternalParameter(id int, name string, value value.Value) InternalParameter
func (*InternalParameter) AppendConstraint ¶
func (p *InternalParameter) AppendConstraint(newConstraints Constraint)
func (InternalParameter) Final ¶
func (p InternalParameter) Final() bool
func (InternalParameter) Id ¶
func (p InternalParameter) Id() int
func (InternalParameter) Name ¶
func (p InternalParameter) Name() string
func (*InternalParameter) RemoveRestrictionsFromConstraint ¶
func (p *InternalParameter) RemoveRestrictionsFromConstraint(srcId int)
func (*InternalParameter) RestrictValue ¶
func (p *InternalParameter) RestrictValue(aValue value.Value) (bool, error)
func (*InternalParameter) RestrictValueFromConstraint ¶
func (InternalParameter) RestrictedValue ¶
func (p InternalParameter) RestrictedValue() value.Value
func (InternalParameter) Selectable ¶
func (p InternalParameter) Selectable() bool
func (InternalParameter) Value ¶
func (p InternalParameter) Value() string
Click to show internal directories.
Click to hide internal directories.