Class Satsolver::Dependency
In: satsolver.i
Parent: Object

A dependency is a Set of Relations.

There are eight types of dependencies:

provides:These are the relations the Solvable offers. Implicitly, it always provides its own name and version. This is not listed in provides.
requires:These are the relations required for successful installation of this Solvable.
conflicts:Conflicts are relations only this Solvable might provide on successful installation.
obsoletes:Matching installed Solvables will be removed on installation of this Solvable.
recommends:Weak requires. The solver does a best effort attempt to fulfill recommends.
suggests:Additional relations which are useful to fulfill. The solver ignores those, its at the discretion of the software management application to evaluate suggests.
supplements:Weak inverse requires.
enhances:Inverse suggests.

Methods

<<   []   add   each   empty?   get   new   size   solvable  

Included Modules

Enumerable

Public Class methods

dependency.new(solvable, Satsolver::DEP_REQ) → Dependency

Dependency constructor, pass Solvable and kind of dependency.

Public Instance methods

<<(p1, p2)

Alias for add

[](p1)

Alias for get

Add a relation to this Dependency

A Dependency is a Set of Relations. There is no ordering implied.

Iterate over all relations in this Dependency

empty?()

Get relation by index

This is just a convenience method and does not imply any ordering of Relations.

Number of relations in this dependency

[Validate]