Class Vertex
A Vertex is an abstraction of a node in a StateMachine graph. It can be the source or destination of any number of Transitions. <p>From package UML::StateMachines.</p>
[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Vertex")]
public abstract class Vertex : NamedElement, IVertex, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
Vertex
- Implements
- Derived
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Container
The Region that contains this Vertex. <p>From package UML::StateMachines.</p>
[Browsable(false)]
[XmlElementName("container")]
[XmlAttribute(true)]
[XmlOpposite("subvertex")]
public IRegion Container { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
ContainingStateMachine()
The operation containingStateMachine() returns the StateMachine in which this Vertex is defined. result = (if container <> null then -- the container is a region container.containingStateMachine() else if (self.oclIsKindOf(Pseudostate)) and ((self.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint) or (self.oclAsType(Pseudostate).kind = PseudostateKind::exitPoint)) then self.oclAsType(Pseudostate).stateMachine else if (self.oclIsKindOf(ConnectionPointReference)) then self.oclAsType(ConnectionPointReference).state.containingStateMachine() -- no other valid cases possible else null endif endif endif ) <p>From package UML::StateMachines.</p>
public IStateMachine ContainingStateMachine()
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
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
GetIncomings()
Derivation for Vertex::/incoming. result = (Transition.allInstances()->select(target=self)) <p>From package UML::StateMachines.</p>
public ISetExpression<ITransition> GetIncomings()
Returns
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
GetOutgoings()
Derivation for Vertex::/outgoing result = (Transition.allInstances()->select(source=self)) <p>From package UML::StateMachines.</p>
public ISetExpression<ITransition> GetOutgoings()
Returns
IsContainedInRegion(IRegion)
This utility query returns true if the Vertex is contained in the Region r (input argument). result = (if (container = r) then true else if (r.state->isEmpty()) then false else container.state.isContainedInRegion(r) endif endif) <p>From package UML::StateMachines.</p>
public bool IsContainedInRegion(IRegion r)
Parameters
r
IRegion
Returns
IsContainedInState(IState)
This utility operation returns true if the Vertex is contained in the State s (input argument). result = (if not s.isComposite() or container->isEmpty() then false else if container.state = s then true else container.state.isContainedInState(s) endif endif) <p>From package UML::StateMachines.</p>
public bool IsContainedInState(IState s)
Parameters
s
IState
Returns
OnParentChanged(IModelElement, IModelElement)
Gets called when the parent model element of the current model element changes
protected override void OnParentChanged(IModelElement newParent, IModelElement oldParent)
Parameters
newParent
IModelElementThe new parent model element
oldParent
IModelElementThe old parent model element
OnParentChanging(IModelElement, IModelElement)
Gets called when the parent model element of the current model element is about to change
protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)
Parameters
newParent
IModelElementThe new parent model element
oldParent
IModelElementThe old parent model element
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)