org.jocl.cloth.utils.gui
Interface CLConfig

All Known Subinterfaces:
CLMutableConfig
All Known Implementing Classes:
CLDefaultConfig

public interface CLConfig

Interface for an OpenCL configuration, consisting of a platform and a list of devices.


Method Summary
 void addCLConfigListener(CLConfigListener clConfigListener)
          Add the given CLConfigListener to be informed about modifications in this configuration.
 java.util.List<org.jocl.cl_device_id> getDevices()
          Returns an unmodifiable list containing the OpenCL devices
 org.jocl.cl_platform_id getPlatform()
          Returns the OpenCL platform
 void removeCLConfigListener(CLConfigListener clConfigListener)
          Remove the given CLConfigListener.
 

Method Detail

getPlatform

org.jocl.cl_platform_id getPlatform()
Returns the OpenCL platform

Returns:
The OpenCL platform

getDevices

java.util.List<org.jocl.cl_device_id> getDevices()
Returns an unmodifiable list containing the OpenCL devices

Returns:
The OpenCL devices

addCLConfigListener

void addCLConfigListener(CLConfigListener clConfigListener)
Add the given CLConfigListener to be informed about modifications in this configuration.

Parameters:
clConfigListener - The listener to add

removeCLConfigListener

void removeCLConfigListener(CLConfigListener clConfigListener)
Remove the given CLConfigListener.

Parameters:
clConfigListener - The listener to remove