/** * Create an instance of {@link LightPortType } * */ public LightPortType createLightPortType() { return new LightPortType(); }
public LightPortType withPort(LightPortParamsType... values) { if (values!= null) { for (LightPortParamsType value: values) { getPort().add(value); } } return this; }
@Override public LightPortType withCount(int value) { setCount(value); return this; }
new FeaturesType().withFeature(new FeatureType().withType("FEATURE_CTRL_MAC_START_MAN").withValue(1), new FeatureType().withType("FEATURE_CTRL_MAC_START_DCC").withValue(1))); subNode.withLPORT(new LightPortType().withCount(32).withPort( new LightPortParamsType() .withPortId(0).withDimSlopeDown(6).withDimSlopeUp(3).withIntensityOff(20).withIntensityOn(240),
Assert.assertEquals(node.getLPORT().getCount(), 128); Assert.assertNotNull(node.getBACKLIGHT()); Assert.assertEquals(node.getBACKLIGHT().getCount(), 16); Assert.assertEquals(node.getINPUT().getCount(), 8); Assert.assertNotNull(node.getLPORT().getPort()); Assert.assertNotNull(node.getLPORT().getPort().get(0)); LightPortParamsType lightPortParamsType = node.getLPORT().getPort().get(0); Assert.assertEquals(lightPortParamsType.getDmxMapping(), 1); Assert.assertEquals(lightPortParamsType.getIntensityOff(), 20); Assert.assertEquals(lightPortParamsType.getIntensityOn(), 240); lightPortParamsType = node.getLPORT().getPort().get(1); Assert.assertEquals(lightPortParamsType.getDmxMapping(), 4);
@Override public LightPortType withOffset(Integer value) { setOffset(value); return this; }
Assert.assertEquals(node.getLPORT().getCount(), 32); Assert.assertNotNull(node.getSPORT()); Assert.assertEquals(node.getSPORT().getCount(), 8);
public LightPortType withPort(Collection<LightPortParamsType> values) { if (values!= null) { getPort().addAll(values); } return this; }