Package com.neophob.sematrix.core.output

Examples of com.neophob.sematrix.core.output.E1_31Device


        assertEquals(0, ph.getI2cAddr().size());
        assertEquals(0, ph.getLpdDevice().size());
        assertEquals(OutputDeviceEnum.E1_31, ph.getOutputDevice());

        E1_31Device device = new E1_31Device(ph, 1);
        assertFalse(device.isSendMulticast());
        assertEquals(170, device.getPixelsPerUniverse());
        assertEquals(1, device.getNrOfUniverse());
        assertEquals(0, device.getFirstUniverseId());
       
       
       
        config = new Properties();
        config.put(ConfigConstant.E131_IP, "239.255.1.1");
        config.put(ConfigConstant.E131_ROW1, "NO_ROTATE");
        config.put(ConfigConstant.E131_FIRST_UNIVERSE_ID, "1");
        config.put(ConfigConstant.E131_PIXELS_PER_UNIVERSE, "333");
        config.put(ConfigConstant.OUTPUT_DEVICE_RESOLUTION_X, "10");
        config.put(ConfigConstant.OUTPUT_DEVICE_SNAKE_CABELING, "true");
        ph = new ApplicationConfigurationHelper(config);

        assertEquals(OutputDeviceEnum.E1_31, ph.getOutputDevice());
        assertEquals(1, ph.getNrOfScreens());
        assertEquals(10, ph.getDeviceXResolution());
        assertEquals(8, ph.getDeviceYResolution());
        assertEquals(true, ph.isOutputSnakeCabeling());

        assertEquals(0, ph.getI2cAddr().size());
        assertEquals(0, ph.getLpdDevice().size());
        assertEquals(OutputDeviceEnum.E1_31, ph.getOutputDevice());
   
        device = new E1_31Device(ph, 1);
        assertTrue(device.isSendMulticast());   
        assertEquals(1, device.getFirstUniverseId());
        assertEquals(170, device.getPixelsPerUniverse());
    }   
View Full Code Here


        break;
      case ARTNET:
        output = new ArtnetDevice(applicationConfig, collector.getNrOfScreens());
        break;
      case E1_31:
        output = new E1_31Device(applicationConfig, collector.getNrOfScreens());
        break;             
      case MINIDMX:
        output = new MiniDmxDevice(applicationConfig);
        break;
      case NULL:
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.output.E1_31Device

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.