1 |
package appl.parallel.thread; |
2 |
|
3 |
import appl.parallel.ComputingResource; |
4 |
import appl.parallel.ComputingResourceProperties; |
5 |
import appl.parallel.event.CommEventSink; |
6 |
import appl.parallel.event.CommEvent.CommType; |
7 |
|
8 |
/** |
9 |
* @author Dominik Appl |
10 |
*/ |
11 |
public abstract class ComputingResourceThread extends ExecutionThread{ |
12 |
|
13 |
|
14 |
public ComputingResourceThread(ComputingResource resource, ComputingResourceProperties resourceInfos, Object argument, CommType type, CommEventSink sink){ |
15 |
super(resource, resourceInfos, argument,type,sink,false); |
16 |
} |
17 |
|
18 |
public ComputingResourceThread(ComputingResource resource, ComputingResourceProperties resourceInfos, Object argument, CommType type, CommEventSink sink, boolean disableTransferEvents){ |
19 |
super(resource, resourceInfos, argument,type,sink,disableTransferEvents); |
20 |
} |
21 |
|
22 |
protected ComputingResource getServer(){ |
23 |
return (ComputingResource) server; |
24 |
} |
25 |
} |