com.ibm.tivoli.maximo.skd.app

Class ResourceFinder

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.app.ResourceFinder


  • public class ResourceFinder
    extends java.lang.Object
    The ResourceFinder class is responsible for finding the resource for the emergency work of project
    • Constructor Summary

      Constructors 
      Constructor and Description
      ResourceFinder(long skdprojectid, java.lang.String emQuery)
      Constructor of SLAFinder.
    • Constructor Detail

      • ResourceFinder

        public ResourceFinder(long skdprojectid,
                              java.lang.String emQuery)
        Constructor of SLAFinder. Do not pass null in the parameter mbo!
    • Method Detail

      • getAvailResoures

        public java.util.List getAvailResoures(UserInfo userInfo,
                                               java.lang.String type,
                                               MboRemote wo,
                                               MboRemote req)
                                        throws MXException,
                                               java.rmi.RemoteException
        get available resource by exclude resource by rules
        Throws:
        MXException
        java.rmi.RemoteException
      • getProjectResoures

        public java.util.List getProjectResoures()
                                          throws MXException,
                                                 java.rmi.RemoteException
        get project resource by exclude skill not match
        Throws:
        MXException
        java.rmi.RemoteException
      • getProjectReassignResoures

        public java.util.List getProjectReassignResoures()
                                                  throws MXException,
                                                         java.rmi.RemoteException
        get project resources which assigned on non emergency in this project
        Throws:
        MXException
        java.rmi.RemoteException
      • getResourceProjectAssignedSet

        public java.util.HashMap getResourceProjectAssignedSet()
                                                        throws MXException,
                                                               java.rmi.RemoteException
        get project resources which assigned on non emergency in this project
        Throws:
        MXException
        java.rmi.RemoteException
      • getClosestResoureList

        public java.util.List getClosestResoureList(java.util.List resoureSet,
                                                    java.lang.String type,
                                                    MboRemote wo,
                                                    MboRemote req,
                                                    boolean assignedlist)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Labor/crew's current location should be closest to the work location
        Throws:
        MXException
        java.rmi.RemoteException
      • getTravelTimeForResoureList

        public java.util.HashMap getTravelTimeForResoureList(java.util.List resoureSet,
                                                             java.lang.String type,
                                                             MboRemote wo,
                                                             MboRemote req,
                                                             boolean assignedlist)
                                                      throws MXException,
                                                             java.rmi.RemoteException
        Labor/crew's current location should be closest to the work location
        Throws:
        MXException
        java.rmi.RemoteException
      • getWOandTravelTimeForResoureList

        public java.util.HashMap getWOandTravelTimeForResoureList(java.util.List resoureSet,
                                                                  java.lang.String type,
                                                                  MboRemote wo,
                                                                  MboRemote req,
                                                                  boolean assignedlist)
                                                           throws MXException,
                                                                  java.rmi.RemoteException
        Labor/crew's current location should be closest to the work location
        Throws:
        MXException
        java.rmi.RemoteException
      • isAvailableByCalendar

        public boolean isAvailableByCalendar(UserInfo userInfo,
                                             MboRemote resourceRemote,
                                             MboRemote personCal,
                                             java.util.Date dateVal,
                                             AvailCalc availCalc,
                                             boolean considerBreaks,
                                             int mins)
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isAvailableByCalendarBreaks

        protected boolean isAvailableByCalendarBreaks(MboRemote availMbo,
                                                      java.util.GregorianCalendar gcCurrenttime,
                                                      java.util.GregorianCalendar gcStarttime,
                                                      java.util.GregorianCalendar gcEndtime,
                                                      int mins)
                                               throws java.rmi.RemoteException,
                                                      MXException
        Check current time before any break end for the passed workperiod. There could be more than one break record for the passed workperiod mbo.
        Throws:
        java.rmi.RemoteException
        MXException