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
MarsBdvSources. |
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, setParentdumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSONclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNote, 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, setParentdumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSONprotected 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()
AbstractJsonConvertibleRecordcreateIOMaps in class AbstractMarsRecordpublic MarsTable getDataTable()
public MarsBdvSource getBdvSource(java.lang.String name)
MarsMetadataMarsBdvSource with the name provided.getBdvSource in interface MarsMetadataname - Name of the MarsBdvSource to retrieve.public java.util.Collection<MarsBdvSource> getBdvSources()
MarsBdvSource format.getBdvSources in interface MarsMetadatapublic java.util.Set<java.lang.String> getBdvSourceNames()
getBdvSourceNames in interface MarsMetadatapublic java.lang.String getMicroscopeName()
getMicroscopeName in interface MarsMetadatapublic java.lang.String getCollectionDate()
getCollectionDate in interface MarsMetadatapublic java.lang.String getSourceDirectory()
getSourceDirectory in interface MarsMetadatapublic java.lang.String getLog()
getLog in interface MarsMetadatapublic void populateMetadata(ome.xml.meta.OMEXMLMetadata md)
populateMetadata in interface MarsMetadatapublic MarsOMEImage getImage(int imageIndex)
getImage in interface MarsMetadatapublic MarsOMEPlane getPlane(int imageIndex, int planeIndex)
getPlane in interface MarsMetadatapublic boolean hasPlane(int imageIndex,
int planeIndex)
hasPlane in interface MarsMetadatapublic MarsOMEPlane getPlane(int imageIndex, int Z, int C, int T)
getPlane in interface MarsMetadatapublic int getImageCount()
getImageCount in interface MarsMetadatapublic void setMicroscopeName(java.lang.String Microscope)
MarsMetadatasetMicroscopeName in interface MarsMetadataMicroscope - Name of the microscope used for collection.public void setSourceDirectory(java.lang.String path)
MarsMetadatasetSourceDirectory in interface MarsMetadatapath - The string file path.public void log(java.lang.String str)
MarsMetadataMoleculeArchive.log in interface MarsMetadatastr - Message to add to the log.public void logln(java.lang.String str)
MarsMetadataMoleculeArchive. Start a new line after adding the message.logln in interface MarsMetadatastr - Message to add to the log.public void putBdvSource(MarsBdvSource source)
MarsMetadataMarsBdvSource with the name provided. All
MarsBdvSource are unique so record will be overwritten if they have
the same name.putBdvSource in interface MarsMetadatasource - Mars BigDataViewer Source to add to the MarsImageMetadata
record.public void removeBdvSource(java.lang.String name)
MarsMetadataMarsBdvSource with the name provided.removeBdvSource in interface MarsMetadataname - Name of the MarsBdvSource to remove.public void removeAllBdvSources()
MarsBdvSources.removeAllBdvSources in interface MarsMetadatapublic boolean hasBdvSource(java.lang.String name)
MarsMetadatahasBdvSource in interface MarsMetadataname - Name of the MarsBdvSource to check for.public void setImage(MarsOMEImage image, int imageIndex)
setImage in interface MarsMetadatapublic java.util.stream.Stream<MarsOMEImage> images()
images in interface MarsMetadatapublic void merge(MarsMetadata metadata)
MarsMetadatamerge in interface MarsMetadatametadata - MarsMetadata to merge into this one.