Exemple #1
0
 /// <summary>
 /// Gets the state machine this vertex belongs to.
 /// </summary>
 /// <returns>An instance of <see cref="IStateMachine"/>.</returns>
 public IStateMachine ContainingStateMachine()
 {
     if (this.container != null)
     {
         return(this.container.ContainingStateMachine());
     }
     else
     {
         if (this is PseudoState)
         {
             PseudoState pseudoState = this as PseudoState;
             return(pseudoState.ContainingStateMachine());
         }
         else
         {
             ConnectionPointReference connectionPointReference = this as ConnectionPointReference;
             return(connectionPointReference.ContainingStateMachine());
         }
     }
 }