public void removeUnit(string label) { CoLib.Unit u = findByName(label); if (u != null) { network.RemoveUnit(u); } }
// For the following methods, these aren't necessary if the user has access to the decounits already public void setPriority(string s, double p) { CoLib.Unit u = interpreter.Model.FindUnitByName(s); if (u != null) { u.Priority = p; } }
public double getActivation(string s) { CoLib.Unit u = interpreter.Model.FindUnitByName(s); if (u != null) { return(u.Activation); } return(-1); }
public void removeUnit(CoLib.Unit u) { network.RemoveUnit(u); }