public IncomingEdgePredefinition(String myEdgeName, 
                                     VertexTypePredefinition mySourceVertexType, 
                                     OutgoingEdgePredefinition myOutgoingEdge)
     : base(myEdgeName, "")
 {
     SetOutgoingEdge(mySourceVertexType, myOutgoingEdge);
 }
 public IncomingEdgePredefinition(String myEdgeName,
                                  VertexTypePredefinition mySourceVertexType,
                                  OutgoingEdgePredefinition myOutgoingEdge)
     : base(myEdgeName, "")
 {
     SetOutgoingEdge(mySourceVertexType, myOutgoingEdge);
 }
        /// <summary>
        /// Sets the outgoing edge, this incoming edge is the backward version for.
        /// </summary>
        /// <param name="mySourceVertexType">A vertex type pre-definition.</param>
        /// <param name="myOutgoingEdge">An outgoing IncomingEdge pre-definition.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        private IncomingEdgePredefinition SetOutgoingEdge(VertexTypePredefinition mySourceVertexType, 
                                                            OutgoingEdgePredefinition myOutgoingEdge)
        {
            if (mySourceVertexType != null && myOutgoingEdge != null)
                AttributeType = Combine(mySourceVertexType.TypeName, 
                                        myOutgoingEdge.AttributeName);

            return this;
        }
Exemple #4
0
        /// <summary>
        /// Adds an outgoing edge.
        /// </summary>
        /// <param name="myOutgoingEdgePredefinition">The definition of the outgoing IncomingEdge</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public VertexTypePredefinition AddOutgoingEdge(OutgoingEdgePredefinition myOutgoingEdgePredefinition)
        {
            if (myOutgoingEdgePredefinition != null)
            {
                _attributes = (_attributes) ?? new List <AAttributePredefinition>();
                _attributes.Add(myOutgoingEdgePredefinition);
                _outgoing++;
            }

            return(this);
        }
        /// <summary>
        /// Sets the outgoing edge, this incoming edge is the backward version for.
        /// </summary>
        /// <param name="mySourceVertexType">A vertex type pre-definition.</param>
        /// <param name="myOutgoingEdge">An outgoing IncomingEdge pre-definition.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        private IncomingEdgePredefinition SetOutgoingEdge(VertexTypePredefinition mySourceVertexType,
                                                          OutgoingEdgePredefinition myOutgoingEdge)
        {
            if (mySourceVertexType != null && myOutgoingEdge != null)
            {
                AttributeType = Combine(mySourceVertexType.TypeName,
                                        myOutgoingEdge.AttributeName);
            }

            return(this);
        }
        /// <summary>
        /// Adds an outgoing edge.
        /// </summary>
        /// <param name="myOutgoingEdgePredefinition">The definition of the outgoing IncomingEdge</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public VertexTypePredefinition AddOutgoingEdge(OutgoingEdgePredefinition myOutgoingEdgePredefinition)
        {
            if (myOutgoingEdgePredefinition != null)
            {
                _attributes = (_attributes) ?? new List<AAttributePredefinition>();
                _attributes.Add(myOutgoingEdgePredefinition);
                _outgoing++;
            }

            return this;
        }
 internal ServiceOutgoingEdgePredefinition(OutgoingEdgePredefinition myOutgoingEdgePredefinition) : base(myOutgoingEdgePredefinition)
 {
     this.EdgeType = myOutgoingEdgePredefinition.EdgeType;
     this.InnerEdgeType = myOutgoingEdgePredefinition.InnerEdgeType;
     this.Multiplicity = ConvertHelper.ToServiceEdgeMultiplicity(myOutgoingEdgePredefinition.Multiplicity);
 }