Table of Contents

Class Trigger

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

A Trigger specifies a specific point at which an Event occurrence may trigger an effect in a Behavior. A Trigger may be qualified by the Port on which the Event occurred. <p>From package UML::CommonBehavior.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Trigger")]
public class Trigger : NamedElement, ITrigger, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Trigger
Implements
Inherited Members

Constructors

Trigger()

Creates a new instance

public Trigger()

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Event

The Event that detected by the Trigger. <p>From package UML::CommonBehavior.</p>

[XmlElementName("event")]
[XmlAttribute(true)]
public IEvent Event { get; set; }

Property Value

IEvent

Port

A optional Port of through which the given effect is detected. <p>From package UML::CommonBehavior.</p>

[XmlElementName("port")]
[XmlAttribute(true)]
public ISetExpression<IPort> Port { get; }

Property Value

ISetExpression<IPort>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

Trigger_with_ports(object, object)

If a Trigger specifies one or more ports, the event of the Trigger must be a MessageEvent. port->notEmpty() implies event.oclIsKindOf(MessageEvent)

public bool Trigger_with_ports(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool