C# 클래스 ZeroInstall.Services.Solvers.BacktrackingSolver.Pass

Holds state during a single pass of the BacktrackingSolver.
파일 보기 프로젝트 열기: 0install/0install-win

Private Properties

프로퍼티 타입 설명
AddToSelections ImplementationSelection
ConflictsWithExistingRestrictions bool
ConflictsWithExistingSelections bool
FilterSuitableCandidates IEnumerable
RemoveLastFromSelections void
TryToSelectCandidate bool
TryToSolve bool
TryToSolveBindingRequirements bool
TryToSolveCommand bool
TryToSolveDependencies bool
TryToSolveDependency bool
TryToUseExistingCandidate bool

공개 메소드들

메소드 설명
Pass ( [ requirements, CancellationToken cancellationToken, [ candidateProvider ) : System

Creates a new backtracking solver run.

TryToSolve ( ) : bool

Try to satisfy the _topLevelRequirements. If successful the result can be retrieved from Selections.

비공개 메소드들

메소드 설명
AddToSelections ( [ candidate, [ requirements, [ allCandidates ) : ImplementationSelection
ConflictsWithExistingRestrictions ( [ candidate, [ interfaceUri ) : bool
ConflictsWithExistingSelections ( [ candidate ) : bool
FilterSuitableCandidates ( [ candidates, [ interfaceUri ) : IEnumerable
RemoveLastFromSelections ( ) : void
TryToSelectCandidate ( [ candidates, [ requirements, [ allCandidates ) : bool
TryToSolve ( [ requirements ) : bool

Try to satisfy a set of requirements, respecting any existing Selections.

TryToSolveBindingRequirements ( [ selection ) : bool
TryToSolveCommand ( [ command, [ requirements ) : bool
TryToSolveDependencies ( [ dependencyContainer ) : bool
TryToSolveDependency ( [ dependency ) : bool
TryToUseExistingCandidate ( [ requirements, [ suitableCandidates, [ selection ) : bool

메소드 상세

Pass() 공개 메소드

Creates a new backtracking solver run.
public Pass ( [ requirements, CancellationToken cancellationToken, [ candidateProvider ) : System
requirements [ The top-level requirements the solver should try to meet.
cancellationToken NanoByte.Common.Tasks.CancellationToken Used to signal when the user wishes to cancel the solver run.
candidateProvider [ Generates s for the solver to choose among.
리턴 System

TryToSolve() 공개 메소드

Try to satisfy the _topLevelRequirements. If successful the result can be retrieved from Selections.
public TryToSolve ( ) : bool
리턴 bool