Titan



start

1. Starting a component

2. Starting a port

3. Starting a timer

4. Starting the profiler


1. Starting a component


When a parallel test component is created it is not executing any behavior yet.

The start operation can be used to execute the required function on the addressed parallel test component.

The function will be executed remotely, thus the start operation does not block execution on the component on which it was invoked.

Normal parallel test components can only be started once, but alive parallel test components may execute several functions consecutively.

Some limitations apply to the argument function:

Related keywords:


component_identifier.start(behavior_function ( [ function_parameter ] );


2. Starting a port


The keyword may be used to start a port.

Related keywords:


port_reference.start;


3. Starting a timer


The keyword may be used to indicate that a timer should start running.

Related keywords:


timer_identifier.start [( timer_value )];


It is possible to start a member of an timer array.


  timer_identifier[array_index].start [( timer_value ) ];


Example 1

vc_vertrek.start(f_beteende());

The behavior described by the function f_beteende is started on the component with the reference vc_vertrek.

 


Example 2a:

Kapu_PCO.start;

The port Kapu_PCO will be started.


Example 2b:

all port.start;

All ports will be started.


Example 3a:

timer T_recherche := 5E-3;
T_recherche.start;

The global timer T_recherche is declared (1st line) and started with the default duration (=5 ms; 2nd line).


Example 3b:

timer Tl_perdu;
Tl_perdu.start(20E-3); 

The local timer Tl_perdu is declared (1st line) and started with a duration of 20 ms (2nd line).


Example 3c:

timer Tl_Denfert[2] := {-, 1E-1, -};
Tl_Denfert[1].start(20E-3);

The array of  local timers declared is called Tl_denfert and consists of three timers . The second timer has the default value of 100 ms, the others have no default value(1st line). The second timer in the array is started for 20 ms, overwriting the default value of 100 ms (2nd line).



BNF definition of component start

BNF definition of timer start