Package elki.parallel
Class SingleThreadedExecutor.SingleThreadedRunner
- java.lang.Object
-
- elki.parallel.SingleThreadedExecutor.SingleThreadedRunner
-
- All Implemented Interfaces:
Executor
- Enclosing class:
- SingleThreadedExecutor
protected static class SingleThreadedExecutor.SingleThreadedRunner extends java.lang.Object implements Executor
Run for an array part, without step size.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private DBIDs
ids
Array IDs to processprivate Processor[]
procs
The process masters that own the instances.private java.util.HashMap<SharedVariable<?>,SharedVariable.Instance<?>>
variables
Variables map.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleThreadedRunner(DBIDs ids, Processor[] procs)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I extends SharedVariable.Instance<?>>
IgetInstance(SharedVariable<I> parent)
Get a channel for this executor.void
run()
-
-
-
Field Detail
-
ids
private DBIDs ids
Array IDs to process
-
procs
private Processor[] procs
The process masters that own the instances.
-
variables
private java.util.HashMap<SharedVariable<?>,SharedVariable.Instance<?>> variables
Variables map.
-
-
Method Detail
-
run
public void run()
-
getInstance
public <I extends SharedVariable.Instance<?>> I getInstance(SharedVariable<I> parent)
Description copied from interface:Executor
Get a channel for this executor.- Specified by:
getInstance
in interfaceExecutor
- Type Parameters:
I
- Variable type- Parameters:
parent
- Channel parent- Returns:
- Channel instance
-
-