Table of Contents

The <causalConnector> Element

Definition and Usage

The <causalConnector> element represents a causal relation that may be used for creating relationships (<link> elements) in NCL documents. In a causal relation, a condition must be satisfied in order to trigger an action.

A <causalConnector> specifies a relation independently of relationships, that is, it does not specify which nodes (represented by <media>, <context>, <body>, and <switch> elements) will interact through the relation. A <link> element, in its turn, represents a relationship of the type defined by its referred connector, interconnecting different nodes. Links representing the same type of relation, but interconnecting different nodes, may reuse the same connector, reusing all its previous specification.

A <causalConnector> defines, through its child elements, a set of interface points, called roles. A <link> element refers to a <causalConnector> and defines a set of binds (<bind> child elements of the <link> element), which associate each link endpoint (node interface) to a role of the referred connector.

Relations in NCL are based on events. An NCL event is an occurrence in time that may be instantaneous or have a measurable duration. Each event defines a state machine that is maintained by the NCL player (see Figure 1). Moreover, every event has an associated attribute, named occurrences, which counts how many times the event transits from occurring to sleeping state during a document presentation. Events of presentation and attribution types have also an attribute named repetitions, which counts how many times the event shall be automatically restarted (transited from sleeping to occurring states) by the NCL player. This attribute may contain the “indefinite” value, leading to an endless loop of the event occurrences until some external interruption.

Figure 1: Event state machine.

NCL 3.0 EDTV profile defines the following types of events:

Syntax

Attributes

Name Value Description
id It may receive any string value that begins with a letter or an underscore and that only contains letters, digits, “.”, and “_”. The id attribute uniquely identifies the element within a document.