public class PrairieMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
PrairieMetadata.Frame
A Prairie
<Frame> , beneath a <Sequence> . |
class |
PrairieMetadata.PFile
A Prairie
<File> beneath a <Frame> . |
class |
PrairieMetadata.Sequence
A Prairie
<Sequence> . |
static interface |
PrairieMetadata.Value
A value in a Prairie metadata dictionary.
|
static class |
PrairieMetadata.ValueItem
A leaf value with an actual
PrairieMetadata.ValueItem.value() as well as an optional
PrairieMetadata.ValueItem.description() . |
static class |
PrairieMetadata.ValueTable
A table of values.
|
Constructor and Description |
---|
PrairieMetadata(org.w3c.dom.Document xml,
org.w3c.dom.Document cfg,
org.w3c.dom.Document env)
Creates a new Prairie metadata by parsing the given XML, CFG and/or ENV
documents.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getActiveChannels()
Gets the list of active channel indices, in sorted order.
|
java.lang.Integer |
getBitDepth()
Gets the
bitDepth recorded in the configuration. |
PrairieMetadata.ValueTable |
getConfig()
Gets the map of configuration key/value pairs.
|
PrairieMetadata.Value |
getConfig(java.lang.String key)
Gets the
value of the given configuration key . |
int |
getCycleCount()
Gets the number of recorded cycles.
|
int |
getCycleMax()
Gets the maximum cycle value.
|
int |
getCycleMin()
Gets the minimum cycle value.
|
java.lang.String |
getDate()
Gets the date of the acquisition.
|
PrairieMetadata.PFile |
getFile(int cycle,
int index,
int channel)
Gets the
Frame at the given (cycle , index ,
channel ). |
PrairieMetadata.Sequence |
getFirstSequence()
Gets the first
Sequence . |
PrairieMetadata.Frame |
getFrame(int cycle,
int index)
Gets the
Frame at the given (cycle and index ). |
java.lang.Double |
getLaserPower()
Gets the first
laserPower recorded in the configuration. |
PrairieMetadata.Sequence |
getSequence(int cycle)
Gets the
Sequence at the given cycle . |
java.util.ArrayList<PrairieMetadata.Sequence> |
getSequences()
Gets all
Sequences , ordered by cycle . |
PrairieMetadata.Value |
getValue(java.lang.String key)
Gets the
value of the given key , at the top-level
<PVScan> element. |
PrairieMetadata.ValueTable |
getValues()
Gets the table of
PVScan key/value pairs. |
java.lang.Double |
getWaitTime()
Gets the
waitTime recorded in the configuration. |
boolean |
isInvertX()
Gets whether the stage position X coordinates are inverted (i.e.,
left-to-right).
|
boolean |
isInvertY()
Gets whether the stage position Y coordinates are inverted (i.e.,
bottom-to-top).
|
public PrairieMetadata(org.w3c.dom.Document xml, org.w3c.dom.Document cfg, org.w3c.dom.Document env)
xml
- The XML document to parse, or null if none available.cfg
- The CFG document to parse, or null if none available.env
- The ENV document to parse, or null if none available.public java.lang.Double getWaitTime()
waitTime
recorded in the configuration.public int[] getActiveChannels()
These indices correspond to the configuration's channel
keys
flagged as True
.
public boolean isInvertX()
public boolean isInvertY()
public java.lang.Integer getBitDepth()
bitDepth
recorded in the configuration.public java.lang.Double getLaserPower()
laserPower
recorded in the configuration.public PrairieMetadata.Value getConfig(java.lang.String key)
value
of the given configuration key
.public PrairieMetadata.ValueTable getConfig()
public java.lang.String getDate()
public int getCycleMin()
cycle
attribute
found, and hence will not necessarily equal 1
(though in practice
it usually does).public int getCycleMax()
cycle
attribute
found, and hence will not necessarily equal sequences#size()
(though in practice it usually does).public int getCycleCount()
getCycleMax()
- getCycleMin()
+ 1.public PrairieMetadata.Sequence getFirstSequence()
Sequence
.public PrairieMetadata.Sequence getSequence(int cycle)
Sequence
at the given cycle
.public java.util.ArrayList<PrairieMetadata.Sequence> getSequences()
Sequences
, ordered by cycle
.public PrairieMetadata.Frame getFrame(int cycle, int index)
Frame
at the given (cycle
and index
).public PrairieMetadata.PFile getFile(int cycle, int index, int channel)
Frame
at the given (cycle
, index
,
channel
).public PrairieMetadata.Value getValue(java.lang.String key)
value
of the given key
, at the top-level
<PVScan>
element.public PrairieMetadata.ValueTable getValues()
PVScan
key/value pairs.Copyright © 2014 Open Microscopy Environment