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 java.lang.String getSectionName()
Get a string name for this section.
getSectionName
in class Section
public static java.lang.String getLeadName(int leadNumber)
public static int getLeadNumber(java.lang.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 java.lang.String[] getLeadNames()
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
.
public java.lang.String validate()
Section
Validate 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.