Search in sources :

Example 1 with EcosTrafficController

use of jmri.jmrix.ecos.EcosTrafficController in project JMRI by JMRI.

the class EcosLocoToRosterTest method testCTor.

@Test
public void testCTor() {
    EcosTrafficController tc = new EcosInterfaceScaffold();
    EcosSystemConnectionMemo memo = new EcosSystemConnectionMemo(tc);
    EcosLocoToRoster t = new EcosLocoToRoster(memo);
    Assert.assertNotNull("exists", t);
}
Also used : EcosSystemConnectionMemo(jmri.jmrix.ecos.EcosSystemConnectionMemo) EcosTrafficController(jmri.jmrix.ecos.EcosTrafficController) EcosInterfaceScaffold(jmri.jmrix.ecos.EcosInterfaceScaffold) Test(org.junit.Test)

Example 2 with EcosTrafficController

use of jmri.jmrix.ecos.EcosTrafficController in project JMRI by JMRI.

the class NetworkDriverAdapter method configure.

/**
     * set up all of the other objects to operate with an ECOS command station
     * connected to this port
     */
@Override
public void configure() {
    // connect to the traffic controller
    EcosTrafficController control = new EcosTrafficController();
    control.connectPort(this);
    control.setAdapterMemo(this.getSystemConnectionMemo());
    this.getSystemConnectionMemo().setEcosTrafficController(control);
    this.getSystemConnectionMemo().configureManagers();
}
Also used : EcosTrafficController(jmri.jmrix.ecos.EcosTrafficController)

Aggregations

EcosTrafficController (jmri.jmrix.ecos.EcosTrafficController)2 EcosInterfaceScaffold (jmri.jmrix.ecos.EcosInterfaceScaffold)1 EcosSystemConnectionMemo (jmri.jmrix.ecos.EcosSystemConnectionMemo)1 Test (org.junit.Test)1