GetController Function

Action

Retrieves the controller name for the current simulation. The controller name is the name of the controller computer from which all agents were started.

Include file

Kernel.bdh

Syntax

GetController(): string;

Return value

The name of the controller.

Example

dcltrans
  transaction TGetController
  var
    sController: string;
    beginsController := GetController();write("controller = "); write(sController); writeln;
  end TGetController;

Output

controller = BEATLE