|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.utils.gui.CLDefaultConfig
public class CLDefaultConfig
Default implementation of a CLMutableConfig
Constructor Summary | |
---|---|
CLDefaultConfig()
Default constructor. |
Method Summary | |
---|---|
void |
addCLConfigListener(CLConfigListener clConfigListener)
Add the given CLConfigListener to be informed about
modifications in this configuration. |
protected void |
fireConfigChanged()
Notify all registered CLConfigListeners
about a modification 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 . |
void |
setConfig(org.jocl.cl_platform_id platform,
java.util.List<org.jocl.cl_device_id> devices)
Set the platform and devices of this CLConfig . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLDefaultConfig()
null
and the list
of devices is empty.
Method Detail |
---|
public void setConfig(org.jocl.cl_platform_id platform, java.util.List<org.jocl.cl_device_id> devices)
CLMutableConfig
CLConfig
. None of
the given parameters may be null
.
setConfig
in interface CLMutableConfig
platform
- The platform.devices
- The list of devices.public org.jocl.cl_platform_id getPlatform()
CLConfig
getPlatform
in interface CLConfig
public java.util.List<org.jocl.cl_device_id> getDevices()
CLConfig
getDevices
in interface CLConfig
public void addCLConfigListener(CLConfigListener clConfigListener)
CLConfig
CLConfigListener
to be informed about
modifications in this configuration.
addCLConfigListener
in interface CLConfig
clConfigListener
- The listener to addpublic void removeCLConfigListener(CLConfigListener clConfigListener)
CLConfig
CLConfigListener
.
removeCLConfigListener
in interface CLConfig
clConfigListener
- The listener to removeprotected void fireConfigChanged()
CLConfigListeners
about a modification in this configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |