Difference between revisions of "Core.Actions.Group"

From emotive
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''Group'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity | Group | The logical grouping of activities | [[Compound Node]] | [[Core|OTX Core library]] | [[Compound node related actions]] | - | - }}
 
{{ClassificationActivity | Group | The logical grouping of activities | [[Compound Node]] | [[Core|OTX Core library]] | [[Compound node related actions]] | - | - }}
Line 32: Line 32:
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
public procedure main()
+
Integer Integer1;
 +
 
 +
//Group
 +
group
 
{
 
{
   Integer Integer1;
+
   Integer1 = 123;
 +
  if ((Integer1 == 123))
 +
  {
 +
      Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
 +
  }
 +
  else
 +
  {
 +
      Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
 +
  }
 +
}
  
   group
+
//Group realisation
 +
group
 +
{
 +
   realization()
 
   {
 
   {
 
       Integer1 = 123;
 
       Integer1 = 123;
Line 48: Line 63:
 
       }
 
       }
 
   }
 
   }
 
+
   realization()
   group
 
 
   {
 
   {
       realization()
+
       Integer1 = 123;
 +
      if ((Integer1 == 123))
 
       {
 
       {
         Integer1 = 123;
+
         Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
        if ((Integer1 == 123))
 
        {
 
            Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
 
        }
 
        else
 
        {
 
            Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
 
        }
 
 
       }
 
       }
       realization()
+
       else
 
       {
 
       {
         Integer1 = 123;
+
         Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
        if ((Integer1 == 123))
 
        {
 
            Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
 
        }
 
        else
 
        {
 
            Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
 
        }
 
 
       }
 
       }
 
   }
 
   }
Line 80: Line 79:
  
 
== See also ==
 
== See also ==
[[Loop]] <br/>
+
[[Core.Actions.Loop|Loop]] <br/>
[[Branch]] <br/>
+
[[Core.Actions.Branch|Branch]] <br/>
[[Parallel]] <br/>
+
[[Core.Actions.Parallel|Parallel]] <br/>
[[Handler]] <br/>
+
[[Core.Actions.Handler|Handler]] <br/>
[[MutexGroup]]
+
[[Core.Actions.MutexGroup|MutexGroup]]

Latest revision as of 10:58, 16 February 2016

Classification

Name Group
Short Description The logical grouping of activities
Class Compound Node
Extension OTX Core library
Group Compound node related actions
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

//Group
group
{
   ...
}

//Group realisation
group 
{
   realization()
   {
      ...
   }
   realization()
   {
      ...
   }
}

Description

The OTX Group activity is the easiest of all tree nodes. She can be used to combine multiple activities in a group. All activities within the group can thus be regarded as logically contiguous block. The author thus shows the togetherness of the contained activities and produces clear and transparent processes.

The run-time behavior of a group activity can be adjusted via the ValidFor property of nearby, see ValidityConcept.

OTL Examples

Integer Integer1;

//Group
group 
{
   Integer1 = 123;
   if ((Integer1 == 123))
   {
      Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
   }
   else
   {
      Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
   }
}

//Group realisation
group 
{
   realization()
   {
      Integer1 = 123;
      if ((Integer1 == 123))
      {
         Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
      }
      else
      {
         Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
      }
   }
   realization()
   {
      Integer1 = 123;
      if ((Integer1 == 123))
      {
         Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
      }
      else
      {
         Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
      }
   }
}

See also

Loop
Branch
Parallel
Handler
MutexGroup