Beispiel #1
0
 public void removeUnit(string label)
 {
     CoLib.Unit u = findByName(label);
     if (u != null)
     {
         network.RemoveUnit(u);
     }
 }
Beispiel #2
0
 // 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;
     }
 }
Beispiel #3
0
 public double getActivation(string s)
 {
     CoLib.Unit u = interpreter.Model.FindUnitByName(s);
     if (u != null)
     {
         return(u.Activation);
     }
     return(-1);
 }
Beispiel #4
0
 public void removeUnit(CoLib.Unit u)
 {
     network.RemoveUnit(u);
 }