org.strbio.mol.lib.pred2ary
Class Jury

java.lang.Object
  extended by org.strbio.mol.lib.pred2ary.Jury
Direct Known Subclasses:
StandardJury

public class Jury
extends java.lang.Object

Class that implements a jury of secondary structure prediction networks. This is never in memory at the same time due to size, so all operations are closely linked to operations on streams (either coming over a network, or in a file)

  Version 1.0, 6/4/98 - original version
  

Version:
1.0, 6/4/98
Author:
JMC

Nested Class Summary
static interface Jury.ProgressIndicator
          Indicator to update with verbose output, after every juror finishes.
 
Field Summary
protected  java.lang.String fileName
          Name of file associated with the binary jury data.
protected  int nJurors
          How many jurors there are in the jury.
 Printf outfile
          File to print output to.
 Jury.ProgressIndicator progress
          Indicator to update with verbose output, after every juror.
 
Constructor Summary
Jury(java.lang.String filename)
          Create a new jury, given the name of the binary input file.
 
Method Summary
 int countJurors()
          returns the number of jurors in the file networkSet.
 void doPrediction(PredictionSet p)
          predict 2ary structure.
 boolean exists()
          see if the file exists on this system.
 java.io.DataInputStream getBinaryData()
          Open jury for processing.
 java.lang.String getName()
          Get the filename associated with the jury.
 int nJurors()
          See how many jurors are in the jury.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nJurors

protected int nJurors
How many jurors there are in the jury.


fileName

protected java.lang.String fileName
Name of file associated with the binary jury data.


outfile

public Printf outfile
File to print output to.


progress

public Jury.ProgressIndicator progress
Indicator to update with verbose output, after every juror.

Constructor Detail

Jury

public Jury(java.lang.String filename)
Create a new jury, given the name of the binary input file.

Method Detail

nJurors

public int nJurors()
See how many jurors are in the jury.


exists

public boolean exists()
see if the file exists on this system.


getName

public java.lang.String getName()
Get the filename associated with the jury.


getBinaryData

public java.io.DataInputStream getBinaryData()
                                      throws java.io.IOException
Open jury for processing.

Throws:
java.io.IOException

countJurors

public int countJurors()
                throws java.io.IOException
returns the number of jurors in the file networkSet. throws IOException if not found or error.

Throws:
java.io.IOException

doPrediction

public void doPrediction(PredictionSet p)
                  throws java.io.IOException
predict 2ary structure.

Throws:
java.io.IOException