Class: Molinillo::ResolutionState

Inherits:
Struct
  • Object
show all
Defined in:
lib/molinillo/state.rb,
lib/molinillo/state.rb

Overview

A state that a Resolution can be in

Direct Known Subclasses

DependencyState, PossibilityState

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#activatedDependencyGraph



10
11
12
# File 'lib/molinillo/state.rb', line 10

def activated
  @activated
end

#conflictsSet<Object>



10
11
12
# File 'lib/molinillo/state.rb', line 10

def conflicts
  @conflicts
end

#depthInteger



10
11
12
# File 'lib/molinillo/state.rb', line 10

def depth
  @depth
end

#nameString



10
11
12
# File 'lib/molinillo/state.rb', line 10

def name
  @name
end

#possibilitiesObject

Returns the value of attribute possibilities



10
11
12
# File 'lib/molinillo/state.rb', line 10

def possibilities
  @possibilities
end

#possibilityObject



20
21
22
# File 'lib/molinillo/state.rb', line 20

def possibility
  @possibility
end

#requirementObject



10
11
12
# File 'lib/molinillo/state.rb', line 10

def requirement
  @requirement
end

#requirementsArray<Object>



10
11
12
# File 'lib/molinillo/state.rb', line 10

def requirements
  @requirements
end

Class Method Details

.emptyResolutionState

Returns an empty resolution state



23
24
25
# File 'lib/molinillo/state.rb', line 23

def self.empty
  new(nil, [], DependencyGraph.new, nil, nil, 0, Set.new)
end