Package com.pixelmed.scpecg
Class Section3
java.lang.Object
com.pixelmed.scpecg.Section
com.pixelmed.scpecg.Section3
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 -
Method Summary
Modifier and TypeMethodDescriptionlong[]
int
static String
getLeadName
(int leadNumber) String[]
static int
getLeadNumber
(String leadName) int[]
boolean
int
int
long[]
boolean
boolean
Get a string name for this section.long[]
getTree
(SCPTreeRecord parent) Get the contents of the section as a tree for display, constructing it if not already done.long
Read the remainder of the section from a stream.toString()
Dump the section as aString
.validate()
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 Details
-
Section3
-
-
Method Details
-
getSectionName
Get a string name for this section.
- Overrides:
getSectionName
in classSection
- Returns:
- a string name for this section
-
getLeadName
-
getLeadNumber
-
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
-
read
Description copied from class:Section
Read the remainder of the section from a stream.
- Overrides:
read
in classSection
- Parameters:
i
- the input stream- Returns:
- the number of bytes read
- Throws:
IOException
-
toString
Description copied from class:Section
Dump the section as a
String
. -
validate
Description copied from class:Section
Validate the section against the standard.
-
getTree
Get the contents of the section as a tree for display, constructing it if not already done.
-