T
- A type extending AbstractSvtChannelpublic abstract static class AbstractSvtChannel.AbstractSvtChannelCollection<T extends AbstractSvtChannel> extends BaseConditionsObjectCollection<T>
AbstractSvtChannel
.Modifier and Type | Field and Description |
---|---|
private Map<Integer,T> |
channelMap
Map of channel number to object.
|
Constructor and Description |
---|
AbstractSvtChannelCollection() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T channel)
Add a channel of type extending
AbstractSvtChannel to the channel map. |
abstract Collection<T> |
find(Pair<Integer,Integer> pair)
Find the collection of channels of type extending
AbstractSvtChannel that match a DAQ pair (FEB ID
and FEB Hybrid ID). |
T |
findChannel(int channelID)
Find a channel of type extending
AbstractSvtChannel using the channel ID. |
String |
toString()
Convert this object to a human readable string.
|
addAll, clear, contains, delete, get, getCollectionId, getObjects, getTableMetaData, insert, isNew, iterator, loadCsv, select, setCollectionId, setConnection, setTableMetaData, size, sort, sorted, update, writeCsv
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
private final Map<Integer,T extends AbstractSvtChannel> channelMap
public final boolean add(T channel) throws ConditionsObjectException
AbstractSvtChannel
to the channel map.add
in interface ConditionsObjectCollection<T extends AbstractSvtChannel>
add
in class BaseConditionsObjectCollection<T extends AbstractSvtChannel>
channel
- channel of a type extending AbstractSvtChannel
true
if object was added successfullyConditionsObjectException
- if there was an error adding the objectpublic abstract Collection<T> find(Pair<Integer,Integer> pair)
AbstractSvtChannel
that match a DAQ pair (FEB ID
and FEB Hybrid ID).pair
- the DAQ pairpublic final T findChannel(int channelID)
AbstractSvtChannel
using the channel ID.channelID
- the channel IDAbstractSvtChannel
public final String toString()
toString
in class BaseConditionsObjectCollection<T extends AbstractSvtChannel>
Copyright © 2019. All rights reserved.