result = macro.getPortValue(outputType); result = macro.getPortValue(outputType);
AnalogPortActionType analogPortAction = new AnalogPortActionType(); analogPortAction.setAction(AnalogActionType.fromValue(analogPortEnum.name())); analogPortAction.setValue(ByteUtils.getInt(lcMacro.getPortValue(outputType))); analogPortPoint.setAnalogPortActionType(analogPortAction); analogPortPoint.setOutputNumber(bidibPort.getPortNumber(portModel)); BacklightPortActionType backlightPortActionType = new BacklightPortActionType(); backlightPortActionType.setAction(BacklightActionType.fromValue(backlightPortEnum.name())); backlightPortActionType.setBrightness(ByteUtils.getInt(lcMacro.getPortValue(outputType))); BacklightPortPoint backlightPortPoint = new BacklightPortPoint(); backlightPortPoint.setBacklightPortActionType(backlightPortActionType); MotorPortActionType motorPortActionType = new MotorPortActionType(); motorPortActionType.setAction(MotorActionType.fromValue(motorPortEnum.name())); motorPortActionType.setValue(ByteUtils.getInt(lcMacro.getPortValue(outputType))); MotorPortPoint motorPortPoint = new MotorPortPoint(); motorPortPoint.setMotorPortActionType(motorPortActionType); ServoPortActionType servoPortActionType = new ServoPortActionType(); servoPortActionType.setAction(ServoActionType.fromValue(servoPortEnum.name())); servoPortActionType.setDestination(ByteUtils.getInt(lcMacro.getPortValue(outputType))); ServoPortPoint servoPortPoint = new ServoPortPoint(); servoPortPoint.setServoPortActionType(servoPortActionType); SoundPortActionType soundPortActionType = new SoundPortActionType(); soundPortActionType.setAction(SoundActionType.fromValue(soundPortEnum.name())); soundPortActionType.setValue(ByteUtils.getInt(lcMacro.getPortValue(outputType))); SoundPortPoint soundPortPoint = new SoundPortPoint(); soundPortPoint.setSoundPortActionType(soundPortActionType);