public interface MarsRecord extends JsonConvertibleRecord
All MarsRecord
s have a basic set of properties including a UID,
notes, tags, parameters, MarsRegion
s, and MarsPosition
s.
MarsRecord
s can be serialized to and from Json.
This basic set of properties is extended for storage of molecule information
and metadata information in Molecule
, AbstractMolecule
,
MarsMetadata
, AbstractMarsMetadata
.
Modifier and Type | Method and Description |
---|---|
void |
addNote(java.lang.String note)
Add to any notes already in the record.
|
void |
addTag(java.lang.String tag)
Add a string tag to the record.
|
boolean |
getBooleanParameter(java.lang.String parameter)
Get the value of a string parameter.
|
java.lang.String |
getNotes()
Get notes for this record.
|
double |
getParameter(java.lang.String parameter)
Get the value of a parameter.
|
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getParameters()
Get the map for all parameters.
|
MarsPosition |
getPosition(java.lang.String name)
Get a
MarsPosition . |
java.util.Set<java.lang.String> |
getPositionNames()
Get the set of position names contained in this record.
|
java.util.LinkedHashMap<java.lang.String,MarsPosition> |
getPositions()
Get the map for all regions.
|
MarsRegion |
getRegion(java.lang.String name)
Get a
MarsRegion . |
java.util.Set<java.lang.String> |
getRegionNames()
Get the set of region names contained in this record.
|
java.util.LinkedHashMap<java.lang.String,MarsRegion> |
getRegions()
Get the map for all regions.
|
java.lang.String |
getStringParameter(java.lang.String parameter)
Get the value of a string parameter.
|
java.util.LinkedHashSet<java.lang.String> |
getTags()
Get the set of all tags.
|
java.lang.String[] |
getTagsArray()
Get an array list of all tags.
|
java.lang.String |
getUID()
Get the UID for this record.
|
boolean |
hasBooleanParameter(java.lang.String parameter)
Returns true if the boolean parameter exists.
|
boolean |
hasDoubleParameter(java.lang.String parameter)
Returns true if the double parameter exists.
|
boolean |
hasNoTags()
Check if the has no tags.
|
boolean |
hasParameter(java.lang.String parameter)
Returns true if any type of parameter has the name give.
|
boolean |
hasPosition(java.lang.String name)
Check if the record contains a
MarsPosition using the name. |
boolean |
hasRegion(java.lang.String name)
Check if the record contains a
MarsRegion using the name. |
boolean |
hasStringParameter(java.lang.String parameter)
Returns true if the string parameter exists.
|
boolean |
hasTag(java.lang.String tag)
Check if the record has a tag.
|
void |
merge(MarsRecord record)
Merge another MarsRecord into this one.
|
void |
putPosition(MarsPosition positionOfInterest)
Add or update a
MarsPosition . |
void |
putRegion(MarsRegion regionOfInterest)
Add or update a
MarsRegion . |
void |
removeAllParameters()
Remove all parameter values from the record.
|
void |
removeAllPositions()
Remove all
MarsPosition s from the record. |
void |
removeAllRegions()
Remove all
MarsRegion s from the record. |
void |
removeAllTags()
Remove all tags from the record.
|
void |
removeParameter(java.lang.String parameter)
Remove parameter.
|
void |
removePosition(java.lang.String name)
Remove a
MarsPosition from the record using the name. |
void |
removeRegion(java.lang.String name)
Remove a
MarsRegion from the record using the name. |
void |
removeTag(java.lang.String tag)
Remove a string tag from the record.
|
void |
setNotes(java.lang.String notes)
Sets the notes for this record.
|
void |
setParameter(java.lang.String parameter,
boolean value)
Add or update a parameter value.
|
void |
setParameter(java.lang.String parameter,
double value)
Add or update a parameter value.
|
void |
setParameter(java.lang.String parameter,
java.lang.String value)
Add or update a parameter value.
|
void |
setParent(MoleculeArchive<? extends Molecule,? extends MarsMetadata,? extends MoleculeArchiveProperties<?,?>,? extends MoleculeArchiveIndex<?,?>> archive)
Set the parent
MoleculeArchive that this record is stored in. |
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
java.lang.String getUID()
java.lang.String getNotes()
void setNotes(java.lang.String notes)
notes
- Any notes about this record.void addNote(java.lang.String note)
note
- String with the note to add to the record.void addTag(java.lang.String tag)
tag
- The string tag to be added.boolean hasTag(java.lang.String tag)
tag
- The string tag to check for.boolean hasNoTags()
java.util.LinkedHashSet<java.lang.String> getTags()
java.lang.String[] getTagsArray()
void removeTag(java.lang.String tag)
tag
- The string tag to remove.void removeAllTags()
void setParameter(java.lang.String parameter, double value)
parameter
- The string parameter name.value
- The double value to set for the parameter name.void setParameter(java.lang.String parameter, java.lang.String value)
parameter
- The string parameter name.value
- The string value to set for the parameter name.void setParameter(java.lang.String parameter, boolean value)
parameter
- The string parameter name.value
- The boolean value to set for the parameter name.void removeAllParameters()
void removeParameter(java.lang.String parameter)
parameter
- The parameter name to remove.double getParameter(java.lang.String parameter)
parameter
- The string parameter name to retrieve the value for.java.lang.String getStringParameter(java.lang.String parameter)
parameter
- The string parameter name to retrieve the value for.boolean getBooleanParameter(java.lang.String parameter)
parameter
- The string parameter name to retrieve the value for.boolean hasParameter(java.lang.String parameter)
parameter
- The parameter name to check for.boolean hasDoubleParameter(java.lang.String parameter)
parameter
- The double parameter name to check for.boolean hasStringParameter(java.lang.String parameter)
parameter
- The string parameter name to check for.boolean hasBooleanParameter(java.lang.String parameter)
parameter
- The boolean parameter name to check for.java.util.LinkedHashMap<java.lang.String,java.lang.Object> getParameters()
void putRegion(MarsRegion regionOfInterest)
MarsRegion
. This can be a region of interest for
further analysis steps: slope calculations or KCP calculations
KCPCommand
. Region names are unique. If a region that has this name
already exists in the record it will be overwritten by this method.regionOfInterest
- The region to add to the record.MarsRegion getRegion(java.lang.String name)
MarsRegion
. Region names are unique. Only one copy of each
region can be stored in the record.name
- The name of the region to retrieve.boolean hasRegion(java.lang.String name)
MarsRegion
using the name.name
- The name of the region to check for.void removeRegion(java.lang.String name)
MarsRegion
from the record using the name.name
- The name of the region to remove.void removeAllRegions()
MarsRegion
s from the record.java.util.Set<java.lang.String> getRegionNames()
java.util.LinkedHashMap<java.lang.String,MarsRegion> getRegions()
void putPosition(MarsPosition positionOfInterest)
MarsPosition
. This can be a position of interest
for further analysis steps. Position names are unique. If a position with
has this name already exists in the record it will be overwritten by this
method.positionOfInterest
- The position to add to the record.MarsPosition getPosition(java.lang.String name)
MarsPosition
. Position names are unique. Only one copy of
each region can be stored in the record.name
- The name of the position to retrieve.boolean hasPosition(java.lang.String name)
MarsPosition
using the name.name
- The name of the position to check for.void removePosition(java.lang.String name)
MarsPosition
from the record using the name.name
- The name of the position to remove.java.util.Set<java.lang.String> getPositionNames()
java.util.LinkedHashMap<java.lang.String,MarsPosition> getPositions()
void removeAllPositions()
MarsPosition
s from the record.void merge(MarsRecord record)
record
- The record to merge.void setParent(MoleculeArchive<? extends Molecule,? extends MarsMetadata,? extends MoleculeArchiveProperties<?,?>,? extends MoleculeArchiveIndex<?,?>> archive)
MoleculeArchive
that this record is stored in.archive
- The MoleculeArchive
holding this record.