|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.jinsect.spock.console.FileFormat
public class FileFormat
This class deals with the formating of the file that represents the clusters in the spock challenge. The class provides methods for parsing such files and also creating such files.
Constructor Summary | |
---|---|
FileFormat()
Constructor method: Creates a new instance of FileFormat |
Method Summary | |
---|---|
void |
createFile(java.lang.String fileName)
Create a file according to the spock-challenge format using the data structure that contains the clusters. |
void |
createSets()
|
java.util.List |
getCategories()
|
java.util.Hashtable |
getClusters()
Get the clusters data structure |
java.util.ArrayList |
getFilesFromCategory(java.lang.String sCategoryName)
|
int |
getNumberOfClusters()
Get the number of clusters |
java.util.ArrayList |
getTestSet()
|
java.util.ArrayList |
getTrainingSet()
|
void |
parseFile(java.lang.String fileName)
Parse the file specified by the fileFormat string and store the necessary info to the data structures of this class. |
void |
setClusters(java.util.Hashtable clusterHash)
Set the cluster data structure |
void |
setNumberOfClusters(int numOfClusters)
Set the number of clusters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFormat()
Method Detail |
---|
public void parseFile(java.lang.String fileName)
fileName
- the file to parsepublic void createFile(java.lang.String fileName)
fileName
- the file to createpublic int getNumberOfClusters()
public java.util.Hashtable getClusters()
public void setNumberOfClusters(int numOfClusters)
numOfClusters
- the number of clusterspublic void setClusters(java.util.Hashtable clusterHash)
clusterHash
- the Hashtable that contains the clusterspublic java.util.List getCategories()
getCategories
in interface IDocumentSet
public void createSets()
createSets
in interface IDocumentSet
public java.util.ArrayList getFilesFromCategory(java.lang.String sCategoryName)
getFilesFromCategory
in interface IDocumentSet
public java.util.ArrayList getTrainingSet()
getTrainingSet
in interface IDocumentSet
public java.util.ArrayList getTestSet()
getTestSet
in interface IDocumentSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |