Class: Binpacker::Scheduler

Inherits:
Object
  • Object
show all
Defined in:
lib/binpacker/scheduler.rb

Direct Known Subclasses

LptScheduler, MultifitScheduler

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.for(strategy) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/binpacker/scheduler.rb', line 9

def self.for(strategy)
  case strategy.to_s
  when "lpt" then LptScheduler.new
  when "multifit" then MultifitScheduler.new
  else
    raise SchedulerError, "unknown scheduling algorithm: #{strategy}"
  end
end

Instance Method Details

#partition(tests:, worker_count:, timings:) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/binpacker/scheduler.rb', line 5

def partition(tests:, worker_count:, timings:)
  raise NotImplementedError
end