org.mskcc.psibiopax.converter
Class BioPAXMarshallerImp

java.lang.Object
  extended by java.lang.Thread
      extended by org.mskcc.psibiopax.converter.BioPAXMarshallerImp
All Implemented Interfaces:
java.lang.Runnable, BioPAXMarshaller

public class BioPAXMarshallerImp
extends java.lang.Thread
implements BioPAXMarshaller

This class waits for each EntryProcessor thread to finish. After thread(s) completion, combines set of Paxerve Models into single Model for marshalling.

Author:
Benjamin Gross

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BioPAXMarshallerImp(PSIMIBioPAXConverter converter, BioPAXLevel bpLevel, java.io.OutputStream outputStream, int numEntries)
           
 
Method Summary
 void addModel(Model bpModel)
          Our implementation of BioPAXMarshaller interface.
 void run()
          Our implementation of 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

BioPAXMarshallerImp

public BioPAXMarshallerImp(PSIMIBioPAXConverter converter,
                           BioPAXLevel bpLevel,
                           java.io.OutputStream outputStream,
                           int numEntries)
Method Detail

addModel

public void addModel(Model bpModel)
Our implementation of BioPAXMarshaller interface.

Specified by:
addModel in interface BioPAXMarshaller
Parameters:
bpModel - Model

run

public void run()
Our implementation of run.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 2011 BioPAX. All Rights Reserved.