![]() |
![]() |
![]() |
![]() |
![]() |
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 ] ); |
component_identifier is the name used to refer to the component to be started.
behavior_function is the function describing the test component behavior.
function_parameter specifies actual parameters of the function
The keyword may be used to start a port.
Related keywords:
port_reference.start; |
port_reference points out the port to be started.
the keywords all port may be used to indicate that all defined ports must be started (see the example 2b).
The start keyword introduces port starting.
The keyword may be used to indicate that a timer should start running.
Related keywords:
timer_identifier.start [( timer_value )]; |
timer_identifier is the name used to refer to the timer.
It is possible to start a member of an timer array.
timer_identifier[array_index].start [( timer_value ) ]; |
timer_identifier is the name used to refer to the timer.
array_index points out the timer to be started.
vc_vertrek.start(f_beteende());
The behavior described by the function f_beteende is started on the component with the reference vc_vertrek.
Kapu_PCO.start;
The port Kapu_PCO will be started.
all port.start;
All ports will be started.
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).
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).
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