Package loci.formats.in
Class PrairieMetadata.Sequence
java.lang.Object
loci.formats.in.PrairieMetadata.Sequence
- Enclosing class:
PrairieMetadata
A Prairie
<Sequence>.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integercycleof this<Sequence>.private PrairieMetadata.FrameThe first actual<Frame>element for this<Sequence>.private final HashMap<Integer, PrairieMetadata.Frame> <Frame>elements beneath this<Sequence>, keyed on each frame'sindex.private intMaximum index value.private intMinimum index value.private final PrairieMetadata.ValueTableTable of key/value pairs for this<Sequence>.private booleanSpectralModeof this<Sequence>.private Stringtypeattribute of this<Sequence>. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCycle()Gets thecycleassociated with thisSequence.getFile(int index, int channel) Gets theFrameat the given (cycle,index,channel).Gets the firstFrameof theSequence.getFrame(int index) Gets theFramewith the givenindex.intGets the number of recorded indices at thisSequence.intGets the maximum index value.intGets the minimum index value.getType()Gets thetypeassociated with thisSequence.Gets thevalueof the givenkey, beneath thisSequence, inferring the value from the parent<PVScan>section as needed.Gets the table ofFramekey/value pairs.booleanbooleanGets whether thisSequenceshould be considered a time series.voidParses metadata from the givenSequenceelement.
-
Field Details
-
frames
<Frame>elements beneath this<Sequence>, keyed on each frame'sindex. -
sequenceValues
Table of key/value pairs for this<Sequence>. -
firstFrame
The first actual<Frame>element for this<Sequence>. -
indexMin
private int indexMinMinimum index value. -
indexMax
private int indexMaxMaximum index value. -
type
typeattribute of this<Sequence>. -
cycle
cycleof this<Sequence>. -
spectralMode
private boolean spectralModeSpectralModeof this<Sequence>.
-
-
Constructor Details
-
Sequence
Creates a new sequence by parsing the given<Sequence>element.
-
-
Method Details
-
parse
Parses metadata from the givenSequenceelement. -
getType
Gets thetypeassociated with thisSequence. -
isTimeSeries
public boolean isTimeSeries()Gets whether thisSequenceshould be considered a time series. -
getCycle
public int getCycle()Gets thecycleassociated with thisSequence. -
isSpectralMode
public boolean isSpectralMode() -
getIndexMin
public int getIndexMin()Gets the minimum index value. Matches the smallestindexattribute found, and hence will not necessarily equal1(though in practice it usually does). -
getIndexMax
public int getIndexMax()Gets the maximum index value. Matches the largestindexattribute found, and hence will not necessarily equalframes#size()(though in practice it usually does). -
getIndexCount
public int getIndexCount()Gets the number of recorded indices at thisSequence. This value is equal togetIndexMax()-getIndexMin()+ 1. -
getFirstFrame
Gets the firstFrameof theSequence. -
getFrame
Gets theFramewith the givenindex. -
getFile
Gets theFrameat the given (cycle,index,channel). -
getValue
Gets thevalueof the givenkey, beneath thisSequence, inferring the value from the parent<PVScan>section as needed. -
getValues
Gets the table ofFramekey/value pairs.
-