Exemplo n.º 1
0
        internal HashSet <UML_SM.Transition> createIncomingTransitions(BehaviorStateMachines.Vertex vertex)
        {
            HashSet <UML_SM.Transition> incomingTransitions = new HashSet <UML_SM.Transition>();

            foreach (global::EA.Connector connector in vertex.wrappedElement.Connectors)
            {
                if (connector.Type == "StateFlow" &&
                    connector.SupplierID == vertex.wrappedElement.ElementID)
                {
                    UML_SM.Transition transition = createEAConnectorWrapper(connector) as UML_SM.Transition;
                    if (transition != null)
                    {
                        incomingTransitions.Add(transition);
                    }
                }
            }
            return(incomingTransitions);
        }
 /// <summary>
 /// Writes the IL declarations for a UML model transitions standard properties.
 /// </summary>
 /// <param name="relationship"></param>
 /// <returns>The TransformationILWriter instance for use in concatenated output.</returns>
 public TransformationILWriter WriteStdConnectorProperties(UML_SM.Transition relationship)
 {
     WriteILProperty("direction", "Source -> Destination");
     GenerateXRef("Connector", relationship as UTF_EA.ConnectorWrapper);
     return(this);
 }