Class BadDeviceSelector
- java.lang.Object
-
- net.haesleinhuepf.clij.clearcl.selector.BadDeviceSelector
-
- All Implemented Interfaces:
DeviceSelector
public class BadDeviceSelector extends Object implements DeviceSelector
Selects out bad devices- Author:
- royer
-
-
Field Summary
Fields Modifier and Type Field Description static BadDeviceSelectorNotIntegratedIntelSelects out all integrated Intel devicesstatic BadDeviceSelectorNotIntegratedIntelHDSelects out all HD integrated Intel devicesstatic BadDeviceSelectorNotSlowIntegratedIntelSelects out all known slow integrated Intel devices
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BadDeviceSelectoraddName(String pName)Adds a name to te list of bad devices.voidinit(ArrayList<ClearCLDevice> pDevices)In some case the whole list of devices is needed before being able to decide on whether a particular device is selected, this method provided this possibility.booleanselected(ClearCLDevice pClearCLDevice)Returns true if the device should be selected, multiple devices can be selected.
-
-
-
Field Detail
-
NotIntegratedIntel
public static BadDeviceSelector NotIntegratedIntel
Selects out all integrated Intel devices
-
NotSlowIntegratedIntel
public static BadDeviceSelector NotSlowIntegratedIntel
Selects out all known slow integrated Intel devices
-
NotIntegratedIntelHD
public static BadDeviceSelector NotIntegratedIntelHD
Selects out all HD integrated Intel devices
-
-
Method Detail
-
addName
public BadDeviceSelector addName(String pName)
Adds a name to te list of bad devices.- Parameters:
pName- device name- Returns:
- this bad device selector
-
init
public void init(ArrayList<ClearCLDevice> pDevices)
Description copied from interface:DeviceSelectorIn some case the whole list of devices is needed before being able to decide on whether a particular device is selected, this method provided this possibility.- Specified by:
initin interfaceDeviceSelector- Parameters:
pDevices- list of devices to consider
-
selected
public boolean selected(ClearCLDevice pClearCLDevice)
Description copied from interface:DeviceSelectorReturns true if the device should be selected, multiple devices can be selected.- Specified by:
selectedin interfaceDeviceSelector- Parameters:
pClearCLDevice- device- Returns:
- true if selected, false otherwise.
-
-