Package org.openpnp.machine.reference
Class ReferenceFeeder
- java.lang.Object
-
- org.openpnp.model.AbstractModelObject
-
- org.openpnp.spi.base.AbstractFeeder
-
- org.openpnp.machine.reference.ReferenceFeeder
-
- All Implemented Interfaces:
Identifiable,Named,Solutions.Subject,Feeder,PropertySheetHolder,WizardConfigurable
- Direct Known Subclasses:
AbstractPandaplacerVisionFeeder,AdvancedLoosePartFeeder,BlindsFeeder,Neoden4Feeder,PhotonFeeder,RapidFeeder,ReferenceAutoFeeder,ReferenceDragFeeder,ReferenceHeapFeeder,ReferenceLeverFeeder,ReferenceLoosePartFeeder,ReferencePushPullFeeder,ReferenceRotatedTrayFeeder,ReferenceStripFeeder,ReferenceTrayFeeder,ReferenceTubeFeeder,SchultzFeeder
public abstract class ReferenceFeeder extends AbstractFeeder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReferenceFeeder.FeedOptionsAdditional feed options which enable feeder implement skipping physical movement.-
Nested classes/interfaces inherited from interface org.openpnp.spi.PropertySheetHolder
PropertySheetHolder.PropertySheet
-
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceFeeder.FeedOptionsfeedOptionsprotected Locationlocation-
Fields inherited from class org.openpnp.spi.base.AbstractFeeder
enabled, feedRetryCount, id, name, part, partId, pickRetryCount, retryCount
-
Fields inherited from class org.openpnp.model.AbstractModelObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description ReferenceFeeder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceFeeder.FeedOptionsgetFeedOptions()LocationgetJobPreparationLocation()Some feeders need preparation for a Job that is best done up front and in bulk, such as vision calibration, actuating covers, checking OCR labels etc.LocationgetLocation()voidprepareForJob(boolean visit)Prepares a Feeder for usage in a Job.protected voidputPartBack(Nozzle nozzle)Put part back to pick location and check if part off.voidsetFeedOptions(ReferenceFeeder.FeedOptions feedOptions)voidsetLocation(Location location)booleansupportsFeedOptions()voidtakeBackPart(Nozzle nozzle)Do general sanity for takeBackPart().-
Methods inherited from class org.openpnp.spi.base.AbstractFeeder
canTakeBackPart, getFeedRetryCount, getId, getName, getPart, getPickRetryCount, getPropertySheetHolderIcon, getPropertySheets, isEnabled, postPick, setEnabled, setFeedRetryCount, setName, setPart, setPickRetryCount
-
Methods inherited from class org.openpnp.model.AbstractModelObject
addPropertyChangeListener, addPropertyChangeListener, dispose, dumpListeners, fireIndexedPropertyChange, firePropertyChange, isListener, isListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openpnp.spi.Feeder
feed, getPickLocation, isPartHeightAbovePickLocation
-
Methods inherited from interface org.openpnp.spi.PropertySheetHolder
getChildPropertySheetHolders, getPropertySheetHolderActions, getPropertySheetHolderTitle
-
Methods inherited from interface org.openpnp.model.Solutions.Subject
findIssues, getSubjectIcon, getSubjectText
-
Methods inherited from interface org.openpnp.spi.WizardConfigurable
getConfigurationWizard
-
-
-
-
Field Detail
-
location
protected Location location
-
feedOptions
protected ReferenceFeeder.FeedOptions feedOptions
-
-
Method Detail
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
supportsFeedOptions
public boolean supportsFeedOptions()
- Returns:
- True if feeder supports FeedOptions
-
getJobPreparationLocation
public Location getJobPreparationLocation()
Description copied from interface:FeederSome feeders need preparation for a Job that is best done up front and in bulk, such as vision calibration, actuating covers, checking OCR labels etc. Some prep requires the head moving to the feeder. For efficiency the JobProcessor uses a Travelling Salesman algorithm to visit all these feeders. The locations for these visits are gathered using getJobPreparationLocation().- Returns:
- The location for the feeder Job preparation visit or null if none.
-
prepareForJob
public void prepareForJob(boolean visit) throws java.lang.ExceptionDescription copied from interface:FeederPrepares a Feeder for usage in a Job. This is done for all the feeders that are enabled and contain Parts that are used in pending placements. Preparation is done when the Job is started, so it can perform bulk initialization that should not be postponed until the Nozzle.feed()- Parameters:
visit- true for visits along the getJobPreparationLocation() travel path, false for general preparation (second pass for visited feeders).- Throws:
java.lang.Exception
-
getFeedOptions
public ReferenceFeeder.FeedOptions getFeedOptions()
-
setFeedOptions
public void setFeedOptions(ReferenceFeeder.FeedOptions feedOptions)
-
takeBackPart
public void takeBackPart(Nozzle nozzle) throws java.lang.Exception
Do general sanity for takeBackPart(). Intended to call from feeder implementation.- Specified by:
takeBackPartin interfaceFeeder- Overrides:
takeBackPartin classAbstractFeeder- Throws:
java.lang.Exception
-
putPartBack
protected void putPartBack(Nozzle nozzle) throws java.lang.Exception
Put part back to pick location and check if part off. Intended to to call from particular takeBackPart() implementation- Parameters:
nozzle-- Throws:
java.lang.Exception
-
-