|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.identification.protein_inference.proteintree.NodeFactory
public class NodeFactory
This factory provides protein trees node contents from indexed text files.
Field Summary | |
---|---|
static String |
separator
The separator used to separate line contents. |
Method Summary | |
---|---|
void |
close()
Closes the factory, closes all connection and deletes the file. |
HashMap<String,ArrayList<Integer>> |
getAccessions(long index)
Returns the accessions at a given index. |
static NodeFactory |
getInstance()
Static method returning the instance of the factory. |
static NodeFactory |
getInstance(File folder)
Static method returning the instance of the factory and setting the serialization folder. |
void |
initiateFactory()
Initiates the factory on the sequence factory. |
void |
saveAccessions(Node node,
boolean emptyNode)
Saves all the downstream accessions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String separator
Method Detail |
---|
public static NodeFactory getInstance(File folder)
folder
- the serialization folder
public static NodeFactory getInstance()
public void initiateFactory() throws IOException
IOException
public void saveAccessions(Node node, boolean emptyNode) throws IOException
node
- the nodeemptyNode
- boolean indicating whether the node should be emptied
(if true the accession mapping will be cleared)
IOException
public HashMap<String,ArrayList<Integer>> getAccessions(long index) throws IOException
index
- the index of the node
IOException
public void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |