Ejemplo n.º 1
0
 public ClassDiagramRelationship(string name, ClassDescriptor party1, ClassDescriptor party2, ClassDiagramRelationshipTypes relationshipType)
 {
     Name             = name;
     Party1           = party1;
     Party2           = party2;
     RelationshipType = relationshipType;
 }
Ejemplo n.º 2
0
 public ClassDiagramRelationship(string name, ClassDescriptor party1, ClassDescriptor party2, ClassDiagramRelationshipTypes relationshipType)
 {
     Name = name;
     Party1 = party1;
     Party2 = party2;
     RelationshipType = relationshipType;
 }
Ejemplo n.º 3
0
        public void AddRelated(ClassDescriptor parent, ClassDescriptor child, ClassDiagramRelationshipTypes relationshipType, int level, string name = null)
        {
            if (! AlreadyRegistered(child))
                _unvisitedRelatedClasses.Enqueue(child);

            var relationship = new ClassDiagramRelationship(name, parent, child, relationshipType);

            if (!_relationships.Contains(relationship))
                _relationships.Add(relationship);
        }
Ejemplo n.º 4
0
        public void AddRelated(ClassDescriptor parent, ClassDescriptor child, ClassDiagramRelationshipTypes relationshipType, int level, string name = null)
        {
            if (!AlreadyRegistered(child))
            {
                _unvisitedRelatedClasses.Enqueue(child);
            }

            var relationship = new ClassDiagramRelationship(name, parent, child, relationshipType);

            if (!_relationships.Contains(relationship))
            {
                _relationships.Add(relationship);
            }
        }