Ejemplo n.º 1
0
        public VertexTypePredefinition AddIncomingEdge(IncomingEdgePredefinition myIncomingEdgePredefinition)
        {
            if (myIncomingEdgePredefinition != null)
            {
                _attributes = (_attributes) ?? new List<AttributePredefinition>();
                _attributes.Add(myIncomingEdgePredefinition);
                _incoming++;
            }

            return this;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of OutgoingEdgeNotFoundException.
 /// </summary>
 /// <param name="myPredefinition">
 /// The predefinition, that contains the incoming edge.
 /// </param>
 /// <param name="myIncomingEdge">
 /// The incoming edge that causes the exception.
 /// </param>
 public OutgoingEdgeNotFoundException(VertexTypePredefinition myPredefinition, IncomingEdgePredefinition myIncomingEdge)
 {
     Predefinition = myPredefinition;
     IncomingEdge = myIncomingEdge;
     _msg = string.Format("Vertextype {0} defines an incoming edge on a nonexisting outgoing edge ({1}).", myPredefinition.VertexTypeName, myIncomingEdge.AttributeType);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Adds a incoming edge.
        /// </summary>
        /// <param name="myIncomingEdgePredefinition">The definition of the incoming edge.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestAlterVertexType AddIncomingEdge(IncomingEdgePredefinition myIncomingEdgePredefinition)
        {
            if (myIncomingEdgePredefinition != null)
            {
                _toBeAddedAttributes = (_toBeAddedAttributes) ?? new List<AttributePredefinition>();
                _toBeAddedAttributes.Add(myIncomingEdgePredefinition);
                AddIncomingEdgeCount++;
            }

            return this;
        }