Difference between revisions of "Core.Actions.TerminateLanes"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | TerminateLanes | To explicitly stop of a parallel activity | End Node | OTX Core library | End...")
 
Line 2: Line 2:
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | TerminateLanes | To explicitly stop of a parallel activity | [[End Node]] | [[Core|OTX Core library]] | [[End node related actions]] | - | [[CoreChk022|Core_Chk022]]}}
 
{{ClassificationActivity | TerminateLanes | To explicitly stop of a parallel activity | [[End Node]] | [[Core|OTX Core library]] | [[End node related actions]] | - | [[CoreChk022|Core_Chk022]]}}
 +
 +
== OTL Syntax ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
terminate;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
 
With the OTX '''TerminateLanes''' activity, a parallel activity can be terminated explicitly and directly. For further description see [[Parallel]] activity.
 
With the OTX '''TerminateLanes''' activity, a parallel activity can be terminated explicitly and directly. For further description see [[Parallel]] activity.
 +
 +
== OTL Examples ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
Integer intVar1 = 0;
 +
Integer intVar2 = 0;
 +
String stringVar1 = "";
 +
 +
parallel
 +
{
 +
  lane
 +
  {
 +
intVar1 = 1;
 +
intVar1 = 2;
 +
intVar1 = 3;
 +
intVar1 = 4;
 +
intVar1 = 5;
 +
intVar1 = 6;
 +
intVar1 = 7;
 +
intVar1 = 8;
 +
intVar1 = 9;
 +
intVar1 = 10;
 +
stringVar1 = "I may not happen because of the TerminateLanes";
 +
  }
 +
  lane
 +
  {
 +
intVar2 = 1;
 +
intVar2 = 2;
 +
 +
terminate;
 +
  }
 +
}
 +
</syntaxhighlight>
  
 
== See also ==
 
== See also ==

Revision as of 04:07, 3 February 2015

Classification

Name TerminateLanes
Short Description To explicitly stop of a parallel activity
Class End Node
Extension OTX Core library
Group End node related actions
Exceptions -
Checker Rules Core_Chk022
Standard Compliant Yes

OTL Syntax

terminate;

Description

With the OTX TerminateLanes activity, a parallel activity can be terminated explicitly and directly. For further description see Parallel activity.

OTL Examples

Integer intVar1 = 0;
Integer intVar2 = 0;
String stringVar1 = "";

parallel
{
   lane
   {
	intVar1 = 1;
	intVar1 = 2;
	intVar1 = 3;
	intVar1 = 4;
	intVar1 = 5;
	intVar1 = 6;
	intVar1 = 7;
	intVar1 = 8;
	intVar1 = 9;
	intVar1 = 10;
	stringVar1 = "I may not happen because of the TerminateLanes";
   }
   lane
   {
	intVar2 = 1;
	intVar2 = 2;

	terminate;
   }
}

See also

Return
Continue
Break
Throw