SetRandomTransactions Function

Action

Specifies whether the simulation engine has to perform all transactions defined in the workload section of the script in random or sequential order.

Note: This function overrides the setting specified in the Simulation tab of the Profile Settings - Simulation dialog.

Include file

Kernel.bdh

Syntax

SetRandomTransactions( in bRandom : boolean );
Parameter Description
bRandom

If this parameter is set to true, the simulation engine performs all transactions defined in the workload section in random order.

If this parameter is set to false, all transactions are executed in sequential order.

Example

dcluser
  user
    UserGrp(5)
  transactions
    TB : begin;
    T1 : 2;
    T2 : 2;
    TE : end;

dcltrans
  transaction TB
  begin
    SetRandomTransactions(false);
    write("TB ");
  end TB;

  transaction T1
  begin
    write("T1 ");
  end T1;

  transaction T2
  begin
    write("T2 ");
  end T2;

transaction TE
  begin
    write("TE ");
  end TE;

Output

TB T1 T1 T2 T2 TE