public class Source extends Object implements Comparable<Source>
Image.listSources()| Modifier and Type | Class and Description |
|---|---|
static class |
Source.ChannelMode |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Source o) |
Image |
getImage() |
org.lsst.ccs.utilities.location.Location |
getLocation()
Get the location within the focal plane of this source
|
SourceMetaData |
getMetaData()
Get meta-data associated with this source
|
org.lsst.ccs.utilities.location.Location.LocationType |
getSourceType()
The type of REB this source corresponds to.
|
ByteChannel |
openChannel(Source.ChannelMode mode)
Open a channel for reading or writing data to this source.
|
ByteChannel |
openChannel(Store store,
Source.ChannelMode mode)
Open a channel for reading or writing data to this source.
|
long |
size()
The total size of the raw data associated with this source.This may be zero
of the source has been newly created and not yet written, or if the source
is in the process of being streamed to the DAQ store.
|
String |
toString() |
public SourceMetaData getMetaData() throws DAQException
DAQExceptionpublic org.lsst.ccs.utilities.location.Location getLocation()
public long size()
throws DAQException
0 if the image is not completely written.DAQExceptionpublic org.lsst.ccs.utilities.location.Location.LocationType getSourceType()
throws DAQException
DAQExceptionpublic Image getImage()
public ByteChannel openChannel(Source.ChannelMode mode) throws DAQException
mode - The mode to open the channel.DAQException - If the mode is invalid for the current state of this source,
or some other error occurs.public ByteChannel openChannel(Store store, Source.ChannelMode mode) throws DAQException
store - The store to be used for read/write operations. For multi-threaded reading-writing there must be one store per channelmode - The mode to open the channel.DAQException - If the mode is invalid for the current state of this source,
or some other error occurs.public int compareTo(Source o)
compareTo in interface Comparable<Source>Copyright © 2021 LSST. All rights reserved.