Package gda.device.memory
Class EncoderCounter
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.memory.Gdhist
gda.device.memory.EncoderCounter
- All Implemented Interfaces:
Device,Memory,Configurable,Findable,gda.observable.IObservable
A memory class for the HY8513 Hytec Incremental Counter Encoder implemented using DA.Server
-
Field Summary
Fields inherited from class gda.device.memory.Gdhist
daServer, handle, height, host, localEndian, openCommand, password, remoteEndian, startupScript, totalFrames, user, widthFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(int start, int count) Clear the specified number of frames/images/spectra starting with specified frame/image/spectrum number.voidclear(int x, int y, int t, int dx, int dy, int dt) Clear the specified block of memory.intGet the physical memory sizeint[]If the detector supports multiple pixel settings, this will return an array of possible values.voidsetDimension(int[] d) Set the size of the memory system.Methods inherited from class gda.device.memory.Gdhist
clear, close, configure, ensureOpen, getAttribute, getDaServer, getDaServerName, getDimension, getHeight, getOpenCommand, getSizeCommand, getStartupScript, getWidth, open, output, read, read, readFloat, readFloat, reconfigure, sendAndParse, setAttribute, setDaServer, setDaServerName, setFail, setHeight, setOpenCommand, setSizeCommand, setStartupScript, setSupportedDimensions, setWidth, start, stop, write, writeMethods inherited from class gda.device.DeviceBase
addIObserver, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
EncoderCounter
public EncoderCounter()
-
-
Method Details
-
clear
public void clear(int start, int count) Description copied from interface:MemoryClear the specified number of frames/images/spectra starting with specified frame/image/spectrum number. -
clear
public void clear(int x, int y, int t, int dx, int dy, int dt) Description copied from interface:MemoryClear the specified block of memory. The parameters give the ability to clear a 3D block of memory.- Specified by:
clearin interfaceMemory- Overrides:
clearin classGdhist- Parameters:
x- is the start address for the offset in the x dimensiony- is the start address for the offset in the y dimensiont- is the start address for the offset in the z or t dimensiondx- is the address count in the x dimensiondy- is the address count in the y dimensiondt- is the address count in the z or t dimension
-
setDimension
Description copied from interface:MemorySet the size of the memory system.- Specified by:
setDimensionin interfaceMemory- Overrides:
setDimensionin classGdhist- Parameters:
d- is the- Throws:
DeviceException
-
getMemorySize
Description copied from interface:MemoryGet the physical memory size- Specified by:
getMemorySizein interfaceMemory- Overrides:
getMemorySizein classGdhist- Returns:
- the physical memory size expressed in words.
- Throws:
DeviceException
-
getSupportedDimensions
public int[] getSupportedDimensions()Description copied from interface:MemoryIf the detector supports multiple pixel settings, this will return an array of possible values. Null otherwise. Assumes the detector is 2D with identical axes.- Specified by:
getSupportedDimensionsin interfaceMemory- Overrides:
getSupportedDimensionsin classGdhist- Returns:
- a collection of supported Dimensions
-