|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FeatureManager.FeatureManager FeatureManager.WindsurfFeatureManagerTxt
public class WindsurfFeatureManagerTxt
Implements the text-based Feature Manager for Windsurf.
Field Summary |
---|
Fields inherited from class FeatureManager.FeatureManager |
---|
time |
Constructor Summary | |
---|---|
WindsurfFeatureManagerTxt(java.lang.String filename)
Basic constructor. |
Method Summary | |
---|---|
void |
closeConnection()
Closes the connection to the features file. |
void |
closeScan()
Closes a sequential scan over image features. |
void |
createConnection()
Connects to the features file. |
void |
createScan()
Creates a sequential scan over image features. |
protected Image |
loadFeatures(ImageID id)
Loads the features of an image from the features file given the image ID. |
protected Image |
loadFeaturesNext()
Loads the features of the next image from the features file. |
ImageID |
nextID()
Returns an image ID for a new image. |
protected boolean |
saveFeatures(Image image)
Saves the features of a given image in the features file. |
Methods inherited from class FeatureManager.FeatureManager |
---|
contains, getTime, load, loadNext, resetTime, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindsurfFeatureManagerTxt(java.lang.String filename)
filename
- The name for the features file.Method Detail |
---|
public void createConnection()
createConnection
in class FeatureManager
public void closeConnection()
closeConnection
in class FeatureManager
protected boolean saveFeatures(Image image)
saveFeatures
in class FeatureManager
image
- Image whose features are to be saved.
true
if the features have been successfully saved, false
otherwise.protected Image loadFeatures(ImageID id)
loadFeatures
in class FeatureManager
id
- ID of the image to be loaded.
Image
object containing loaded features (null
if no such image exists).public void createScan()
createScan
in class FeatureManager
public void closeScan()
closeScan
in class FeatureManager
protected Image loadFeaturesNext()
loadFeaturesNext
in class FeatureManager
Image
object containing loaded features (null
if no next image exists).public ImageID nextID()
nextID
in class FeatureManager
ImageIDnumerical
object not associated to any DB image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |