Example #1
0
        public Node(string name)
        {
            Name = name;

            // Do not replace with backing field: logic might be overriden in derived classes
            IncomingBranches = new EventedList <IBranch>();
            OutgoingBranches = new EventedList <IBranch>();
            NodeFeatures     = new EventedList <INodeFeature>();
            Attributes       = new DictionaryFeatureAttributeCollection();
        }
Example #2
0
 public Node(string name)
 {
     Name = name;
     
     // Do not replace with backing field: logic might be overriden in derived classes
     IncomingBranches = new EventedList<IBranch>();
     OutgoingBranches = new EventedList<IBranch>();
     NodeFeatures = new EventedList<INodeFeature>();
     Attributes = new DictionaryFeatureAttributeCollection();
 }
Example #3
0
 public Branch(string name, INode fromNode, INode toNode, double length)
 {
     // Do not replace with backing field; virtual setter in derived classes can have added logic; eek!
     BranchFeatures = new EventedList <IBranchFeature>();
     Attributes     = new DictionaryFeatureAttributeCollection();
     Source         = fromNode;
     Target         = toNode;
     this.length    = length;
     Name           = name;
     OrderNumber    = -1; //-1 -> not a part of a chain of branches
 }
Example #4
0
 public Branch(string name, INode fromNode, INode toNode, double length)
 {
     // Do not replace with backing field; virtual setter in derived classes can have added logic; eek!
     BranchFeatures = new EventedList<IBranchFeature>();
     Attributes = new DictionaryFeatureAttributeCollection();
     Source = fromNode;
     Target = toNode;
     this.length = length;
     Name = name;
     OrderNumber = -1; //-1 -> not a part of a chain of branches
 }
Example #5
0
        public Node(string name)
        {
            Name = name;
            
            incomingBranches = new EventedList<IBranch>();
            outgoingBranches = new EventedList<IBranch>();

            ((INotifyCollectionChanged)incomingBranches).CollectionChanged += ConnectedBranches_CollectionChanged;
            ((INotifyCollectionChanged)outgoingBranches).CollectionChanged += ConnectedBranches_CollectionChanged;

            // Do not replace with backing field?; see Branch
            NodeFeatures = new EventedList<INodeFeature>();
            Attributes = new DictionaryFeatureAttributeCollection();
            IsBoundaryNode = true;
        }
Example #6
0
        public Node(string name)
        {
            Name = name;

            incomingBranches = new EventedList <IBranch>();
            outgoingBranches = new EventedList <IBranch>();

            ((INotifyCollectionChanged)incomingBranches).CollectionChanged += ConnectedBranches_CollectionChanged;
            ((INotifyCollectionChanged)outgoingBranches).CollectionChanged += ConnectedBranches_CollectionChanged;

            // Do not replace with backing field?; see Branch
            NodeFeatures   = new EventedList <INodeFeature>();
            Attributes     = new DictionaryFeatureAttributeCollection();
            IsBoundaryNode = true;
        }
Example #7
0
        public Branch(string name, INode fromNode, INode toNode, double length)
        {
            Source = fromNode;
            Target = toNode;

            this.length = length;

/*
 *          if(length != 0)
 *          {
 *              IsLengthCustom = true;
 *          }
 */

            Name = name;

            // Do not replace with backing field; virtual setter in derived classes can have added logic; eek!
            BranchFeatures = new EventedList <IBranchFeature>();
            Attributes     = new DictionaryFeatureAttributeCollection();
        }
Example #8
0
        public Branch(string name, INode fromNode, INode toNode, double length)
        {
            Source = fromNode;
            Target = toNode;

            this.length = length;
            
/*
            if(length != 0)
            {
                IsLengthCustom = true;
            }
*/

            Name = name;

            // Do not replace with backing field; virtual setter in derived classes can have added logic; eek!
            BranchFeatures = new EventedList<IBranchFeature>();
            Attributes = new DictionaryFeatureAttributeCollection();
        }
Example #9
0
 protected BranchFeature()
 {
     Attributes = new DictionaryFeatureAttributeCollection();
 }
Example #10
0
 protected BranchFeature()
 {
     Attributes = new DictionaryFeatureAttributeCollection();
 }