tools.processor
Class Processors

java.lang.Object
  extended by tools.processor.Processors

public class Processors
extends java.lang.Object

This singleton class parses the Processors.xml file. It maintains a cache of loaded processor families. Usually an application will only load one processor family.


Field Summary
protected static Processors singleton
           
 
Constructor Summary
protected Processors()
           
 
Method Summary
static Processors getInstance()
          This static method returns the singleton Processors instance.
 Processor getProcessor(java.lang.String name)
          This method returns the Processor info for a given CPU type.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static Processors singleton
Constructor Detail

Processors

protected Processors()
              throws org.jdom.JDOMException,
                     java.io.IOException
Throws:
org.jdom.JDOMException
java.io.IOException
Method Detail

getInstance

public static Processors getInstance()
This static method returns the singleton Processors instance.

Returns:
the Processors singleton

getProcessor

public Processor getProcessor(java.lang.String name)
This method returns the Processor info for a given CPU type.

Parameters:
name - the name of the CPU
Returns:
the Processor info or null if not found

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception