public void setTLC(int cat, int nr)
{ setColearningEnabled(cat == 1);
try {
SimModel sm = getSimModel();
TLCFactory tlcf = new TLCFactory(sm.getInfrastructure(), sm.getRandom());
TLController tlc = tlcf.genTLC(cat, nr);
tlc.showSettings(this);
sm.setTLController(tlc);
setColearningEnabled((tlc instanceof Colearning));
}
catch (GLDException e) {
reportError(e.fillInStackTrace());