Show / Hide Table of Contents

Class SolverDemand

A demand used by ISolvers internally. Wrapper for Requirements that holds SelectionCandidates.

Inheritance
Object
SolverDemand
Implements
IEquatable<SolverDemand>
Namespace: ZeroInstall.Services.Solvers
Assembly: ZeroInstall.Services.dll
Syntax
public sealed class SolverDemand : Object

Constructors

SolverDemand(Requirements, ISelectionCandidateProvider, Importance)

A demand used by ISolvers internally. Wrapper for Requirements that holds SelectionCandidates.

Declaration
public SolverDemand(Requirements Requirements, ISelectionCandidateProvider CandidateProvider, Importance Importance)
Parameters
Type Name Description
Requirements Requirements

The requirements.

ISelectionCandidateProvider CandidateProvider

Generates SelectionCandidates for the Requirements.

Importance Importance

Describes how important the demand is (i.e. whether ignoring it is an option).

Properties

CandidateProvider

Generates SelectionCandidates for the Requirements.

Declaration
public ISelectionCandidateProvider CandidateProvider { get; set; }
Property Value
Type Description
ISelectionCandidateProvider

Candidates

All candidates for the Requirements, including those that are not suitable.

Declaration
public IReadOnlyList<SelectionCandidate> Candidates { get; }
Property Value
Type Description
IReadOnlyList<SelectionCandidate>

Importance

Describes how important the demand is (i.e. whether ignoring it is an option).

Declaration
public Importance Importance { get; set; }
Property Value
Type Description
Importance

Requirements

The requirements.

Declaration
public Requirements Requirements { get; set; }
Property Value
Type Description
Requirements

Methods

<Clone>$()

Declaration
public SolverDemand <Clone>$()
Returns
Type Description
SolverDemand

Deconstruct(out Requirements, out ISelectionCandidateProvider, out Importance)

Declaration
public void Deconstruct(out Requirements Requirements, out ISelectionCandidateProvider CandidateProvider, out Importance Importance)
Parameters
Type Name Description
Requirements Requirements
ISelectionCandidateProvider CandidateProvider
Importance Importance

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

Equals(SolverDemand)

Declaration
public bool Equals(SolverDemand other)
Parameters
Type Name Description
SolverDemand other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

ToString()

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(SolverDemand, SolverDemand)

Declaration
public static bool operator ==(SolverDemand left, SolverDemand right)
Parameters
Type Name Description
SolverDemand left
SolverDemand right
Returns
Type Description
Boolean

Inequality(SolverDemand, SolverDemand)

Declaration
public static bool operator !=(SolverDemand left, SolverDemand right)
Parameters
Type Name Description
SolverDemand left
SolverDemand right
Returns
Type Description
Boolean

Implements

System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher et al