Class Trigger
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
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
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe 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
stringThe 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
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
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.