fcmodeler.pathbinder
Class PmidFilter

java.lang.Object
  extended by edu.iastate.jtm.gui.DefaultMonitorable
      extended by fcmodeler.pathbinder.PmidFilter
All Implemented Interfaces:
Monitorable

public class PmidFilter
extends DefaultMonitorable

Take care of creating temporary filter table.

Author:
Jing Ding fcmodeler.pathbinder MetNet

Field Summary
 
Fields inherited from class edu.iastate.jtm.gui.DefaultMonitorable
message, monitorable, progress
 
Constructor Summary
PmidFilter(MySqlConnector db)
           
 
Method Summary
 void addTaxEntry(FilterEntry newEntry)
          Add a tax_id to the filter.
 void clearFilter()
           
 void createPredefinedTable()
           
 java.lang.String finalTableName()
           
 int getFilterCount()
           
 boolean getFilterTaxonomy()
           
static void main(java.lang.String[] args)
           
 void setFilterTaxonomy(boolean f)
           
 int updateFilterTable(boolean predefined, java.util.Set locations)
           
 
Methods inherited from class edu.iastate.jtm.gui.DefaultMonitorable
getMessage, getProgress, isDeterministic, isFinished, isMonitorable, isRunning, setMessage, setMonitorable, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmidFilter

public PmidFilter(MySqlConnector db)
           throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

addTaxEntry

public void addTaxEntry(FilterEntry newEntry)
Add a tax_id to the filter. If a parent of the tax_id is already in the filter, do nothing. If some children are in the filter, remove them.

Parameters:
left - left_id of the tax_id.
right - right_id of the tax_id.

setFilterTaxonomy

public void setFilterTaxonomy(boolean f)

getFilterTaxonomy

public boolean getFilterTaxonomy()

finalTableName

public java.lang.String finalTableName()

getFilterCount

public int getFilterCount()

updateFilterTable

public int updateFilterTable(boolean predefined,
                             java.util.Set locations)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

clearFilter

public void clearFilter()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

createPredefinedTable

public void createPredefinedTable()
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

main

public static void main(java.lang.String[] args)