com.sun.faban.driver
Annotation Type MatrixMix


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface MatrixMix

The MatrixMix allows describing the transition probabilities of a finite Markov chain as a right stochastic matrix (or just "stochastic matrix"). This must be a square matrix. Each row represents a probability vector for transitioning from an operation (row operations index) to an operation (column operations index). Members must be non-negative numbers. To avoid human errors, Faban does not require each specified row to sum up to 1 but will automatically normalize each row to 1 (or 100%) prior to starting the load generation.

The MatrixMix annotation interface describes the parameters required when defining a matrix mix. The MatrixMix annotation will need to be used in conjunction with the BenchmarkDriver annotation. Otherwise this annotation will be ignored.

Note that the mix in the BenchmarkOperation annotation is ignored when a benchmark is specified to use MatrixMix.


Required Element Summary
 Row[] mix
          The matrix rows in the mix, sorted according to the operations list.
 
Optional Element Summary
 double deviation
          The allowed deviation of the operation selection.
 String[] operations
          The array of operation names.
 

Element Detail

mix

public abstract Row[] mix
The matrix rows in the mix, sorted according to the operations list. This will create a mix matrix when combined with the contents of the individual rows.

operations

public abstract String[] operations
The array of operation names. This is both the x and y title of the matrix.

Default:
""

deviation

public abstract double deviation
The allowed deviation of the operation selection.

Default:
2.0