com.jniwrapper.util
Class ProcessorInfo

java.lang.Object
  extended by com.jniwrapper.util.ProcessorInfo

public class ProcessorInfo
extends java.lang.Object

This is a utility class that provides information about installed CPU.


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 the processor supports 3DNow instructions.
 boolean has3DNowPlus()
          Checks if the processor supports 3DNowPlus instructions.
 boolean hasAMD64()
          Checks if the processor supports AMD64 instructions.
 boolean hasEM64T()
          Checks if the processor supports EM64T instructions.
 boolean hasFPU()
          Checks if the processor has FPU.
 boolean hasMMX()
          Checks if the processor supports MMX instructions.
 boolean hasMMXPlus()
          Checks if the processor supports MMXPlus instructions.
 boolean hasSSE()
          Checks if the processor supports SSE instructions.
 boolean hasSSE2()
          Checks if the processor supports SSE2 instructions.
 boolean hasSSE3()
          Checks if the processor supports SSE3 instructions.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
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 the processor has FPU.

Returns:
true if processor has FPU; otherwise false

hasMMX

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

Returns:
true if processor supports MMX instructions, otherwise false.

hasMMXPlus

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

Returns:
true if processor supports MMXPlus instructions, otherwise false.

has3DNow

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

Returns:
true if processor supports 3DNow instructions, otherwise false.

has3DNowPlus

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

Returns:
true if processor supports 3DNowPlus instructions, otherwise. false

hasSSE

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

Returns:
true if processor supports SSE instructions, otherwise false.

hasSSE2

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

Returns:
true if processor supports SSE2 instructions, otherwise false.

hasSSE3

public boolean hasSSE3()
Checks if the processor supports SSE3 instructions.

Returns:
true if processor supports SSE3 instructions, otherwise false.

hasEM64T

public boolean hasEM64T()
Checks if the processor supports EM64T instructions.

Returns:
true if processor supports EM64T instructions, otherwise false.

hasAMD64

public boolean hasAMD64()
Checks if the processor supports AMD64 instructions.

Returns:
true if processor supports AMD64 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

main

public static void main(java.lang.String[] args)