annotool.io
Class ChainIO

java.lang.Object
  extended by annotool.io.ChainIO

public class ChainIO
extends java.lang.Object

Saves and loads the list of algorithm chains for comparison mode. It allows the chain to be constructed once, saved in a file and loaded later for execution. It is different than ChainModel which is for saving a trained model.


Constructor Summary
ChainIO()
           
 
Method Summary
 java.util.ArrayList<Chain> load(java.io.File file)
           
 void save(java.io.File file, java.util.ArrayList<Chain> chainList)
           
 void saveRanks(java.io.File file, java.util.ArrayList<Chain> chainList, float[][] rates, int chainNum)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainIO

public ChainIO()
Method Detail

save

public void save(java.io.File file,
                 java.util.ArrayList<Chain> chainList)
          throws java.io.IOException
Throws:
java.io.IOException

saveRanks

public void saveRanks(java.io.File file,
                      java.util.ArrayList<Chain> chainList,
                      float[][] rates,
                      int chainNum)
               throws java.io.IOException
Throws:
java.io.IOException

load

public java.util.ArrayList<Chain> load(java.io.File file)
                                throws java.io.FileNotFoundException,
                                       java.lang.Exception
Throws:
java.io.FileNotFoundException
java.lang.Exception