Package org.openhab.binding.dmx.internal.action

Examples of org.openhab.binding.dmx.internal.action.BaseAction


    if (!switchedOn) {
      return DMX_MIN_VALUE;
    }

    if (hasRunningActions()) {
      BaseAction action = actions.get(0);
      value = action.getNewValue(this, calculationTime);
      if (action.isCompleted()) {
        switchToNextAction();
      }
    }

    return value;
View Full Code Here


   */
  public synchronized void switchToNextAction() {

    logger.trace("Switching to next action on channel {}", getChannelId());
    // push action to the back of the action list
    BaseAction action = actions.get(0);
    actions.remove(0);
    action.reset();
    actions.add(action);
  }
View Full Code Here

TOP

Related Classes of org.openhab.binding.dmx.internal.action.BaseAction

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.