|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FeatureManager.FeatureManager
public abstract class FeatureManager
Abstract class representing a generic Feature Manager.
Field Summary | |
---|---|
protected long |
time
The time (in milliseconds) spent for retrieving features from the DB |
Constructor Summary | |
---|---|
FeatureManager()
Basic constructor. |
Method Summary | |
---|---|
abstract void |
closeConnection()
Closes the connection to the features DB. |
abstract void |
closeScan()
Closes a sequential scan over image features. |
boolean |
contains(ImageID id)
Checks whether an image ID is contained in the database. |
abstract void |
createConnection()
Connects to the feature DB. |
abstract void |
createScan()
Creates a sequential scan over image features. |
long |
getTime()
Returns the time spent for retrieving features from the DB. |
Image |
load(ImageID id)
Loads the features of an image from the features DB given the image ID. |
protected abstract Image |
loadFeatures(ImageID id)
Loads the features of an image from the features DB given the image ID. |
protected abstract Image |
loadFeaturesNext()
Loads the features of the next image from the features DB. |
Image |
loadNext()
Loads the features of the next image from the features DB. |
abstract ImageID |
nextID()
Returns an image ID for a new image. |
void |
resetTime()
Resets the time counter. |
boolean |
save(Image image)
Saves the features of a given image in the features DB. |
protected abstract boolean |
saveFeatures(Image image)
Saves the features of a given image in the features DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long time
Constructor Detail |
---|
public FeatureManager()
Method Detail |
---|
public abstract void createConnection()
public abstract void closeConnection()
public Image load(ImageID id)
id
- ID of the image to be loaded.
Image
object containing loaded features (null
if no such image exists).public Image loadNext()
Image
object containing loaded features (null
if no next image exists).public boolean save(Image image)
image
- Image whose features are to be saved.
true
if the features have been successfully saved, false
otherwise.protected abstract boolean saveFeatures(Image image)
image
- Image whose features are to be saved.
true
if the features have been successfully saved, false
otherwise.protected abstract Image loadFeatures(ImageID id)
id
- ID of the image to be loaded.
Image
object containing loaded features (null
if no such image exists).protected abstract Image loadFeaturesNext()
Image
object containing loaded features (null
if no next image exists).public abstract void createScan()
public abstract void closeScan()
public abstract ImageID nextID()
ImageID
object not associated to any DB image.public boolean contains(ImageID id)
id
- Image ID to be searched.
true
if an image with the given ID exists, false
otherwise.public long getTime()
public void resetTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |