public class Live_From_Mars
extends java.lang.Object
implements edu.asu.jmars.layer.util.features.FeatureProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
SERVICE_DESCRIPTION |
Constructor and Description |
---|
Live_From_Mars() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets a description of this feature provider.
|
java.io.File[] |
getExistingSaveToFiles(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection,
java.lang.String baseName)
Gets the names of the files output by a save with the given base name and
feature collection.
|
java.lang.String |
getExtension()
Gets the file extension.
|
boolean |
isFileBased()
Tests whether this provider pulls data from a file.
|
boolean |
isRepresentable(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection)
Tests whether the given can be completely represented in the source format
of this provider.
|
edu.asu.jmars.layer.util.features.FeatureCollection |
load(java.lang.String filename)
Gets a new feature collection containing data from the provider's database.
|
int |
save(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection,
java.lang.String filename)
Writes the specified features to source the feature provider was constructed
from.
|
public static final java.lang.String ID
public static final java.lang.String SERVICE_DESCRIPTION
public java.lang.String getDescription()
getDescription
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public java.io.File[] getExistingSaveToFiles(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection, java.lang.String baseName)
getExistingSaveToFiles
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the feature collection in question.baseName
- the base name in question.public java.lang.String getExtension()
getExtension
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public boolean isFileBased()
isFileBased
in interface edu.asu.jmars.layer.util.features.FeatureProvider
public boolean isRepresentable(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection)
isRepresentable
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the collection to be tested.public edu.asu.jmars.layer.util.features.FeatureCollection load(java.lang.String filename)
load
in interface edu.asu.jmars.layer.util.features.FeatureProvider
filename
- unused, but required by the interface.public int save(edu.asu.jmars.layer.util.features.FeatureCollection featureCollection, java.lang.String filename)
UnsupportedOperationException
is thrown if this method is called.save
in interface edu.asu.jmars.layer.util.features.FeatureProvider
featureCollection
- the collection of features in question.filename
- a filename.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona