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

            return(this);
        }
 /// <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, Exception innerException = null) : base(innerException)
 {
     Predefinition = myPredefinition;
     IncomingEdge = myIncomingEdge;
     _msg = string.Format("Vertextype {0} defines an incoming edge on a nonexisting outgoing edge ({1}).", myPredefinition.TypeName, myIncomingEdge.AttributeType);
 }
Exemplo n.º 3
0
        public VertexTypePredefinition AddIncomingEdge(IncomingEdgePredefinition myIncomingEdgePredefinition)
        {
            if (myIncomingEdgePredefinition != null)
            {
                _attributes = (_attributes) ?? new List<AAttributePredefinition>();
                _attributes.Add(myIncomingEdgePredefinition);
                _incoming++;
            }

            return this;
        }
 internal ServiceIncomingEdgePredefinition(IncomingEdgePredefinition myIncomingEdgePredefinition) : base(myIncomingEdgePredefinition)
 {
     this.OutgoingEdgeName = myIncomingEdgePredefinition.AttributeType.Substring(myIncomingEdgePredefinition.AttributeType.IndexOf(IncomingEdgePredefinition.TypeSeparator) + 1);
 }