Go to Items

1. Definition 2. Functional Requirements 3. Syntax 4. Semantics

1 Definition

A Basic Event is one or two Action-Process Actions (APA) combined by a Logic Operator, possibly within a time window, or a Comparison of an Attribute of an Item or a State with a Value. An APA is an Action, done by a Process on its own, or a Process Action, done because another Process requested it: the same happening.

2 Functional Requirements

Basic Events involving no more than two APAs are listed in Table 1.

Table 1 – Basic Events

APA1 Operation APA2 Basic Event happens if
APA The APA happens.
NOT APA The APA does not happen.
APA1 AND APA2 Both APAs happen.
APA1 OR APA2 At least one APA happens.
APA1 NAND APA2 At least one APA does not happen.
APA1 NOR APA2 None of the APAs happens.
APA1 XOR APA2 Only one APA happens.
APA1 XNOR APA2 Both APAs happen or none does.

A Basic Event can also name two Process Actions (PA1, PA2) instead of two APAs, with the same Logic Operators.

A Basic Event further supports:

  1. Patterns. A field of an APA – the Actor (the Process that performs it), the Item acted on, the M-Location, the Item Attribute changed and its value – is either given (its ID) or left open: an open field has no ID and matches any value, or any instance of the class given in Type (for instance any User). An APA with no Action matches any Action.
  2. Labels. An open field can carry a Label. When the Event is met, the value that filled the labelled field is given with it (see Event, Met).
  3. Negation and time windows. An APA can be Negated: the Basic Event holds if it does not happen. With Within, APA2 is looked for within a duration after APA1: with APA2 Negated, “if nobody opens the door within 30 seconds after someone rang”.
  4. Comparisons. A Basic Event can be a Comparison “Attribute Operator Value Unit” on an Item or a State, with the operators >, >=, <, <=, =, != (for instance the Loudness of the Audio Objects in an M-Location greater than -20 LUFS). A Comparison holds while the value compares so; it combines with other Basic Events in an Event and can carry a Label.

3 Syntax

https://schemas.mpai.community/MMM4/V3.0/data/BasicEvent.json

4 Semantics

Label Description
Header Basic Event Header – Standard “MMM-BEV-V3.0”.
MInstanceID Identifier of M-Instance.
BasicEventID The ID of the Basic Event.
UEnvironment Identifier of U-Environment.
BasicEventTime The Time of the Basic Event, as a Simple Time.
PA1 A Process Action.
LogOp One of “AND”, “OR”, “NAND”, “NOR”, “XOR”, “XNOR”, “NOT”.
PA2 A Process Action.
APA1, APA2 An Action-Process Action.
– Kind One of “Action” (done by a Process on its own), “Process Action” (done on request), “Either” (default).
– Action The Action. Absent: any Action.
– Actor The Process that performs the Action: a Field.
– Item The Item acted on: a Field.
– MLocation The M-Location where it happens: a Field.
– ItemAttribute The Item Attribute changed: Name, Value (each absent: open) and Label.
– ProcessAction The one Process Action that the APA is, when it is one.
– Negated True: the APA does not happen (within the time window, when there is one).
Within The time window in which APA2 is looked for after APA1: Quantity and Unit (seconds, minutes, hours, days).
Comparison Attribute Operator Value Unit on an Item or a State.
– Target The Item or the State whose Attribute is compared: a Field.
– Attribute The IRI of the Attribute in an MPAI ontology.
– Operator One of “>”, “>=”, “<“, “<=”, “=”, “!=”.
– Value The value compared with.
– Unit The unit of Value.
– MLocation The M-Location where the Attribute is assessed: a Field.
– Label Names the value found when the Comparison holds.
Field A field of an APA or of a Comparison.
– ID The identifier of the Process, Item or M-Location. Absent: the field is open and matches any.
– Type The class, in an MPAI ontology, of which the value of an open field is an instance.
– Label A name (a letter, then letters, digits or _) for the value that fills the field.
DataExchangeMetadata Metadata optionally supporting regulated or controlled exchange of Interaction Potential Data, as defined by AIF V3.0.
DescrMetadata Descriptive metadata (maximum 2048 characters) supporting annotation, documentation, or indexing.

Go to Items