com.ibm.tivoli.maximo.skd.model

Class SKDMultiShiftMerger

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.model.SKDMultiShiftMerger
  • All Implemented Interfaces:
    java.io.Serializable


    public class SKDMultiShiftMerger
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      SKDMultiShiftMerger(java.util.Locale l, java.util.TimeZone tz) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Date[] getShiftWorkTime(java.util.ArrayList workperiods, int index)
      Get the shift pairs
      void insertWorkTime(java.util.ArrayList workperiods, int index, java.util.Date[] workTime)
      Insert work time to the list for an index
      java.util.ArrayList mergeShifts(java.util.HashMap calInfoMap, boolean forWorkingHours)
      Merge miltiple shifts and get list of dates
      java.util.ArrayList mergeShiftsNew(java.util.HashMap calInfoMap, boolean forWorkingHours)
      Merge miltiple shifts and get list of dates.
      java.util.ArrayList mergeShiftsOLD(java.util.HashMap calInfoMap, boolean forWorkingHours)
      Merge miltiple shifts and get list of dates
      void updateWorkTime(java.util.ArrayList workperiods, int index, java.util.Date[] workTime)
      Update work time for the index
      • Methods inherited from class java.lang.Object

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

      • SKDMultiShiftMerger

        public SKDMultiShiftMerger(java.util.Locale l,
                                   java.util.TimeZone tz)
    • Method Detail

      • mergeShifts

        public java.util.ArrayList mergeShifts(java.util.HashMap calInfoMap,
                                               boolean forWorkingHours)
        Merge miltiple shifts and get list of dates
        Parameters:
        calInfoMap -
        forWorkingHours -
        Returns:
        list of work dates
        Throws:
        java.lang.Exception
      • mergeShiftsNew

        public java.util.ArrayList mergeShiftsNew(java.util.HashMap calInfoMap,
                                                  boolean forWorkingHours)
        Merge miltiple shifts and get list of dates. The Array should be set of Pairs of Start and End dates. Each Pair is normalized so that there are no overalapping sections, but rather overlapping sections are merged into a single range.
        Parameters:
        calInfoMap -
        forWorkingHours -
        Returns:
        list of work dates
        Throws:
        java.lang.Exception
      • mergeShiftsOLD

        public java.util.ArrayList mergeShiftsOLD(java.util.HashMap calInfoMap,
                                                  boolean forWorkingHours)
        Merge miltiple shifts and get list of dates
        Parameters:
        calInfoMap -
        forWorkingHours -
        Returns:
        list of work dates
        Throws:
        java.lang.Exception
      • getShiftWorkTime

        public java.util.Date[] getShiftWorkTime(java.util.ArrayList workperiods,
                                                 int index)
        Get the shift pairs
        Parameters:
        workperiods -
        index -
        Returns:
        pair of dates
      • insertWorkTime

        public void insertWorkTime(java.util.ArrayList workperiods,
                                   int index,
                                   java.util.Date[] workTime)
        Insert work time to the list for an index
        Parameters:
        workperiods -
        index -
        workTime -
      • updateWorkTime

        public void updateWorkTime(java.util.ArrayList workperiods,
                                   int index,
                                   java.util.Date[] workTime)
        Update work time for the index
        Parameters:
        workperiods -
        index -
        workTime -