public class OLDMarsMetadata extends AbstractMarsRecord implements MarsMetadata
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.lang.String,MarsBdvSource> |
bdvSources |
protected java.lang.String |
CollectionDate |
protected MarsTable |
dataTable |
protected java.lang.String |
log |
protected java.lang.String |
Microscope |
protected java.lang.String |
SourceDirectory |
parent
Constructor and Description |
---|
OLDMarsMetadata(com.fasterxml.jackson.core.JsonParser jParser)
Constructor for loading a MarsMetadata record from a file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createIOMaps()
Must be implemented in subclasses to define how fields, objects, arrays
should be saved based on the Jackson streaming API.
|
MarsBdvSource |
getBdvSource(java.lang.String name)
Get the
MarsBdvSource with the name provided. |
java.util.Set<java.lang.String> |
getBdvSourceNames()
Get the set of BigDataViewer source names.
|
java.util.Collection<MarsBdvSource> |
getBdvSources()
Get the Collection of BigDataViewer sources with each in
MarsBdvSource format. |
java.lang.String |
getCollectionDate()
Get the Date when these data were collected.
|
MarsTable |
getDataTable() |
MarsOMEImage |
getImage(int imageIndex) |
int |
getImageCount() |
java.lang.String |
getLog()
Get the log that contains the history of processing steps conducted on this
dataset and the associated molecule records contained in the same.
|
java.lang.String |
getMicroscopeName()
Get the name of the microscope used for data collection.
|
MarsOMEPlane |
getPlane(int imageIndex,
int planeIndex) |
MarsOMEPlane |
getPlane(int imageIndex,
int Z,
int C,
int T) |
java.lang.String |
getSourceDirectory()
Get the Source Directory where the images are stored.
|
boolean |
hasBdvSource(java.lang.String name)
Check if this record contains the BigDataViewer with the name provided.
|
boolean |
hasPlane(int imageIndex,
int planeIndex) |
java.util.stream.Stream<MarsOMEImage> |
images() |
void |
log(java.lang.String str)
Add to the log that contains the history of processing steps conducted on
this dataset and the associated molecule records contained in the same
MoleculeArchive . |
void |
logln(java.lang.String str)
Add to the log that contains the history of processing steps conducted on
this dataset and the associated molecule records contained in the same
MoleculeArchive . |
void |
merge(MarsMetadata metadata)
Used to merge another MarsMetadata record into this one.
|
void |
populateMetadata(ome.xml.meta.OMEXMLMetadata md) |
void |
putBdvSource(MarsBdvSource source)
Add or update the
MarsBdvSource with the name provided. |
void |
removeAllBdvSources()
Remove all
MarsBdvSource s. |
void |
removeBdvSource(java.lang.String name)
Remove the
MarsBdvSource with the name provided. |
void |
setImage(MarsOMEImage image,
int imageIndex) |
void |
setMicroscopeName(java.lang.String Microscope)
Set the name of the microscope used for data collection.
|
void |
setSourceDirectory(java.lang.String path)
Set the Source Directory where the images are stored.
|
addNote, addTag, getBooleanParameter, getNotes, getParameter, getParameters, getPosition, getPositionNames, getPositions, getRegion, getRegionNames, getRegions, getStringParameter, getTags, getTagsArray, getUID, hasBooleanParameter, hasDoubleParameter, hasNoTags, hasParameter, hasPosition, hasRegion, hasStringParameter, hasTag, merge, putPosition, putRegion, removeAllParameters, removeAllPositions, removeAllRegions, removeAllTags, removeParameter, removePosition, removeRegion, removeTag, setNotes, setParameter, setParameter, setParameter, setParent
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNote, addTag, getBooleanParameter, getNotes, getParameter, getParameters, getPosition, getPositionNames, getPositions, getRegion, getRegionNames, getRegions, getStringParameter, getTags, getTagsArray, getUID, hasBooleanParameter, hasDoubleParameter, hasNoTags, hasParameter, hasPosition, hasRegion, hasStringParameter, hasTag, merge, putPosition, putRegion, removeAllParameters, removeAllPositions, removeAllRegions, removeAllTags, removeParameter, removePosition, removeRegion, removeTag, setNotes, setParameter, setParameter, setParameter, setParent
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
protected java.lang.String log
protected java.lang.String Microscope
protected java.lang.String SourceDirectory
protected java.lang.String CollectionDate
protected final MarsTable dataTable
protected final java.util.LinkedHashMap<java.lang.String,MarsBdvSource> bdvSources
public OLDMarsMetadata(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
jParser
- A JsonParser at the start of the record.java.io.IOException
- Thrown if unable to parse Json from JsonParser stream.protected void createIOMaps()
AbstractJsonConvertibleRecord
createIOMaps
in class AbstractMarsRecord
public MarsTable getDataTable()
public MarsBdvSource getBdvSource(java.lang.String name)
MarsMetadata
MarsBdvSource
with the name provided.getBdvSource
in interface MarsMetadata
name
- Name of the MarsBdvSource to retrieve.public java.util.Collection<MarsBdvSource> getBdvSources()
MarsBdvSource
format.getBdvSources
in interface MarsMetadata
public java.util.Set<java.lang.String> getBdvSourceNames()
getBdvSourceNames
in interface MarsMetadata
public java.lang.String getMicroscopeName()
getMicroscopeName
in interface MarsMetadata
public java.lang.String getCollectionDate()
getCollectionDate
in interface MarsMetadata
public java.lang.String getSourceDirectory()
getSourceDirectory
in interface MarsMetadata
public java.lang.String getLog()
getLog
in interface MarsMetadata
public void populateMetadata(ome.xml.meta.OMEXMLMetadata md)
populateMetadata
in interface MarsMetadata
public MarsOMEImage getImage(int imageIndex)
getImage
in interface MarsMetadata
public MarsOMEPlane getPlane(int imageIndex, int planeIndex)
getPlane
in interface MarsMetadata
public boolean hasPlane(int imageIndex, int planeIndex)
hasPlane
in interface MarsMetadata
public MarsOMEPlane getPlane(int imageIndex, int Z, int C, int T)
getPlane
in interface MarsMetadata
public int getImageCount()
getImageCount
in interface MarsMetadata
public void setMicroscopeName(java.lang.String Microscope)
MarsMetadata
setMicroscopeName
in interface MarsMetadata
Microscope
- Name of the microscope used for collection.public void setSourceDirectory(java.lang.String path)
MarsMetadata
setSourceDirectory
in interface MarsMetadata
path
- The string file path.public void log(java.lang.String str)
MarsMetadata
MoleculeArchive
.log
in interface MarsMetadata
str
- Message to add to the log.public void logln(java.lang.String str)
MarsMetadata
MoleculeArchive
. Start a new line after adding the message.logln
in interface MarsMetadata
str
- Message to add to the log.public void putBdvSource(MarsBdvSource source)
MarsMetadata
MarsBdvSource
with the name provided. All
MarsBdvSource
are unique so record will be overwritten if they have
the same name.putBdvSource
in interface MarsMetadata
source
- Mars BigDataViewer Source to add to the MarsImageMetadata
record.public void removeBdvSource(java.lang.String name)
MarsMetadata
MarsBdvSource
with the name provided.removeBdvSource
in interface MarsMetadata
name
- Name of the MarsBdvSource to remove.public void removeAllBdvSources()
MarsBdvSource
s.removeAllBdvSources
in interface MarsMetadata
public boolean hasBdvSource(java.lang.String name)
MarsMetadata
hasBdvSource
in interface MarsMetadata
name
- Name of the MarsBdvSource to check for.public void setImage(MarsOMEImage image, int imageIndex)
setImage
in interface MarsMetadata
public java.util.stream.Stream<MarsOMEImage> images()
images
in interface MarsMetadata
public void merge(MarsMetadata metadata)
MarsMetadata
merge
in interface MarsMetadata
metadata
- MarsMetadata to merge into this one.