public final class SvtChannel extends AbstractSvtChannel
Modifier and Type | Class and Description |
---|---|
static class |
SvtChannel.SvtChannelCollection
Collection implementation for
SvtChannel . |
AbstractSvtChannel.AbstractSvtChannelCollection<T extends AbstractSvtChannel>
Modifier and Type | Field and Description |
---|---|
private static int |
MAX_CHANNEL
Maximum channel number.
|
private static int |
MAX_FEB_HYBRID_ID
Maximum FEB Hybrid ID.
|
private static int |
MAX_FEB_ID
Maximum FEB ID.
|
private static int |
MIN_CHANNEL
Minimum channel number.
|
private static int |
MIN_FEB_HYBRID_ID
Minimum FEB hybrid ID.
|
private static int |
MIN_FEB_ID
Minimum FEB ID.
|
MAX_NUMBER_OF_SAMPLES
Constructor and Description |
---|
SvtChannel()
Default constructor.
|
SvtChannel(int channelID,
int febID,
int febHybridID,
int channel)
Fully qualified constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Implementation of equals.
|
Integer |
getFebHybridID()
Get the FEB hybrid ID associated with this SVT channel ID.
|
Integer |
getFebID()
Get the FEB ID associated with this SVT channel ID.
|
boolean |
isValidFeb(int febID)
Checks if a FEB ID is valid.
|
boolean |
isValidFebHybridID(int febHybridID)
Checks if a Front End Board hybrid ID is valid.
|
boolean |
isValidPhysicalChannel(int channel)
Checks if a physical channel number is valid.
|
void |
setFebHybridID(int febHybridID)
Set the FEB hybrid ID associated with this SVT channel ID.
|
void |
setFebID(int febID)
Set the FEB ID associated with this SVT channel ID.
|
getChannel, getChannelID, setChannel, setChannelID
defaultToString, delete, getCollectionId, getFieldValue, getFieldValue, getFieldValues, getRowId, getTableMetaData, hasValidCollectionId, insert, isNew, select, setConnection, setFieldValue, setFieldValues, setTableMetaData, toString, update
private static final int MAX_CHANNEL
private static final int MAX_FEB_HYBRID_ID
private static final int MAX_FEB_ID
private static final int MIN_CHANNEL
private static final int MIN_FEB_HYBRID_ID
private static final int MIN_FEB_ID
public SvtChannel()
public SvtChannel(int channelID, int febID, int febHybridID, int channel)
channelID
- the SVT channel IDfebID
- the Front End Board (FEB) ID (0-9)febHybridID
- the hybrid ID (0-3)channel
- the channel number (0-639)public boolean equals(Object o)
equals
in class BaseConditionsObject
true
if the object equals this onepublic Integer getFebHybridID()
public Integer getFebID()
public boolean isValidFeb(int febID)
febID
- the Front End Board (FEB) IDtrue
if the FEB ID lies within the range 0-9public boolean isValidFebHybridID(int febHybridID)
febHybridID
- the hybrid IDtrue
if the hybrid ID lies within the range 0-3public boolean isValidPhysicalChannel(int channel)
channel
- the physical channel numbertrue
if the channel number lies within the range 0-639public void setFebHybridID(int febHybridID)
febHybridID
- : The FEB hybrid IDpublic void setFebID(int febID)
febID
- the FEB IDCopyright © 2019. All rights reserved.