Difference between revisions of "Core.Actions.Group"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== 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]] | - | - }} | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | //Group | ||
+ | group | ||
+ | { | ||
+ | ... | ||
+ | } | ||
+ | |||
+ | //Group realisation | ||
+ | group | ||
+ | { | ||
+ | realization() | ||
+ | { | ||
+ | ... | ||
+ | } | ||
+ | realization() | ||
+ | { | ||
+ | ... | ||
+ | } | ||
+ | } | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 7: | Line 29: | ||
The run-time behavior of a group activity can be adjusted via the '''ValidFor''' property of nearby, see [[BasicConcept|ValidityConcept]]. | The run-time behavior of a group activity can be adjusted via the '''ValidFor''' property of nearby, see [[BasicConcept|ValidityConcept]]. | ||
+ | |||
+ | == OTL Examples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | public procedure main() | ||
+ | { | ||
+ | Integer Integer1; | ||
+ | |||
+ | group | ||
+ | { | ||
+ | Integer1 = 123; | ||
+ | if ((Integer1 == 123)) | ||
+ | { | ||
+ | Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | 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); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 11:55, 2 February 2015
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
public procedure main()
{
Integer Integer1;
group
{
Integer1 = 123;
if ((Integer1 == 123))
{
Hmi.ConfirmDialog("true", null, @MessageTypes:INFO, null);
}
else
{
Hmi.ConfirmDialog("false", null, @MessageTypes:INFO, null);
}
}
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);
}
}
}
}