public class SamplingMixOrderProvider extends AbstractMixOrderProvider
Constructor and Description |
---|
SamplingMixOrderProvider(boolean allowRepeats)
Creates an order provider which optionally allows repeats, the sample
size will always be the mix size
|
SamplingMixOrderProvider(int sampleSize)
Creates an order provider with the given sample size
|
SamplingMixOrderProvider(int sampleSize,
boolean allowRepeats)
Creates an order provider with the given sample size that optionally
allows repeats
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Options> |
getInOrderSample(T options,
OperationMix mix) |
<T extends Options> |
getOperationOrder(T options,
OperationMix mix)
Gets the order in which the runner should run the operations
|
protected <T extends Options> |
getPool(T options,
OperationMix mix) |
protected <T extends Options> |
getRandomSample(T options,
OperationMix mix) |
getOperationExcludes, reportOperationOrder
public SamplingMixOrderProvider(int sampleSize)
sampleSize
- Sample size, if <= 0 then sample size will always be the mix
sizepublic SamplingMixOrderProvider(boolean allowRepeats)
allowRepeats
- Whether to allow repeatspublic SamplingMixOrderProvider(int sampleSize, boolean allowRepeats)
sampleSize
- Sample size, if <= 0 then sample size will always be the mix
sizeallowRepeats
- Whether to allow repeatspublic <T extends Options> List<Integer> getOperationOrder(T options, OperationMix mix)
MixOrderProvider
options
- Optionsmix
- Mix containing the operations to be runprotected <T extends Options> List<Integer> getRandomSample(T options, OperationMix mix)
protected <T extends Options> List<Integer> getPool(T options, OperationMix mix)
protected <T extends Options> List<Integer> getInOrderSample(T options, OperationMix mix)
Copyright © 2016. All rights reserved.