Class: Binpacker::Scheduler
- Inherits:
-
Object
- Object
- Binpacker::Scheduler
show all
- Defined in:
- lib/binpacker/scheduler.rb
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
5
6
7
|
# File 'lib/binpacker/scheduler.rb', line 5
def partition(tests:, worker_count:, timings:)
raise NotImplementedError
end
|