Package ffx.openmm
Class Platform
java.lang.Object
ffx.openmm.Platform
A Platform defines an implementation of all the kernels needed to perform some calculation.
More precisely, a Platform object acts as a registry for a set of KernelFactory
objects which together implement the kernels. The Platform class, in turn, provides a
static registry of all available Platform objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the OpenMM Platform instance.getName()
Get the name of the OpenMM Platform.static int
Get the number of OpenMM Platforms.static String
Get the OpenMM version.static StringArray
Get the plugin load failures.com.sun.jna.ptr.PointerByReference
Get the OpenMM Platform pointer.double
getSpeed()
Get an estimate of how fast this Platform class is.static StringArray
loadPluginsFromDirectory
(String directory) Load plugins from a directory.void
setPropertyDefaultValue
(String propertyName, String defaultValue) Set an OpenMM Platform property.
-
Constructor Details
-
Platform
OpenMM Platform constructor.- Parameters:
platformName
- The name of the OpenMM Platform.
-
-
Method Details
-
getPointer
public com.sun.jna.ptr.PointerByReference getPointer()Get the OpenMM Platform pointer.- Returns:
- The OpenMM Platform pointer.
-
getName
Get the name of the OpenMM Platform.- Returns:
- The name of the OpenMM Platform.
-
getSpeed
public double getSpeed()Get an estimate of how fast this Platform class is.- Returns:
- The speed of the OpenMM Platform.
-
setPropertyDefaultValue
Set an OpenMM Platform property. -
getNumPlatforms
public static int getNumPlatforms()Get the number of OpenMM Platforms.- Returns:
- The number of OpenMM Platforms.
-
getOpenMMVersion
Get the OpenMM version.- Returns:
- The version of OpenMM.
-
loadPluginsFromDirectory
Load plugins from a directory.- Parameters:
directory
- The directory to load plugins from.- Returns:
- The OpenMMStringArray of plugins loaded.
-
getPluginLoadFailures
Get the plugin load failures.- Returns:
- The OpenMMStringArray of plugin load failures.
-
destroy
public void destroy()Destroy the OpenMM Platform instance.
-