Exemplo n.º 1
0
        public DeCoUnit addUnit(DeCoUnitType type, string label, double priority)
        {
            DeCoUnit u = new DeCoUnit(type, label, priority);

            network.AddUnit(u);
            return(u);
        }
Exemplo n.º 2
0
 public void setUnitLink(DeCoUnitLinkType e, DeCoUnit u1, DeCoUnit u2, double degree)
 {
     if (e == DeCoUnitLinkType.DeCoLink_FACILITATE)
     {
         network.facilitate(u1, u2, degree);
     }
     else
     {
         network.incompatible(u1, u2, degree);
     }
 }