public class Section3 extends Section
A class to encapsulate the SCP-ECG Lead Definition section.
bytesRead, header, sectionBytesRemaining, tree| Constructor and Description |
|---|
Section3(SectionHeader header) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
getEndingSampleNumbers() |
int |
getFlagByte() |
static String |
getLeadName(int leadNumber) |
String[] |
getLeadNames() |
static int |
getLeadNumber(String leadName) |
int[] |
getLeadNumbers() |
boolean |
getLeadsAllSimultaneouslyRecorded() |
int |
getNumberOfLeads() |
int |
getNumberOfSimultaneouslyRecordedLeads() |
long[] |
getNumbersOfSamples() |
boolean |
getReferenceBeatUsedForCompression() |
boolean |
getReservedBit1() |
String |
getSectionName()
Get a string name for this section.
|
long[] |
getStartingSampleNumbers() |
SCPTreeRecord |
getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
|
long |
read(BinaryInputStream i)
Read the remainder of the section from a stream.
|
String |
toString()
Dump the section as a
String. |
String |
validate()
Validate the section against the standard.
|
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyTherepublic Section3(SectionHeader header)
public String getSectionName()
Get a string name for this section.
getSectionName in class Sectionpublic static String getLeadName(int leadNumber)
public static int getLeadNumber(String leadName)
public int getNumberOfLeads()
public int getFlagByte()
public boolean getReferenceBeatUsedForCompression()
public boolean getReservedBit1()
public boolean getLeadsAllSimultaneouslyRecorded()
public int getNumberOfSimultaneouslyRecordedLeads()
public long[] getStartingSampleNumbers()
public long[] getEndingSampleNumbers()
public long[] getNumbersOfSamples()
public int[] getLeadNumbers()
public String[] getLeadNames()
public long read(BinaryInputStream i) throws IOException
SectionRead the remainder of the section from a stream.
read in class Sectioni - the input streamIOExceptionpublic String toString()
SectionDump the section as a String.
public String validate()
SectionValidate the section against the standard.
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.