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.

    • 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 withdUnit = 1 and dPhase = 0.
      AngleManagerImpl(double dUnit) Initializes a new AngleManager instance withdPhase = 0.
      AngleManagerImpl(double dUnit, double dPhase) Initializes a new AngleManager with the initial phase andunit in input.
    • Method Summary

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

        dec, getValue, inc, setValue
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.interfaces.AngleManager

        getAngle
      • 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 withdUnit = 1 and dPhase = 0.
      • AngleManagerImpl

        AngleManagerImpl(double dUnit)
        Initializes a new AngleManager instance withdPhase = 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 andunit in input.
        Parameters:
        dUnit - is the amount of degrees corresponding to 1 slide (i.e.
        dPhase - is the initial rotation expressed with degrees