com.ibm.tivoli.maximo.amcrew.app

Class AMCrewTool

  • java.lang.Object
    • Field Detail

      • hasToolAssetLoop

        public boolean hasToolAssetLoop
        Flag is set if the hasToolAssetAlreadyAssigned loop is called
    • Constructor Detail

      • AMCrewTool

        public AMCrewTool(MboSet ms)
                   throws java.rmi.RemoteException
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • save

        protected void save()
                     throws MXException,
                            java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Mbo
        Can the object be deleted ? This is object specific and should be overridden.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.canDelete()
      • appValidate

        public void appValidate()
                         throws java.rmi.RemoteException,
                                MXException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        java.rmi.RemoteException
        MXException
      • setUnableToDelete

        public void setUnableToDelete(boolean unableToDelete)
      • setEffectiveDateIsLater

        public void setEffectiveDateIsLater(boolean laterEffectivedate)
      • isLaterEffectiveDate

        public boolean isLaterEffectiveDate()
      • setEarlierEndDate

        public void setEarlierEndDate(boolean earlierEndDate)
      • isEndDateEarlier

        public boolean isEndDateEarlier()
      • findAvailableTime

        public double findAvailableTime(java.util.Date shiftStart,
                                        java.util.Date shiftEnd)
                                 throws MXException,
                                        java.rmi.RemoteException
        Based on the shift start and shift end, we will return the total time available for this tool in hours.
        Parameters:
        shiftStart -
        shiftEnd -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setCreatedBySplit

        public void setCreatedBySplit(boolean cbs)
      • getCreatedBySplit

        public boolean getCreatedBySplit()
      • getHasCrewPrompt

        public boolean getHasCrewPrompt()
      • setHasCrewPrompt

        public void setHasCrewPrompt(boolean prompt)