Class SoCpuDevice
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.devices.SoDevice
com.openinventor.inventor.devices.SoCpuDevice
CPU device management class.
This class provides functions to manage or to get data for each CPU device available in the system.
Please see SoDevice for general information about the device classes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum contains the list of possible architectures for the CPU.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic SoCpuDeviceReturns the first available device found in the system.Returns the architecture of the processor.intgetCacheSize(int cacheLevel) Returns the size of the cache on this device in bytes.static SoCpuDeviceCalls getDevice((int)0).static SoCpuDevicegetDevice(int index) Returns theSoCpuDevice.static intReturns the total number of cores available in the sytem.intReturns the SSE instruction level available on this device.booleanhasMMX()Returns true if MMX instructions are supported on this device.booleanhasSSE()Returns if SSE instructions are supported on this device.booleanisActive()Returns true if the CPU is active in the system.Methods inherited from class com.openinventor.inventor.devices.SoDevice
getDeviceName, getDriverVersion, getLogicalUnitsMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getDevice
Calls getDevice((int)0). -
getSSELevel
public int getSSELevel()Returns the SSE instruction level available on this device. -
getDevicesCount
public static int getDevicesCount()Returns the total number of cores available in the sytem. -
getCacheSize
public int getCacheSize(int cacheLevel) Returns the size of the cache on this device in bytes. Note: On Microsoft Windows platforms this function only returns a valid number on Windows XP SP3 and newer.- Parameters:
cacheLevel- The cache level can be 1, 2, or 3.
-
getDevice
Returns theSoCpuDevice.- Parameters:
index- not used.
-
findFirstAvailableDevice
Returns the first available device found in the system. -
hasSSE
public boolean hasSSE()Returns if SSE instructions are supported on this device. -
hasMMX
public boolean hasMMX()Returns true if MMX instructions are supported on this device. -
getArchitecture
Returns the architecture of the processor. -
isActive
public boolean isActive()Returns true if the CPU is active in the system.
-