org.biojava.dasobert.das
Class AlignmentThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.biojava.dasobert.das.AlignmentThread
All Implemented Interfaces:
Runnable

public class AlignmentThread
extends Thread

A thread that gets the alignment from a das server

Author:
Andreas Prlic

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AlignmentThread(AlignmentParameters params)
           
 
Method Summary
 void addAlignmentListener(AlignmentListener ali)
           
 void clearAlignmentListeners()
           
static Annotation getObject(String objectid, Alignment ali)
          get the data for an object from the alignment
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlignmentThread

public AlignmentThread(AlignmentParameters params)
Method Detail

clearAlignmentListeners

public void clearAlignmentListeners()

addAlignmentListener

public void addAlignmentListener(AlignmentListener ali)

getObject

public static Annotation getObject(String objectid,
                                   Alignment ali)
                            throws NoSuchElementException
get the data for an object from the alignment

Parameters:
objectid - an objectId that is member of this alignment
ali - an Alignment
Returns:
Annotation the description of an Object
Throws:
NoSuchElementException

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2012 BioJava. All Rights Reserved.