Mercurial > hg > jslab
view src/samer/silk/SilkTask.java @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
children |
line wrap: on
line source
package samer.silk; import samer.tools.*; import java.util.*; import jsint.*; public class SilkTask implements Task, Observer { Procedure _start, _stop, _run, _dispose; private final static Object[] args=new Object[0]; public SilkTask(Procedure _run) { this._run=_run; /* check minargs=0 */ } public String toString() { return "Scheme:"+_run; } public void starting() {} public void stopping() {} public void dispose() {} public void run() { _run.apply(args); } public void update(Observable o, Object a) { _run.apply(args); } }