Difference between revisions of "Extensions.Util.ListReverse"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE: '''ListReverse'''}}Category:Util == Classification == {{ClassificationActivity | ListReverse | UPDATING...<!--Create an event source for change event--> |...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:  '''ListReverse'''}}[[Category:Util]]
 
{{DISPLAYTITLE:  '''ListReverse'''}}[[Category:Util]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | ListReverse | UPDATING...<!--Create an event source for change event--> | [[Term]] | [[Extensions.Util|OTX Util extension]] | UPDATING... | UPDATING... | UPDATING... }}
+
{{ClassificationActivity | ListReverse | Creates a reversed list of the given list | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
EventSourceTerm = EventHandling.MonitorChangeEventSource(Variable);
+
ListTerm = Util.ListReverse(ListTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== Description ==
 
== Description ==
UPDATING...<!--
+
The OTX '''ListReverse''' term is a ListTerm that returns a copy of the given list in opposite sequence.
The OTX '''MonitorChangeEventSource''' term creates an event source that monitors the value of a variable and an event triggers when the value changed. Event queue should start immediately as soon as the event source is created.
 
  
{{Note|The case when a value to a previously uninitialized variable is assigned to count as a change event and make no mistake.}}
+
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.List|List]] | The reversed list of the given list.}}
 
 
{{TermReturnValue| [[Extensions.EventHandling.EventSource|EventSource]] | '''The EventSource''', the changes in the value of a variable monitored.}}
 
  
 
== Properties ==
 
== Properties ==
UPDATING...//
 
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Variable | - | [[Variable]] | - | [1] | The variable which has to be monitored.}}
+
{{TableRowPropertie2| List | [[Core.DataTypes.ComplexDataType.List|List]] | [[Term]] | - | [1..1] | The List from which the reversed list shall be created.}}
 
|}
 
|}
-->
 
  
 
== OTL Examples ==
 
== OTL Examples ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Boolean Bool1 = false;
+
List<Integer> List1;
EventHandling.EventSource EventSource1;
+
 
EventHandling.Event Event1;
+
/// Flow
  
EventSource1 = EventHandling.MonitorChangeEventSource(Bool1);
+
List1 = Util.ListReverse({1, 2, 3, 4, 5, 6, 7, 8, 9});
parallel
 
{
 
  lane
 
  {
 
      Bool1 = true;
 
  }
 
  lane
 
  {
 
      EventHandling.WaitForEvent({EventSource1}, Event1);
 
  }
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== See also ==
 
== See also ==
 
[[Extensions.Util.Compare|Compare]] <br/>
 
[[Extensions.Util.Compare|Compare]] <br/>
 
[[Extensions.Util.CopyByteField|CopyByteField]] <br/>
 
[[Extensions.Util.CopyByteField|CopyByteField]] <br/>
 +
[[Extensions.Util.GetRandomNumber|GetRandomNumber]] <br/>
 
[[Extensions.Util.IsInitialized|IsInitialized]] <br/>
 
[[Extensions.Util.IsInitialized|IsInitialized]] <br/>
 
[[Extensions.Util.ListIndexOf|ListIndexOf]] <br/>
 
[[Extensions.Util.ListIndexOf|ListIndexOf]] <br/>

Revision as of 09:51, 4 October 2018

Classification

Name ListReverse
Short Description Creates a reversed list of the given list
Class Term
Extension OTX Util extension
Group Util related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ListTerm = Util.ListReverse(ListTerm);

Description

The OTX ListReverse term is a ListTerm that returns a copy of the given list in opposite sequence.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
List The reversed list of the given list.

Properties

Name Data Type Class Default Cardinality Description
List List Term - [1..1] The List from which the reversed list shall be created.

OTL Examples

List<Integer> List1;

/// Flow

List1 = Util.ListReverse({1, 2, 3, 4, 5, 6, 7, 8, 9});

See also

Compare
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListIndexOfAny
ListSort
Max
Min
StringFormat