Example #1
0
 public EndNodeInstance(EndNode endNd)
 {
     this.endNode = endNd;
     this.Volume = this.endNode.EnteringTransitions.Count;
 }
        private XElement writeEndNode(EndNode endNode)
        {
            if (endNode == null) { return null; }

            XElement endNodeElement = new XElement(
                xN + END_NODE,
                new XAttribute(ID, endNode.Id),
                new XAttribute(NAME, endNode.Name),
                new XAttribute(DISPLAY_NAME, endNode.DisplayName),
                new XElement(xN + DESCRIPTION, endNode.Description),
                writeExtendedAttributes(endNode.ExtendedAttributes)
                );
            return endNodeElement;
        }