Event Type
data class EventType(val name: String, var ownerType: BusinessObjectType, val ownerEffect: EventType.OwnedEffect, val attributes: Set<Attribute> = ownerType.attributes)
Represents an EventType in a Merode Model. These types can be instantiated as Events. The Events can be applied to BusinessObjects of the EventType.ownerType using the BusinessObject.handleEvent method.
Parameters
name
The name of the EventType.
owner Type
The BusinessObjectType that participates in the EventType with an owned method.
owner Effect
The effect of the EventType on the ownerType. This can be OwnedEffect.Create, OwnedEffect.Modify or OwnedEffect.End.
Constructors
Link copied to clipboard
constructor(name: String, ownerType: BusinessObjectType, ownerEffect: EventType.OwnedEffect, attributes: Set<Attribute> = ownerType.attributes)