uk.ac.sanger.cgp.standalonecsa.jabawat
Class JabawatResults

java.lang.Object
  extended by uk.ac.sanger.cgp.standalonecsa.jabawat.JabawatResults

public class JabawatResults
extends java.lang.Object

When an object of this is created it is used to hold the results and other info from the jabawat program.

Author:
kg1, $Author: kr2 $

Constructor Summary
JabawatResults()
          Creates a new instance of JabawatResults
 
Method Summary
 int[] getCoords(int i)
          gets the coordinates of a specific hit.
 java.util.List getCoordsList()
          Retrieves the Coordinates list object.
 int getHits()
          Retrieves the number of hits from the object.
 java.lang.String getKey()
          Gets the name of the sequence.
 java.lang.String getOutcome()
          Retrieves the direction of the query.
 void setHits(int hits)
          Adds the number of hits to the object.
 void setKey(java.lang.String key)
          Adds the name of the query to the object.
 void setOutcome(java.lang.String outcome)
          Adds the direction of the query to the object.
 void storeCoords(int start, int stop)
          Stores the coordinates within the object.
 java.lang.String toString()
          returns a string of the contents of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JabawatResults

public JabawatResults()
Creates a new instance of JabawatResults

Method Detail

getKey

public java.lang.String getKey()
Gets the name of the sequence.

Returns:
The name of the sequence.

setKey

public void setKey(java.lang.String key)
Adds the name of the query to the object.

Parameters:
key - The name.

getCoordsList

public java.util.List getCoordsList()
Retrieves the Coordinates list object.

Returns:
The list of coords.

getOutcome

public java.lang.String getOutcome()
Retrieves the direction of the query.

Returns:
The direction.

setOutcome

public void setOutcome(java.lang.String outcome)
Adds the direction of the query to the object.

Parameters:
outcome - The direction.

storeCoords

public void storeCoords(int start,
                        int stop)
Stores the coordinates within the object.

Parameters:
start - The min coord.
stop - The max coord.

getCoords

public int[] getCoords(int i)
gets the coordinates of a specific hit.

Parameters:
i - The hit number for the coordinates.
Returns:
An array containing the max and min coords.

getHits

public int getHits()
Retrieves the number of hits from the object.

Returns:
An int representing the number of hits.

setHits

public void setHits(int hits)
Adds the number of hits to the object.

Parameters:
hits - number of hits.

toString

public java.lang.String toString()
returns a string of the contents of the object.

Overrides:
toString in class java.lang.Object
Returns:
The data stored within the object.