Class BasicEventElement
A basic event element.
Inheritance
Implements
Inherited Members
Namespace: AasCore.Aas3_0
Assembly: AasCore.Aas3_0.dll
Syntax
public class BasicEventElement : IBasicEventElement, IEventElement, ISubmodelElement, IReferable, IHasExtensions, IHasSemantics, IQualifiable, IHasDataSpecification, IClass
Remarks
This element is experimental and therefore may be subject to change or may be removed completely in future versions of the meta-model.
Constructors
| Improve this Doc View SourceBasicEventElement(IReference, Direction, StateOfEvent, List<IExtension>, String, String, List<ILangStringNameType>, List<ILangStringTextType>, IReference, List<IReference>, List<IQualifier>, List<IEmbeddedDataSpecification>, String, IReference, String, String, String)
Declaration
public BasicEventElement(IReference observed, Direction direction, StateOfEvent state, List<IExtension> extensions = null, string category = null, string idShort = null, List<ILangStringNameType> displayName = null, List<ILangStringTextType> description = null, IReference semanticId = null, List<IReference> supplementalSemanticIds = null, List<IQualifier> qualifiers = null, List<IEmbeddedDataSpecification> embeddedDataSpecifications = null, string messageTopic = null, IReference messageBroker = null, string lastUpdate = null, string minInterval = null, string maxInterval = null)
Parameters
Type | Name | Description |
---|---|---|
IReference | observed | |
Direction | direction | |
StateOfEvent | state | |
System.Collections.Generic.List<IExtension> | extensions | |
System.String | category | |
System.String | idShort | |
System.Collections.Generic.List<ILangStringNameType> | displayName | |
System.Collections.Generic.List<ILangStringTextType> | description | |
IReference | semanticId | |
System.Collections.Generic.List<IReference> | supplementalSemanticIds | |
System.Collections.Generic.List<IQualifier> | qualifiers | |
System.Collections.Generic.List<IEmbeddedDataSpecification> | embeddedDataSpecifications | |
System.String | messageTopic | |
IReference | messageBroker | |
System.String | lastUpdate | |
System.String | minInterval | |
System.String | maxInterval |
Properties
| Improve this Doc View SourceCategory
The category is a value that gives further meta information w.r.t. to the class of the element. It affects the expected existence of attributes and the applicability of constraints.
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The category is not identical to the semantic definition (IHasSemantics) of an element. The category e.g. could denote that the element is a measurement value whereas the semantic definition of the element would denote that it is the measured temperature.
Description
Description or comments on the element.
Declaration
public List<ILangStringTextType> Description { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ILangStringTextType> |
Remarks
The description can be provided in several languages.
If no description is defined, then the definition of the concept description that defines the semantics of the element is used.
Additional information can be provided, e.g., if the element is qualified and which qualifier types can be expected in which context or which additional data specification templates are provided.
Direction
Direction of event.
Declaration
public Direction Direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
Remarks
Can be { Input, Output }
.
DisplayName
Display name. Can be provided in several languages.
Declaration
public List<ILangStringNameType> DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ILangStringNameType> |
EmbeddedDataSpecifications
Embedded data specification.
Declaration
public List<IEmbeddedDataSpecification> EmbeddedDataSpecifications { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IEmbeddedDataSpecification> |
Extensions
An extension of the element.
Declaration
public List<IExtension> Extensions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IExtension> |
IdShort
In case of identifiables this attribute is a short name of the element. In case of referable this ID is an identifying string of the element within its name space.
Declaration
public string IdShort { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
In case the element is a property and the property has a semantic definition (SemanticId) conformant to IEC61360 the IdShort is typically identical to the short name in English.
LastUpdate
Timestamp in UTC, when the last event was received (input direction) or sent (output direction).
Declaration
public string LastUpdate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MaxInterval
For input direction: not applicable.
Declaration
public string MaxInterval { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
For output direction: maximum interval in time, the respective Referable shall send an update of the status of the event, even if no other trigger condition for the event was not met.
Might be not specified, that is, there is no maximum interval
MessageBroker
Information, which outer message infrastructure shall handle messages for the IEventElement. Refers to a Submodel, SubmodelElementList, SubmodelElementCollection or Entity, which contains IDataElement's describing the proprietary specification for the message broker.
Declaration
public IReference MessageBroker { get; set; }
Property Value
Type | Description |
---|---|
IReference |
Remarks
For different message infrastructure, e.g., OPC UA or MQTT or AMQP, this proprietary specification could be standardized by having respective Submodels.
MessageTopic
Information for the outer message infrastructure for scheduling the event to the respective communication channel.
Declaration
public string MessageTopic { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MinInterval
For input direction, reports on the maximum frequency, the software entity behind the respective Referable can handle input events.
Declaration
public string MinInterval { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
For output events, specifies the maximum frequency of outputting this event to an outer infrastructure.
Might be not specified, that is, there is no minimum interval.
Observed
Reference to the IReferable, which defines the scope of the event. Can be AssetAdministrationShell, Submodel, or ISubmodelElement.
Declaration
public IReference Observed { get; set; }
Property Value
Type | Description |
---|---|
IReference |
Remarks
Reference to a referable, e.g., a data element or a submodel, that is being observed.
Qualifiers
Additional qualification of a qualifiable element.
Declaration
public List<IQualifier> Qualifiers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IQualifier> |
Remarks
Constraints:
- Constraint AASd-021: Every qualifiable can only have one qualifier with the same Type.
SemanticId
Identifier of the semantic definition of the element. It is called semantic ID of the element or also main semantic ID of the element.
Declaration
public IReference SemanticId { get; set; }
Property Value
Type | Description |
---|---|
IReference |
Remarks
It is recommended to use a global reference.
State
State of event.
Declaration
public StateOfEvent State { get; set; }
Property Value
Type | Description |
---|---|
StateOfEvent |
Remarks
Can be { On, Off }
.
SupplementalSemanticIds
Identifier of a supplemental semantic definition of the element. It is called supplemental semantic ID of the element.
Declaration
public List<IReference> SupplementalSemanticIds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IReference> |
Remarks
It is recommended to use a global reference.
Methods
| Improve this Doc View SourceAccept(Visitation.IVisitor)
Accept the visitor
to visit this instance
for double dispatch.
Declaration
public void Accept(Visitation.IVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
Visitation.IVisitor | visitor |
Accept<TContext>(Visitation.IVisitorWithContext<TContext>, TContext)
Accept the visitor to visit this instance for double dispatch
with the context
.
Declaration
public void Accept<TContext>(Visitation.IVisitorWithContext<TContext> visitor, TContext context)
Parameters
Type | Name | Description |
---|---|---|
Visitation.IVisitorWithContext<TContext> | visitor | |
TContext | context |
Type Parameters
Name | Description |
---|---|
TContext |
Descend()
Iterate recursively over all the class instances referenced from this instance.
Declaration
public IEnumerable<IClass> Descend()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IClass> |
DescendOnce()
Iterate over all the class instances referenced from this instance without further recursion.
Declaration
public IEnumerable<IClass> DescendOnce()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IClass> |
OverDescriptionOrEmpty()
Iterate over Description, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<ILangStringTextType> OverDescriptionOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILangStringTextType> |
OverDisplayNameOrEmpty()
Iterate over DisplayName, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<ILangStringNameType> OverDisplayNameOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILangStringNameType> |
OverEmbeddedDataSpecificationsOrEmpty()
Iterate over EmbeddedDataSpecifications, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IEmbeddedDataSpecification> OverEmbeddedDataSpecificationsOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IEmbeddedDataSpecification> |
OverExtensionsOrEmpty()
Iterate over Extensions, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IExtension> OverExtensionsOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IExtension> |
OverQualifiersOrEmpty()
Iterate over Qualifiers, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IQualifier> OverQualifiersOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IQualifier> |
OverSupplementalSemanticIdsOrEmpty()
Iterate over SupplementalSemanticIds, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IReference> OverSupplementalSemanticIdsOrEmpty()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IReference> |
Transform<T>(Visitation.ITransformer<T>)
Accept the transformer
to transform this instance
for double dispatch.
Declaration
public T Transform<T>(Visitation.ITransformer<T> transformer)
Parameters
Type | Name | Description |
---|---|---|
Visitation.ITransformer<T> | transformer |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T>, TContext)
Accept the transformer
to visit this instance
for double dispatch with the context
.
Declaration
public T Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T> transformer, TContext context)
Parameters
Type | Name | Description |
---|---|---|
Visitation.ITransformerWithContext<TContext, T> | transformer | |
TContext | context |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
TContext | |
T |