public class PrairieMetadata extends 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>. |
| Constructor and Description |
|---|
PrairieMetadata(Document xml,
Document cfg)
Creates a new Prairie metadata by parsing the given XML and CFG documents.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getActiveChannels()
Gets the list of active channel indices, in sorted order.
|
Integer |
getBitDepth()
Gets the
bitDepth recorded in the configuration. |
Map<String,String> |
getConfig()
Gets a read-only map of configuration key/value pairs.
|
String |
getConfig(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.
|
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). |
Double |
getLaserPower()
Gets the
laserPower_0 recorded in the configuration. |
PrairieMetadata.Sequence |
getSequence(int cycle)
Gets the
Sequence at the given cycle. |
ArrayList<PrairieMetadata.Sequence> |
getSequences()
Gets all
Sequences, ordered by cycle. |
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 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 Integer getBitDepth()
bitDepth recorded in the configuration.public Double getLaserPower()
laserPower_0 recorded in the configuration.public Map<String,String> getConfig()
public 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 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).Copyright © 2014 Open Microscopy Environment