public DeCoUnit addUnit(DeCoUnitType type, string label, double priority) { DeCoUnit u = new DeCoUnit(type, label, priority); network.AddUnit(u); return(u); }
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); } }