Ejemplo n.º 1
0
 // private Boolean alive = false;
 public StartNodeInstance(StartNode startNd)
 {
     this.startNode = startNd;
     this.Volume = startNode.LeavingTransitions.Count;//  start 节点容量 ==输出弧的数量
 }
Ejemplo n.º 2
0
        private XElement writeStartNode(StartNode startNode)
        {
            if (startNode == null) { return null; }

            XElement dataFieldsElement = new XElement(
                xN + START_NODE,
                new XAttribute(ID, startNode.Id),
                new XAttribute(NAME, startNode.Name),
                new XAttribute(DISPLAY_NAME, startNode.DisplayName),
                new XElement(xN + DESCRIPTION, startNode.Description),
                writeExtendedAttributes(startNode.ExtendedAttributes)
                );
            return dataFieldsElement;
        }