edu.mayo.bsi.ngsportal.shared
Class ResultInfo

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.shared.ResultInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ResultInfo
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

Conveyer class to get results from the server to the client.

@author Gregory Dougherty


Constructor Summary
ResultInfo(String piName, String runID, String application, String qcLoc, String metaDataLoc, boolean hasAnalysis)
           
 
Method Summary
 String getApplication()
           
 String getMetaDataLoc()
           
 String getPIName()
           
 List<String> getProjectNames()
           
 String getQcLoc()
           
 String getRunID()
           
 boolean hasAnalysis()
           
 void setProjectNames(List<String> projectNames)
          Set the list of project names to be the passed in list.
static void sortResultInfoListByPI(List<ResultInfo> result)
          Sort the result list in increasing alphabetical order of the PI name
static void sortResultInfoListByRun(List<ResultInfo> result)
          Sort the result list in decreasing alphabetical order of the run name
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultInfo

public ResultInfo(String piName,
                  String runID,
                  String application,
                  String qcLoc,
                  String metaDataLoc,
                  boolean hasAnalysis)
Parameters:
piName - The PI responsible for the run
runID - The id of the run found
application - Application type results were limited to, null or empty if no such limits
qcLoc - An HTML String pointing to the QC Folder
metaDataLoc - An HTML String pointing to the metadata file
hasAnalysis - Whether or not there's any analysis for this run
Method Detail

getPIName

public final String getPIName()
Returns:
the piName

getRunID

public final String getRunID()
Returns:
the run name

getApplication

public final String getApplication()
Returns:
the application

getQcLoc

public final String getQcLoc()
Returns:
the qcLoc

getMetaDataLoc

public final String getMetaDataLoc()
Returns:
the metaDataLoc

hasAnalysis

public boolean hasAnalysis()
Returns:
if this run has analysis

sortResultInfoListByRun

public static void sortResultInfoListByRun(List<ResultInfo> result)
Sort the result list in decreasing alphabetical order of the run name

Parameters:
result - List to sort

sortResultInfoListByPI

public static void sortResultInfoListByPI(List<ResultInfo> result)
Sort the result list in increasing alphabetical order of the PI name

Parameters:
result - List to sort

toString

public String toString()
Overrides:
toString in class Object

setProjectNames

public void setProjectNames(List<String> projectNames)
Set the list of project names to be the passed in list. No error checking is done on the passed in data

Parameters:
projectNames - New list of project names

getProjectNames

public List<String> getProjectNames()
Returns:
The list of project IDs