Class AbstractFeeder

    • Field Detail

      • id

        protected java.lang.String id
      • name

        protected java.lang.String name
      • enabled

        protected boolean enabled
      • partId

        protected java.lang.String partId
      • retryCount

        protected java.lang.Integer retryCount
        Note: This is feedRetryCount in reality. It was left as retryCount for backwards compatibility when pickRetryCount was added. TODO Migration has been added and this can be removed after 2021-12-29.
      • feedRetryCount

        protected int feedRetryCount
      • pickRetryCount

        protected int pickRetryCount
      • part

        protected Part part
    • Constructor Detail

      • AbstractFeeder

        public AbstractFeeder()
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface Identifiable
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Feeder
        Return true is the Feeder is currently enabled and can be considered in Job planning.
        Specified by:
        isEnabled in interface Feeder
        Returns:
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface Feeder
      • setPart

        public void setPart​(Part part)
        Description copied from interface: Feeder
        Set the Part that is loaded into this Feeder.
        Specified by:
        setPart in interface Feeder
      • getPart

        public Part getPart()
        Description copied from interface: Feeder
        Get the Part that is loaded into this Feeder.
        Specified by:
        getPart in interface Feeder
        Returns:
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Named
      • setName

        public void setName​(java.lang.String name)
        Specified by:
        setName in interface Named
      • getFeedRetryCount

        public int getFeedRetryCount()
        Description copied from interface: Feeder
        If feed() throws an Exception during job processing, the job processor will retry the feed() call this many times before raising the error.
        Specified by:
        getFeedRetryCount in interface Feeder
        Returns:
      • setFeedRetryCount

        public void setFeedRetryCount​(int feedRetryCount)
      • getPickRetryCount

        public int getPickRetryCount()
        Description copied from interface: Feeder
        If post pick checks such as isPartOn() fail during job processing, the job processor will retry the pick and check process this many times before raising the error. Note that this does not include re-feeding the part.
        Specified by:
        getPickRetryCount in interface Feeder
        Returns:
      • setPickRetryCount

        public void setPickRetryCount​(int pickRetryCount)
      • postPick

        public void postPick​(Nozzle nozzle)
                      throws java.lang.Exception
        Specified by:
        postPick in interface Feeder
        Throws:
        java.lang.Exception
      • takeBackPart

        public void takeBackPart​(Nozzle nozzle)
                          throws java.lang.Exception
        Description copied from interface: Feeder
        Asks the feeder to take back the part currently on the nozzle.
        Specified by:
        takeBackPart in interface Feeder
        Throws:
        java.lang.Exception