Package 

Class AngleManagerImpl

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.wormhole.interfaces.AngleManager , it.unibo.alchemist.boundary.wormhole.interfaces.SlideInputManager

    
    public final class AngleManagerImpl
    extends AbstractSlideInputManager implements AngleManager
                        

    An AngleManager converts the sliding of any physical/virtual device/control into an angle expressed with radians.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static double DEF_DEG_PER_PIXEL
    • Constructor Summary

      Constructors 
      Constructor Description
      AngleManagerImpl() Initializes a new AngleManager instance with dUnit = 1 and dPhase = 0.
      AngleManagerImpl(double dUnit) Initializes a new AngleManager instance with dPhase = 0.
      AngleManagerImpl(double dUnit, double dPhase) Initializes a new AngleManager with the initial phase and unit in input.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      double getAngle()
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.implementation.AbstractSlideInputManager

        dec, inc
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AngleManagerImpl

        AngleManagerImpl()
        Initializes a new AngleManager instance with dUnit = 1 and dPhase = 0.
      • AngleManagerImpl

        AngleManagerImpl(double dUnit)
        Initializes a new AngleManager instance with dPhase = 0.
        Parameters:
        dUnit - is the amount of degrees corresponding to 1 slide (i.e.
      • AngleManagerImpl

        AngleManagerImpl(double dUnit, double dPhase)
        Initializes a new AngleManager with the initial phase and unit in input.
        Parameters:
        dUnit - is the amount of degrees corresponding to 1 slide (i.e.
        dPhase - is the initial rotation expressed with degrees