public DCCppSystemConnectionMemo(DCCppTrafficController xt) { super("DCCPP", "DCC++"); this.xt = xt; xt.setSystemConnectionMemo(this); register(); // registers general type InstanceManager.store(this, DCCppSystemConnectionMemo.class); // also register as specific type // create and register the DCCppComponentFactory InstanceManager.store( cf = new jmri.jmrix.dccpp.swing.DCCppComponentFactory(this), jmri.jmrix.swing.ComponentFactory.class); if (log.isDebugEnabled()) { log.debug("Created DCCppSystemConnectionMemo"); } }
// ctor has to register for DCCpp events public DCCppTurnoutManager(DCCppTrafficController controller, String prefix) { super(); tc = controller; this.prefix = prefix; tc.addDCCppListener(DCCppInterface.FEEDBACK, this); }
public void setDCCppTrafficController(DCCppTrafficController xt) { this.xt = xt; // in addition to setting the traffic controller in this object, // set the systemConnectionMemo in the traffic controller xt.setSystemConnectionMemo(this); }