Package uk.ac.gda.devices.insitu.model
Interface PlateInventory
- All Superinterfaces:
Configurable,Findable,gda.observable.IObservable,Serializable
- All Known Implementing Classes:
_PlateInventory
public interface PlateInventory
extends Findable, gda.observable.IObservable, Configurable, Serializable
The set of services available to a user from the Jython Command line
-
Method Summary
Modifier and TypeMethodDescriptionvoidintfindPlateIndex(String barcode) Find a PlateType identified by barcode if it existsfindPlateType(String typeId) Find a PlateType identified by typeId if it existsintintgetCount()getPlate(int index) Retrieve the plate specification from the beamline hotel inventoryvoidvoidloadInventory(String configName) voidvoidsaveInventory(String configName) voidsetCapacity(int capacity) Set the maximum number of plates held in the hotel inventoryvoidsetConfigurationName(String configName) voidsetInventory(List<Plate> inventory) Set the list of plates physically (or logically by type) available in the beamline hotelMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
addPlate
-
clearInventory
void clearInventory() -
findPlateType
Find a PlateType identified by typeId if it exists- Parameters:
typeId- the label for PlateType to be found- Returns:
- PlateType found, otherwise null
-
findPlateIndex
Find a PlateType identified by barcode if it exists- Parameters:
barcode- the bar code for plate to be found- Returns:
- index of plate found, otherwise -1
-
getCapacity
int getCapacity()- Returns:
- Returns the current hotel inventory capacity on the beamline
-
getCount
int getCount() -
getInventory
- Returns:
- the beamline hotel inventory, representing the physical plates (or logical types) available to load
-
getPlate
Retrieve the plate specification from the beamline hotel inventory- Parameters:
index- the index of plate in the hotel inventory- Returns:
- plate the plate specification at the index, or null
-
loadInventory
- Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
loadInventory
void loadInventory(String configName) throws org.apache.commons.configuration.ConfigurationException, IOException - Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
saveInventory
void saveInventory() throws org.apache.commons.configuration.ConfigurationException- Throws:
org.apache.commons.configuration.ConfigurationException
-
saveInventory
void saveInventory(String configName) throws org.apache.commons.configuration.ConfigurationException - Throws:
org.apache.commons.configuration.ConfigurationException
-
setConfigurationName
-
setCapacity
void setCapacity(int capacity) Set the maximum number of plates held in the hotel inventory- Parameters:
capacity-
-
setInventory
Set the list of plates physically (or logically by type) available in the beamline hotel- Parameters:
inventory-
-
setPlate
-