public abstract class SourceECG
extends java.lang.Object
An abstract class that encapsulates the features and values from an ECG source, usually for the purpose of displaying it.
Modifier and Type | Field and Description |
---|---|
protected float[] |
amplitudeScalingFactorInMilliVolts |
protected java.lang.String[] |
channelNames |
protected int[] |
displaySequence |
protected int |
nSamplesPerChannel |
protected int |
numberOfChannels |
protected short[][] |
samples |
protected float |
samplingIntervalInMilliSeconds |
protected java.lang.String |
title |
Constructor and Description |
---|
SourceECG() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
buildInstanceTitle() |
protected void |
buildPreferredDisplaySequence()
Use the default encoded order.
|
protected void |
buildPreferredDisplaySequence(java.lang.String[] labels)
Using the lead descriptions, look for patterns and determine the desired sequential display order,
defaulting to the encoded order if no recognized pattern.
|
protected static int |
findLead(java.lang.String[] leadNames,
java.lang.String leadName)
Find the named lead in an array of lead names.
|
float[] |
getAmplitudeScalingFactorInMilliVolts() |
java.lang.String[] |
getChannelNames() |
int[] |
getDisplaySequence() |
int |
getNumberOfChannels() |
int |
getNumberOfSamplesPerChannel() |
short[][] |
getSamples() |
float |
getSamplingIntervalInMilliSeconds() |
java.lang.String |
getTitle() |
protected float[] amplitudeScalingFactorInMilliVolts
protected java.lang.String[] channelNames
protected int[] displaySequence
protected int nSamplesPerChannel
protected int numberOfChannels
protected short[][] samples
protected float samplingIntervalInMilliSeconds
protected java.lang.String title
protected static java.lang.String buildInstanceTitle()
protected void buildPreferredDisplaySequence()
Use the default encoded order.
protected void buildPreferredDisplaySequence(java.lang.String[] labels)
Using the lead descriptions, look for patterns and determine the desired sequential display order, defaulting to the encoded order if no recognized pattern.
labels
- the labels to use to match the preferred order (may or may not be this.channelNames
)protected static int findLead(java.lang.String[] leadNames, java.lang.String leadName)
Find the named lead in an array of lead names.
leadNames
- an array of String names to designate leads (may be null, or contain null strings, in which case won't be found)leadName
- the string name of the lead wanted (may be null, in which case won't be found)public float[] getAmplitudeScalingFactorInMilliVolts()
public java.lang.String[] getChannelNames()
public int[] getDisplaySequence()
public int getNumberOfChannels()
public int getNumberOfSamplesPerChannel()
public short[][] getSamples()
public float getSamplingIntervalInMilliSeconds()
public java.lang.String getTitle()