edu.lehigh.swat.hawk.storage.simplememory
Class SimpleMemoryStorage

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.StorageModel
      extended by edu.lehigh.swat.hawk.storage.simplememory.SimpleMemoryStorage
Direct Known Subclasses:
DlMemoryStorage

public class SimpleMemoryStorage
extends StorageModel

A memory based storage model


Constructor Summary
SimpleMemoryStorage()
          Constructor
 
Method Summary
 void addDocument(Document doc)
          Add a document to this model.
 Document createDocument()
          Create an Document object.
 Ontology createOntology()
          Create an Ontology object.
 Document getDocument(java.lang.String url)
          Get the specified document.
 java.util.Iterator getDocumentIterator()
          Get all the documents in the model.
 int getSeqNum(DocId did)
          Get the sequence number for giving Document
 void pushImports(Ontology onto)
          Add imports objects to ontology, for the use of memory-based storage model.
 void setImplictImports(boolean imp)
          Set whether or not include implictly imported documents.
 void updateDocument(Document doc)
          Update a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMemoryStorage

public SimpleMemoryStorage()
Constructor

Method Detail

addDocument

public void addDocument(Document doc)
Add a document to this model.

Specified by:
addDocument in class StorageModel

getDocument

public Document getDocument(java.lang.String url)
Get the specified document.

Specified by:
getDocument in class StorageModel

updateDocument

public void updateDocument(Document doc)
Update a document.

Specified by:
updateDocument in class StorageModel

getDocumentIterator

public java.util.Iterator getDocumentIterator()
Get all the documents in the model.

Specified by:
getDocumentIterator in class StorageModel

createOntology

public Ontology createOntology()
Create an Ontology object.

Specified by:
createOntology in class StorageModel

createDocument

public Document createDocument()
Create an Document object.

Specified by:
createDocument in class StorageModel

pushImports

public void pushImports(Ontology onto)
Add imports objects to ontology, for the use of memory-based storage model.

Specified by:
pushImports in class StorageModel

setImplictImports

public void setImplictImports(boolean imp)
Set whether or not include implictly imported documents.

Specified by:
setImplictImports in class StorageModel

getSeqNum

public int getSeqNum(DocId did)
Get the sequence number for giving Document