pt.ua.concurrent
Class CRunnable

java.lang.Object
  extended by pt.ua.concurrent.CRunnable
All Implemented Interfaces:
java.lang.Runnable

public abstract class CRunnable
extends java.lang.Object
implements java.lang.Runnable

A replacement for Runnable to handle exceptions (and other details).

This class follows DbC(tm) methodology (Wikipedia). Where possible, contracts are implement with native's Java assert.

Author:
Miguel Oliveira e Silva (mos@ua.pt)

Constructor Summary
CRunnable()
           
 
Method Summary
abstract  void arun()
          The new thread program method (replaces run).
 void run()
          Default run method is simply to call arun.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRunnable

public CRunnable()
Method Detail

run

public void run()
Default run method is simply to call arun.

Specified by:
run in interface java.lang.Runnable

arun

public abstract void arun()
The new thread program method (replaces run).