Example #1
0
 public void AddNode(MctNode node)
 {
     if (!_nodes.ContainsKey(node.Id))
     {
         _nodes[node.Id] = node;
     }
 }
Example #2
0
 public void AddSupport(MctNode node, List <bool> constraints)
 {
     foreach (var support in _supports)
     {
         if (support is MctCommonSupport cs && cs.IsSameBearingType(constraints))
         {
             cs.AddNode(node);
             return;
         }
     }
     AddSupport(new MctCommonSupport(new List <MctNode>()
     {
         node
     }, constraints));
 }