public class CoolerTester extends Object
CpuCooler implementations.
It allows configuring multiple tests and multiple coolers to test against.
It executes each test multiple times with each cooler and records the time it takes to run each test.| Constructor and Description |
|---|
CoolerTester(Callable<?> tested,
CpuCooler... disturbers)
Constructor with Callable and array of CpuCoolers.
|
CoolerTester(CpuCooler... disturbers)
Constructor with an array of CpuCoolers.
|
CoolerTester(CpuCooler disturber,
Callable<?>... tests)
Constructor with a single CpuCooler and an array of tasks to be executed while the CpuCooler is in use.
|
| Modifier and Type | Method and Description |
|---|---|
CoolerTester |
add(String name,
Callable<?> test)
Adds a test to be executed during the tests.
|
int |
maxCount() |
CoolerTester |
maxCount(int maxCount)
Sets the maximum number of times each test is run with each cooler.
|
int |
minCount() |
CoolerTester |
minCount(int minCount)
Sets the minimum number of times each test is run with each cooler.
|
int |
repeat() |
CoolerTester |
repeat(int repeat)
Sets the number of times each test is run with each cooler.
|
void |
run()
This method runs the tests and outputs the results.
|
int |
runTimeMS() |
CoolerTester |
runTimeMS(int runTimeMS)
Sets the time in milliseconds that each test is run with each cooler.
|
public CoolerTester(Callable<?> tested, CpuCooler... disturbers)
tested - the task to be executed during the testsdisturbers - the array of CpuCoolers to be testedpublic CoolerTester(CpuCooler... disturbers)
disturbers - the array of CpuCoolers to be testedpublic CoolerTester add(String name, Callable<?> test)
name - the name of the testtest - the task to be executed during the testspublic int repeat()
public CoolerTester repeat(int repeat)
repeat - the number of times each test is run with each coolerpublic int runTimeMS()
public CoolerTester runTimeMS(int runTimeMS)
runTimeMS - the time in milliseconds that each test is run with each coolerpublic int minCount()
public CoolerTester minCount(int minCount)
minCount - the minimum number of times each test is run with each coolerpublic int maxCount()
public CoolerTester maxCount(int maxCount)
maxCount - the maximum number of times each test is run with each coolerpublic void run()
Copyright © 2024. All rights reserved.