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 java.lang.String |
getLeadName(int leadNumber) |
java.lang.String[] |
getLeadNames() |
static int |
getLeadNumber(java.lang.String leadName) |
int[] |
getLeadNumbers() |
boolean |
getLeadsAllSimultaneouslyRecorded() |
int |
getNumberOfLeads() |
int |
getNumberOfSimultaneouslyRecordedLeads() |
long[] |
getNumbersOfSamples() |
boolean |
getReferenceBeatUsedForCompression() |
boolean |
getReservedBit1() |
java.lang.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.
|
java.lang.String |
toString()
Dump the section as a
String . |
java.lang.String |
validate()
Validate the section against the standard.
|
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere
public Section3(SectionHeader header)
public long[] getEndingSampleNumbers()
public int getFlagByte()
public static java.lang.String getLeadName(int leadNumber)
public java.lang.String[] getLeadNames()
public static int getLeadNumber(java.lang.String leadName)
public int[] getLeadNumbers()
public boolean getLeadsAllSimultaneouslyRecorded()
public int getNumberOfLeads()
public int getNumberOfSimultaneouslyRecordedLeads()
public long[] getNumbersOfSamples()
public boolean getReferenceBeatUsedForCompression()
public boolean getReservedBit1()
public java.lang.String getSectionName()
Get a string name for this section.
getSectionName
in class Section
public long[] getStartingSampleNumbers()
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
public long read(BinaryInputStream i) throws java.io.IOException
Section
Read the remainder of the section from a stream.
public java.lang.String toString()
Section
Dump the section as a String
.