net.sourceforge.geeboss.controller.thread
Class MidiJobThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.sourceforge.geeboss.controller.thread.MidiJobThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
MidiPortCloser, MidiPortOpenner

public abstract class MidiJobThread
extends java.lang.Thread

A thread to run a midi job

Author:
Frederic BORRY

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  GeebossContainer mContainer
           
protected  boolean mStopped
          Flag indicating status of the Thread
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MidiJobThread(MainView geebossGui)
          Create a new PortOpenner thread
 
Method Summary
 void bindMidiJob(MidiJob midiJob)
          Associate a midi job to this thread
abstract  java.lang.String getStatusText()
          Get the thread's status text
 boolean isStopped()
          Check if this Thread was stopped
 void startThread()
          Starts this Thread
 void stopThread()
          Stops this Thread by setting the stopped-flag to true
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mContainer

protected GeebossContainer mContainer

mStopped

protected boolean mStopped
Flag indicating status of the Thread

Constructor Detail

MidiJobThread

public MidiJobThread(MainView geebossGui)
Create a new PortOpenner thread

Parameters:
geebossGui - the main view
Method Detail

getStatusText

public abstract java.lang.String getStatusText()
Get the thread's status text


bindMidiJob

public void bindMidiJob(MidiJob midiJob)
Associate a midi job to this thread


isStopped

public boolean isStopped()
Check if this Thread was stopped

Returns:
boolean true if stopped

startThread

public void startThread()
Starts this Thread


stopThread

public void stopThread()
Stops this Thread by setting the stopped-flag to true



Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.