Class SlotEditTask

  • All Implemented Interfaces:
    java.util.concurrent.Callable<Slot>

    public final class SlotEditTask
    extends java.lang.Object
    implements java.util.concurrent.Callable<Slot>
    Timer Task for a slot (Manage a lock the time the user fill the form
    Author:
    Laurent Payen
    • Constructor Summary

      Constructors 
      Constructor Description
      SlotEditTask​(int nIdSlot, int nbPlacesTaken)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Slot call()  
      int getIdSlot()
      Get the id of the slot
      int getNbPlacesTaken()
      Get the number of places potentially taken
      void setIdSlot​(int nIdSlot)
      Set the id of the slot
      void setNbPlacesTaken​(int nbPlacesTaken)
      Set the number of places potentially taken
      • Methods inherited from class java.lang.Object

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

      • SlotEditTask

        public SlotEditTask​(int nIdSlot,
                            int nbPlacesTaken)
    • Method Detail

      • call

        public Slot call()
        Specified by:
        call in interface java.util.concurrent.Callable<Slot>
      • getNbPlacesTaken

        public int getNbPlacesTaken()
        Get the number of places potentially taken
        Returns:
        the number of places
      • setNbPlacesTaken

        public void setNbPlacesTaken​(int nbPlacesTaken)
        Set the number of places potentially taken
        Parameters:
        nbPlacesTaken -
      • getIdSlot

        public int getIdSlot()
        Get the id of the slot
        Returns:
        the id of the slot
      • setIdSlot

        public void setIdSlot​(int nIdSlot)
        Set the id of the slot
        Parameters:
        nIdSlot - the id of the slot