public class PrairieMetadata.Sequence
extends java.lang.Object
<Sequence>.| Modifier and Type | Field and Description | 
|---|---|
| private java.lang.Integer | cyclecycleof this<Sequence>. | 
| private PrairieMetadata.Frame | firstFrameThe first actual  <Frame>element for this<Sequence>. | 
| private java.util.HashMap<java.lang.Integer,PrairieMetadata.Frame> | frames<Frame>elements beneath this<Sequence>, keyed on each
 frame'sindex. | 
| private int | indexMaxMaximum index value. | 
| private int | indexMinMinimum index value. | 
| private PrairieMetadata.ValueTable | sequenceValuesTable of key/value pairs for this  <Sequence>. | 
| private boolean | spectralModeSpectralModeof this<Sequence>. | 
| private java.lang.String | typetypeattribute of this<Sequence>. | 
| Constructor and Description | 
|---|
| Sequence(org.w3c.dom.Element sequenceElement)Creates a new sequence by parsing the given  <Sequence>element. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCycle()Gets the  cycleassociated with thisSequence. | 
| PrairieMetadata.PFile | getFile(int index,
       int channel)Gets the  Frameat the given (cycle,index,channel). | 
| PrairieMetadata.Frame | getFirstFrame()Gets the first  Frameof theSequence. | 
| PrairieMetadata.Frame | getFrame(int index)Gets the  Framewith the givenindex. | 
| int | getIndexCount()Gets the number of recorded indices at this  Sequence. | 
| int | getIndexMax()Gets the maximum index value. | 
| int | getIndexMin()Gets the minimum index value. | 
| java.lang.String | getType()Gets the  typeassociated with thisSequence. | 
| PrairieMetadata.Value | getValue(java.lang.String key)Gets the  valueof the givenkey, beneath thisSequence, inferring the value from the parent<PVScan>section as needed. | 
| PrairieMetadata.ValueTable | getValues()Gets the table of  Framekey/value pairs. | 
| boolean | isSpectralMode() | 
| boolean | isTimeSeries()Gets whether this  Sequenceshould be considered a time series. | 
| void | parse(org.w3c.dom.Element sequenceElement)Parses metadata from the given  Sequenceelement. | 
private final java.util.HashMap<java.lang.Integer,PrairieMetadata.Frame> frames
<Frame> elements beneath this <Sequence>, keyed on each
 frame's index.private final PrairieMetadata.ValueTable sequenceValues
<Sequence>.private PrairieMetadata.Frame firstFrame
<Frame> element for this <Sequence>.private int indexMin
private int indexMax
private java.lang.String type
type attribute of this <Sequence>.private java.lang.Integer cycle
cycle of this <Sequence>.private boolean spectralMode
SpectralMode of this <Sequence>.public Sequence(org.w3c.dom.Element sequenceElement)
<Sequence> element.public void parse(org.w3c.dom.Element sequenceElement)
Sequence element.public java.lang.String getType()
type associated with this Sequence.public boolean isTimeSeries()
Sequence should be considered a time series.public int getCycle()
cycle associated with this Sequence.public boolean isSpectralMode()
public int getIndexMin()
index
 attribute found, and hence will not necessarily equal 1 (though
 in practice it usually does).public int getIndexMax()
index attribute
 found, and hence will not necessarily equal frames#size() (though
 in practice it usually does).public int getIndexCount()
Sequence. This value
 is equal to getIndexMax() - getIndexMin() + 1.public PrairieMetadata.Frame getFirstFrame()
Frame of the Sequence.public PrairieMetadata.Frame getFrame(int index)
Frame with the given index.public PrairieMetadata.PFile getFile(int index, int channel)
Frame at the given (cycle, index,
 channel).public PrairieMetadata.Value getValue(java.lang.String key)
value of the given key, beneath this
 Sequence, inferring the value from the parent <PVScan>
 section as needed.public PrairieMetadata.ValueTable getValues()
Frame key/value pairs.Copyright © 2019 Open Microscopy Environment