Package gda.device.auxiliary
Class Canberra35
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.auxiliary.Canberra35
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable
Class to control the Canberra35 MCA
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(int memory) voidcollect(int memory, int dwellTime) voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.intintgetLiveTime(int memory) intint[]Gets the serial device name.intint[]read(int memory) voidreset()voidsetLength(int length) voidsetMemories(int memory) voidsetSerialDeviceName(String serialDeviceName) Sets the serial device name.voidstop()voidwrite(int[] data, int memory) Methods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigured, reconfigure
-
Constructor Details
-
Canberra35
public Canberra35()The Constructor.
-
-
Method Details
-
configure
public void configure()Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase
-
setSerialDeviceName
Sets the serial device name.- Parameters:
serialDeviceName- The serial device name
-
getSerialDeviceName
Gets the serial device name.- Returns:
- The serial device name
-
setLength
- Parameters:
length-- Throws:
MCAException
-
getLength
public int getLength()- Returns:
- length
-
getMemoryConfigurations
public int[] getMemoryConfigurations()- Returns:
- memory configuration
-
setMemories
- Parameters:
memory-- Throws:
MCAException
-
getMemories
public int getMemories()- Returns:
- memories
-
getLiveTime
- Parameters:
memory-- Returns:
- live time
- Throws:
MCAException
-
getStatus
public int getStatus()- Returns:
- status
-
reset
- Throws:
MCAException
-
stop
- Throws:
MCAException
-
collect
- Parameters:
memory-dwellTime-- Throws:
MCAException
-
write
- Parameters:
data-memory-- Throws:
MCAException
-
read
- Parameters:
memory-- Returns:
- int[]
- Throws:
MCAException
-
clear
- Parameters:
memory-- Throws:
MCAException
-