Package pl.put.poznan.transformer.logic
Class Scrambler
- java.lang.Object
-
- pl.put.poznan.transformer.logic.Scrambler
-
public class Scrambler extends Object
A simple class for scrambling input data intended for testing performance under different circumstances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScrambler.ScrambleTypeEnumeration type used for denoting the fashion in which data should be scrambled.
-
Constructor Summary
Constructors Constructor Description Scrambler()A simple constructor which initializes the randomizer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidscramble(Cell[][] data, int column, Scrambler.ScrambleType scrambleType)Lightweight scrambling method.
-
-
-
Method Detail
-
scramble
public void scramble(Cell[][] data, int column, Scrambler.ScrambleType scrambleType)
Lightweight scrambling method. Used to prepare data before measuring sorting performance.- Parameters:
data- a 2-D array of typeCellto scramblecolumn- the index of the column used for scrambling in case of RISING or FALLING scrambleType.scrambleType- an enum value of typeScrambler.ScrambleTypedenoting how to scramble data.
-
-