Extensions.EventPlus.DeepMonitorChangeEventSource

From emotive
Jump to navigation Jump to search

Classification

Name DeepMonitorChangeEventSource
Short Description Create an event source for change event
Class Term
Extension OTX EventPlus extension
Group Event source related terms
Exceptions -
Checker Rules Event_Chk002
Standard Compliant Yes

OTL Syntax

MonitorChangeEventSource EventPlus.DeepMonitorChangeEventSource(Variable variable);

Description

The OTX DeepMonitorChangeEventSource is similar to event:MonitorChangeEventSource, but with additional deep change-monitoring for variables of complex datatypes like List, Map and ByteField. The deep change-monitoring shall detect changing, adding and removing of items in Lists, Maps and ByteFields in any depth. For variables of simple datatypes, this term shall behave like event:MonitorChangeEventSource. Because DeepMonitorChangeEventSource is derived from event:MonitorChangeEventSource, the term event:IsMonitorChangeEvent shall return TRUE when the Event originates from a DeepMonitorChangeEventSource.

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
EventSource The EventSource, the changes in the value of a variable monitored.

Properties

Name Data Type Class Default Cardinality Description
Variable - Variable - [1..1] The variable which has to be monitored.


OTL Examples

/// Local Declarations

EventHandling.EventSource EventSource1;
EventHandling.Event Event1;
ByteField ByteField1 = &012345;

/// Flow

EventSource1 = EventPlus.DeepMonitorChangeEventSource(ByteField1);

parallel
{
	lane
	{
		ShiftRight(ByteField1, 2);
	}
	lane
	{
		EventHandling.WaitForEvent({EventSource1}, Event1);
	}
}

See also

IsDeepMonitorChangeEvent