Class: Puppet::Graph::Prioritizer Private

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/graph/prioritizer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base, template method, class for Prioritizers. This provides the basic tracking facilities used.

Direct Known Subclasses

SequentialPrioritizer

Instance Method Summary collapse

Constructor Details

#initializePrioritizer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Prioritizer.



8
9
10
# File 'lib/puppet/graph/prioritizer.rb', line 8

def initialize
  @priority = {}
end

Instance Method Details

#forget(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/puppet/graph/prioritizer.rb', line 12

def forget(key)
  @priority.delete(key)
end

#generate_priority_contained_in(container, key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/puppet/graph/prioritizer.rb', line 24

def generate_priority_contained_in(container, key)
  raise NotImplementedError
end

#generate_priority_for(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/puppet/graph/prioritizer.rb', line 20

def generate_priority_for(key)
  raise NotImplementedError
end

#priority_of(key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/puppet/graph/prioritizer.rb', line 28

def priority_of(key)
  @priority[key]
end

#record_priority_for(key, priority) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/puppet/graph/prioritizer.rb', line 16

def record_priority_for(key, priority)
  @priority[key] = priority
end