com.jniwrapper.util
Class ProcessorInfo

java.lang.Object
  |
  +--com.jniwrapper.util.FunctionCache
        |
        +--com.jniwrapper.util.ProcessorInfo

public class ProcessorInfo
extends FunctionCache

ProcessorInfo class is utility class that allows reading processor information: Name, Frequency etc.


Method Summary
 int getFamily()
           
 long getFrequency()
           
static ProcessorInfo getInstance()
           
 int getModel()
           
 java.lang.String getProcessorName()
           
 int getStepping()
           
 int getType()
           
 java.lang.String getVendor()
           
 boolean has3DNow()
          Checks if processor supports 3DNow instructions.
 boolean has3DNowPlus()
          Checks if processor supports 3DNowPlus instructions.
 boolean hasFPU()
          Checks if processor has FPU.
 boolean hasMMX()
          Checks if processor supports MMX instructions.
 boolean hasMMXPlus()
          Checks if processor supports MMXPlus instructions.
 boolean hasSSE()
          Checks if processor supports SSE instructions.
 boolean hasSSE2()
          Checks if processor supports SSE2 instructions.
 java.lang.String toString()
           
 
Methods inherited from class com.jniwrapper.util.FunctionCache
getFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static ProcessorInfo getInstance()

getFrequency

public long getFrequency()
Returns:
processor frequency in MHz

getFamily

public int getFamily()
Returns:
processor family

getModel

public int getModel()
Returns:
processor model

getStepping

public int getStepping()
Returns:
processor stepping

getType

public int getType()
Returns:
processor type

hasFPU

public boolean hasFPU()
Checks if processor has FPU.

Returns:
true if processor has FPU; otherwise false

hasMMX

public boolean hasMMX()
Checks if processor supports MMX instructions.

Returns:
true if processor supports MMX instructions; otherwise false

hasMMXPlus

public boolean hasMMXPlus()
Checks if processor supports MMXPlus instructions.

Returns:
true if processor supports MMXPlus instructions; otherwise false

has3DNow

public boolean has3DNow()
Checks if processor supports 3DNow instructions.

Returns:
true if processor supports 3DNow instructions; otherwise false

has3DNowPlus

public boolean has3DNowPlus()
Checks if processor supports 3DNowPlus instructions.

Returns:
true if processor supports 3DNowPlus instructions; otherwise false

hasSSE

public boolean hasSSE()
Checks if processor supports SSE instructions.

Returns:
true if processor supports SSE instructions; otherwise false

hasSSE2

public boolean hasSSE2()
Checks if processor supports SSE2 instructions.

Returns:
true if processor supports SSE2 instructions; otherwise false

getVendor

public java.lang.String getVendor()
Returns:
vendor string

getProcessorName

public java.lang.String getProcessorName()
Returns:
processor name string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object