public class ImageClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImageClient.Impl
Inner interface to support choosing the hardware.
|
static interface |
ImageClient.Listener
Defines the data listener.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HDW_TYPE_DAQ
Deprecated.
|
static int |
HDW_TYPE_DAQ0
Deprecated.
|
static int |
HDW_TYPE_DAQ1
Deprecated.
|
static int |
HDW_TYPE_DAQ2
Deprecated.
|
static int |
HDW_TYPE_DAQ4
Deprecated.
|
static int |
HDW_TYPE_PCI
Deprecated.
|
static int |
HDW_TYPE_PCI0
Deprecated.
|
static int |
HDW_TYPE_PCI1
Deprecated.
|
| Constructor and Description |
|---|
ImageClient(RegClient reg)
Constructor.
|
ImageClient(RegClient reg,
String rebid)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Image |
awaitImage(Image image)
Awaits an image.
|
void |
clearListener()
Clears the data listener.
|
void |
close()
Closes a connection.
|
void |
deleteImageMetadataRef(Image image)
Deletes an image's metadata reference.
|
protected void |
finalize()
Finalizer.
|
void |
interrupt()
Interrupts an image wait.
|
void |
open(int id)
Deprecated.
|
void |
open(int hdw,
int id,
String ifc)
Opens a connection.
|
void |
open(int id,
String part)
Opens a DAQ1/2/4 connection.
|
boolean |
readImage(Image image)
Reads an image.
|
void |
resetFrontEnd()
Resets the front end system.
|
void |
setClientFactory(ClientFactory clientFactory)
Sets an alternative client factory.
|
void |
setListener(ImageClient.Listener listener,
Image image)
Sets the data listener.
|
void |
setRebId(String rebid)
Sets the REB ID.
|
@Deprecated public static final int HDW_TYPE_DAQ
@Deprecated public static final int HDW_TYPE_DAQ0
@Deprecated public static final int HDW_TYPE_DAQ1
@Deprecated public static final int HDW_TYPE_DAQ2
@Deprecated public static final int HDW_TYPE_DAQ4
@Deprecated public static final int HDW_TYPE_PCI
@Deprecated public static final int HDW_TYPE_PCI0
@Deprecated public static final int HDW_TYPE_PCI1
public ImageClient(RegClient reg)
reg - The associated register clientprotected void finalize()
throws Throwable
public void setClientFactory(ClientFactory clientFactory)
clientFactory - The ClientFactory to usepublic void setRebId(String rebid)
rebid - The REB ID (for logging)@Deprecated public void open(int id) throws REBException
id - The ID of the REB to connect toREBExceptionpublic void open(int id,
String part)
throws REBException
id - The ID of the REB to connect topart - The name of the partition to use.REBExceptionpublic void open(int hdw,
int id,
String ifc)
throws REBException
hdw - The hardware typeid - The ID of the REB to connect toifc - The name of the partition or interface to use. If null or
empty, the default is used if available.REBExceptionpublic void close()
throws REBException
REBExceptionpublic Image awaitImage(Image image) throws REBException
image - An Image object in which to save the reference and metadata for
the new image, or null if a new image object is to be created.REBExceptionpublic boolean readImage(Image image) throws REBException
image - The Image object containing the valid metadata for an
image. If the contained pixel data byte array is not
null and is large enough, the pixel data us stored
there. Otherwise a new array is created.REBExceptionpublic void deleteImageMetadataRef(Image image)
image - The image whose metadata reference is to be deleted.public void interrupt()
throws REBException
REBExceptionpublic void resetFrontEnd()
throws REBException
REBExceptionpublic void setListener(ImageClient.Listener listener, Image image)
listener - The listener object to be set as the listener. Any
existing listener is replaced.image - An image object to be used to contain received
images, or null if a new object is to be created
each time.REBExceptionpublic void clearListener()
REBExceptionCopyright © 2021 LSST. All rights reserved.