|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSamling
Constructor Summary | |
Samling()
Konstruktør som oppretter en Arraylist collection for alle dokumentene og Vocabulary og DbId |
Method Summary | |
void |
addDocument(Document etDocument)
Metode som legger til document i ArrayListen til samlingen og i ordlisten. |
void |
addDocumentToDocumentList()
Metode som legger til dokument til samling uten å legge til i vocabulary. |
java.lang.String |
fjernTegnSubject(java.lang.String subject)
Metode som fjerner unødvendige tegn i Subject Stringen. |
int |
getAntallDoc()
Metode som finner antall dokumenter i hele samlingen ved å kontakte DbKobling klassen og kjøre count kommando i SQL |
java.util.ArrayList |
getCollection()
Metode som henter ArrayList med samling |
RelevantSubjects |
getNextDocument(int start,
int stop)
Oppretter et RelevantSubjects objekt for angitt del av samling. |
java.util.ArrayList |
getTheVocabulary()
Metode som henter ArrayList med Vocabulary |
Vocabulary |
getVocabulary()
Metode som henter Vocabulary og gjør den tilgjengelig for andre. |
void |
lagNormalizedVectors()
Metode som lager normaliserte vektorer av dokumentene, bruker metode i Document. |
void |
setCollection(java.util.ArrayList collection)
Metode som setter samlingen. |
void |
setVocabulary(Vocabulary vocabulary)
Metode som setter Vocabulary |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Samling()
Method Detail |
public void addDocument(Document etDocument)
etDocument
- Documentpublic Vocabulary getVocabulary()
public java.util.ArrayList getCollection()
public void setCollection(java.util.ArrayList collection)
collection
- ArrayListpublic void setVocabulary(Vocabulary vocabulary)
vocabulary
- Vocabularypublic java.util.ArrayList getTheVocabulary()
public void lagNormalizedVectors()
public void addDocumentToDocumentList()
public RelevantSubjects getNextDocument(int start, int stop)
start
- int startindex for samling.stop
- int sluttindex for samling
public int getAntallDoc()
public java.lang.String fjernTegnSubject(java.lang.String subject)
subject
- String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |