Interface AspectCallbackListener<T>


public interface AspectCallbackListener<T>
  • Method Details

    • activateAspect

      void activateAspect(T stepControlAspect)
      Activate the aspect.
      Parameters:
      stepControlAspect - the aspect
    • activateOppositeAspect

      void activateOppositeAspect(T stepControlAspect)
      Activate the opposite aspect.
      Parameters:
      stepControlAspect - the aspect
    • saveChanges

      void saveChanges(T originalAspect, Function<StepControlAspect,StepControlAspect> func) throws Exception
      Save the changes.
      Parameters:
      originalAspect - the aspect
      func - the callback function
      Throws:
      Exception
    • discardChanges

      void discardChanges(Callable<T> func) throws Exception
      Discard pending changes.
      Parameters:
      func - the callback function
      Throws:
      Exception
    • verifyUniquePosition

      void verifyUniquePosition(T originalAspect, Long position, Long positionOpposite)
      Verify that the postition is unique.
      Parameters:
      originalAspect - the aspect
      position - the position to verify
      positionOpposite - the opposite position to verify
    • getCurrentTurntablePosition

      Long getCurrentTurntablePosition()
      Returns:
      the current turntable position