public abstract class AbstractHead extends AbstractModelObject implements Head
PropertySheetHolder.PropertySheet
Modifier and Type | Field and Description |
---|---|
protected IdentifiableList<Actuator> |
actuators |
protected IdentifiableList<Camera> |
cameras |
protected java.lang.String |
id |
protected Machine |
machine |
protected Location |
maxLocation |
protected Location |
minLocation |
protected java.lang.String |
name |
protected IdentifiableList<Nozzle> |
nozzles |
protected Location |
parkLocation |
protected IdentifiableList<PasteDispenser> |
pasteDispensers |
protected boolean |
softLimitsEnabled |
propertyChangeSupport
Constructor and Description |
---|
AbstractHead() |
Modifier and Type | Method and Description |
---|---|
void |
addActuator(Actuator actuator) |
void |
addCamera(Camera camera) |
void |
addNozzle(Nozzle nozzle) |
Actuator |
getActuator(java.lang.String id)
Get the Actuator attached to this Head that has the specified id.
|
Actuator |
getActuatorByName(java.lang.String name) |
java.util.List<Actuator> |
getActuators()
Get a list of Actuators that are attached to this Head.
|
Camera |
getCamera(java.lang.String id)
Get the Camera attached to this Head that has the specified id.
|
java.util.List<Camera> |
getCameras()
Get a list of Cameras that are attached to this Head.
|
Camera |
getDefaultCamera() |
Nozzle |
getDefaultNozzle() |
PasteDispenser |
getDefaultPasteDispenser() |
java.lang.String |
getId() |
Machine |
getMachine() |
Location |
getMaxLocation() |
double |
getMaxPartSpeed()
Returns the maximum speed percentage allowed by any parts being carried
by the Nozzles on the Head.
|
Location |
getMinLocation() |
java.lang.String |
getName() |
Nozzle |
getNozzle(java.lang.String id)
Get the Nozzle attached to this Head that has the specified id.
|
java.util.List<Nozzle> |
getNozzles()
Get a list of Nozzles that are attached to this head.
|
Location |
getParkLocation() |
PasteDispenser |
getPasteDispenser(java.lang.String id) |
java.util.List<PasteDispenser> |
getPasteDispensers() |
javax.swing.Icon |
getPropertySheetHolderIcon() |
boolean |
isCarryingPart()
Returns true if any nozzle on the Head is currently carrying a part.
|
boolean |
isSoftLimitsEnabled() |
void |
moveToSafeZ() |
void |
moveToSafeZ(double speed) |
void |
removeActuator(Actuator actuator) |
void |
removeCamera(Camera camera) |
void |
removeNozzle(Nozzle nozzle) |
void |
setMachine(Machine machine) |
void |
setMaxLocation(Location maxLocation) |
void |
setMinLocation(Location minLocation) |
void |
setName(java.lang.String name) |
void |
setParkLocation(Location parkLocation) |
void |
setSoftLimitsEnabled(boolean softLimitsEnabled) |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationWizard
getChildPropertySheetHolders, getPropertySheetHolderActions, getPropertySheetHolderTitle, getPropertySheets
protected java.lang.String id
protected java.lang.String name
protected IdentifiableList<Nozzle> nozzles
protected IdentifiableList<Actuator> actuators
protected IdentifiableList<Camera> cameras
protected IdentifiableList<PasteDispenser> pasteDispensers
protected Location parkLocation
protected boolean softLimitsEnabled
protected Location minLocation
protected Location maxLocation
protected Machine machine
public java.lang.String getId()
getId
in interface Identifiable
public java.util.List<Nozzle> getNozzles()
Head
getNozzles
in interface Head
public Nozzle getNozzle(java.lang.String id)
Head
public java.util.List<Actuator> getActuators()
Head
getActuators
in interface Head
public Actuator getActuator(java.lang.String id)
Head
getActuator
in interface Head
public Actuator getActuatorByName(java.lang.String name)
getActuatorByName
in interface Head
public java.util.List<Camera> getCameras()
Head
getCameras
in interface Head
public Camera getCamera(java.lang.String id)
Head
public void addCamera(Camera camera) throws java.lang.Exception
public void removeCamera(Camera camera)
removeCamera
in interface Head
public void addActuator(Actuator actuator) throws java.lang.Exception
addActuator
in interface Head
java.lang.Exception
public void removeActuator(Actuator actuator)
removeActuator
in interface Head
public void addNozzle(Nozzle nozzle) throws java.lang.Exception
public void removeNozzle(Nozzle nozzle)
removeNozzle
in interface Head
public void moveToSafeZ(double speed) throws java.lang.Exception
moveToSafeZ
in interface Head
java.lang.Exception
public java.util.List<PasteDispenser> getPasteDispensers()
getPasteDispensers
in interface Head
public PasteDispenser getPasteDispenser(java.lang.String id)
getPasteDispenser
in interface Head
public javax.swing.Icon getPropertySheetHolderIcon()
getPropertySheetHolderIcon
in interface PropertySheetHolder
public Camera getDefaultCamera() throws java.lang.Exception
getDefaultCamera
in interface Head
java.lang.Exception
public Nozzle getDefaultNozzle() throws java.lang.Exception
getDefaultNozzle
in interface Head
java.lang.Exception
public PasteDispenser getDefaultPasteDispenser() throws java.lang.Exception
getDefaultPasteDispenser
in interface Head
java.lang.Exception
public Machine getMachine()
getMachine
in interface Head
public void setMachine(Machine machine)
setMachine
in interface Head
public void moveToSafeZ() throws java.lang.Exception
moveToSafeZ
in interface Head
java.lang.Exception
public Location getParkLocation()
getParkLocation
in interface Head
public void setParkLocation(Location parkLocation)
public boolean isCarryingPart()
Head
isCarryingPart
in interface Head
public double getMaxPartSpeed()
Head
getMaxPartSpeed
in interface Head
public Location getMinLocation()
public void setMinLocation(Location minLocation)
public Location getMaxLocation()
public void setMaxLocation(Location maxLocation)
public boolean isSoftLimitsEnabled()
public void setSoftLimitsEnabled(boolean softLimitsEnabled)