Package com.pixelmed.scpecg
Class Section3
- java.lang.Object
-
- com.pixelmed.scpecg.Section
-
- com.pixelmed.scpecg.Section3
-
public class Section3 extends Section
A class to encapsulate the SCP-ECG Lead Definition section.
-
-
Field Summary
-
Fields inherited from class com.pixelmed.scpecg.Section
bytesRead, header, sectionBytesRemaining, tree
-
-
Constructor Summary
Constructors Constructor Description Section3(SectionHeader header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]getEndingSampleNumbers()intgetFlagByte()static java.lang.StringgetLeadName(int leadNumber)java.lang.String[]getLeadNames()static intgetLeadNumber(java.lang.String leadName)int[]getLeadNumbers()booleangetLeadsAllSimultaneouslyRecorded()intgetNumberOfLeads()intgetNumberOfSimultaneouslyRecordedLeads()long[]getNumbersOfSamples()booleangetReferenceBeatUsedForCompression()booleangetReservedBit1()java.lang.StringgetSectionName()Get a string name for this section.long[]getStartingSampleNumbers()SCPTreeRecordgetTree(SCPTreeRecord parent)Get the contents of the section as a tree for display, constructing it if not already done.longread(BinaryInputStream i)Read the remainder of the section from a stream.java.lang.StringtoString()Dump the section as aString.java.lang.Stringvalidate()Validate the section against the standard.-
Methods inherited from class com.pixelmed.scpecg.Section
addNodeOfDecimalAndHex, addNodeOfDecimalWithMissingValues, addSectionHeaderToTree, describeMissingValues, getSectionHeader, getTree, getValueForSectionNodeInTree, makeSection, makeStringFromByteArrayRemovingAnyNulls, skipToEndOfSectionIfNotAlreadyThere
-
-
-
-
Constructor Detail
-
Section3
public Section3(SectionHeader header)
-
-
Method Detail
-
getSectionName
public java.lang.String getSectionName()
Get a string name for this section.
- Overrides:
getSectionNamein classSection- Returns:
- a string name for this section
-
getLeadName
public static java.lang.String getLeadName(int leadNumber)
-
getLeadNumber
public static int getLeadNumber(java.lang.String leadName)
-
getNumberOfLeads
public int getNumberOfLeads()
-
getFlagByte
public int getFlagByte()
-
getReferenceBeatUsedForCompression
public boolean getReferenceBeatUsedForCompression()
-
getReservedBit1
public boolean getReservedBit1()
-
getLeadsAllSimultaneouslyRecorded
public boolean getLeadsAllSimultaneouslyRecorded()
-
getNumberOfSimultaneouslyRecordedLeads
public int getNumberOfSimultaneouslyRecordedLeads()
-
getStartingSampleNumbers
public long[] getStartingSampleNumbers()
-
getEndingSampleNumbers
public long[] getEndingSampleNumbers()
-
getNumbersOfSamples
public long[] getNumbersOfSamples()
-
getLeadNumbers
public int[] getLeadNumbers()
-
getLeadNames
public java.lang.String[] getLeadNames()
-
read
public long read(BinaryInputStream i) throws java.io.IOException
Description copied from class:SectionRead the remainder of the section from a stream.
-
toString
public java.lang.String toString()
Description copied from class:SectionDump the section as a
String.
-
validate
public java.lang.String validate()
Description copied from class:SectionValidate the section against the standard.
-
getTree
public SCPTreeRecord getTree(SCPTreeRecord parent)
Get the contents of the section as a tree for display, constructing it if not already done.
-
-