Titan



alive

The alive operation can used to see whether a given parallel test component is alive or not. It works similarly to the running operation, the difference is when used for alive parallel test components.

Normal parallel test component is alive when it is running. vc_ptc.alive always returns the same value as vc_ptc.running if vc_ptc is a normal parallel test component.

Alive parallel test component is alive from the point of its first start until it is killed implicitely at MTC termination or explicitely using the kill operation.

Related keywords:


component_reference.alive;  


Examples:


Example 1:

var boolean v_Tbana := vc_metro.alive;

The variable v_Tbana gets the value true if the component with the reference vc_metro is alive, i.e. one of the following conditions apply:


Example 1b:

var boolean v_Ubahn := all component.alive;

The variable v_Ubahn will true if all started parallel components are still alive.


BNF definition of component alive