Package org.openhab.binding.zwave.internal.protocol.serialmessage

Examples of org.openhab.binding.zwave.internal.protocol.serialmessage.ZWaveCommandProcessor


   * @param incomingMessage the incoming message to process.
   */
  private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
    logger.trace("Message type = REQUEST");

    ZWaveCommandProcessor processor = ZWaveCommandProcessor.getMessageDispatcher(incomingMessage.getMessageClass());
    if(processor != null) {
      processor.handleRequest(this, lastSentMessage, incomingMessage);

      if(processor.isTransactionComplete()) {
        notifyEventListeners(new ZWaveTransactionCompletedEvent(this.lastSentMessage));
        transactionCompleted.release();
        logger.trace("Released. Transaction completed permit count -> {}", transactionCompleted.availablePermits());
      }
    }
View Full Code Here


   * @param incomingMessage the response message to process.
   */
  private void handleIncomingResponseMessage(SerialMessage incomingMessage) {
    logger.trace("Message type = RESPONSE");

    ZWaveCommandProcessor processor = ZWaveCommandProcessor.getMessageDispatcher(incomingMessage.getMessageClass());
    if(processor != null) {
      processor.handleResponse(this, lastSentMessage, incomingMessage);

      if(processor.isTransactionComplete()) {
        notifyEventListeners(new ZWaveTransactionCompletedEvent(this.lastSentMessage));
        transactionCompleted.release();
        logger.trace("Released. Transaction completed permit count -> {}", transactionCompleted.availablePermits());
      }
    }
View Full Code Here

TOP

Related Classes of org.openhab.binding.zwave.internal.protocol.serialmessage.ZWaveCommandProcessor

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.