|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.cmp.Multiprocessor
public class Multiprocessor
This describes the generic multiprocessor.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Constructor Summary | |
|---|---|
Multiprocessor()
|
|
| Method Summary | |
|---|---|
void |
allocate(java.lang.String[][] processorName)
This method allocates the processors. |
void |
clearErrors()
This clears the errors accumulated from the various processors during a step(). |
Processor |
get()
This method returns the current processor. |
Processor |
get(int row,
int col)
This method returns a processor from the array. |
int |
getCols()
This method returns the number of columns in the processor array. |
int |
getCurrentColumn()
This method returns the column of the currently selected processor. |
int |
getCurrentRow()
This method returns the row of the currently selected processor. |
java.lang.Exception[] |
getErrors()
This method returns an array containing all of the exceptions collected in the previous cycle. |
long |
getGlobalCycleCount()
This method returns the global cycle count. |
static ModelLoader |
getModelLoader()
This method returns the plugin's model loader. |
int |
getRows()
This method returns the number of rows in the processor array. |
void |
loadAll(Elf elf,
int offset)
This method loads the memory of each processor with the same data. |
static java.lang.String[][] |
makeProcessorTable(java.lang.String processorName,
int rows,
int cols)
The method is used to build the array of processor names used to initialize the MpMon. |
void |
reloadAll(int offset)
This method loads the memory of each processor with the most recently loaded ELF (or binary) file. |
void |
reset()
This method resets all of the processors. |
void |
set(int row,
int col)
This method sets a processor in the array as the current (focus) processor. |
int |
step()
This method steps all of the processors one cycle. |
int |
step(int n)
This method steps all of the processors at most |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public Multiprocessor()
| Method Detail |
|---|
public void allocate(java.lang.String[][] processorName)
throws ProcessorException
processorName - This is a 2D array of strings
representing the processors. Each string
should be the class name of a class
implementing the Processor interface.
ProcessorException - If there was an error allocating or
using the Processor class.public int step()
public int step(int n)
public void reset()
public Processor get()
public long getGlobalCycleCount()
public void set(int row,
int col)
row - The row index of the processor array.col - The column index of the processor array.
public Processor get(int row,
int col)
row - The row index of the processor array.col - The column index of the processor array.
public int getRows()
public int getCols()
public int getCurrentRow()
public int getCurrentColumn()
public java.lang.Exception[] getErrors()
public void clearErrors()
public void loadAll(Elf elf,
int offset)
throws MemoryAccessException
elf - The ELF data to be loaded.offset - The address at which to load a non-ELF
(raw binary) file. This parameter is ignored
for data in proper ELF format.
MemoryAccessException - if an attempt is made to
illegally access memory.
public void reloadAll(int offset)
throws MemoryAccessException
offset - The address at which to load a non-ELF
(raw binary) file. This parameter is ignored
for data in proper ELF format.
MemoryAccessException - if an attempt is made to
illegally access memory.
public static java.lang.String[][] makeProcessorTable(java.lang.String processorName,
int rows,
int cols)
processorName - The string representing the processor class.rows - The number of rows in the processor array.cols - The number of columns in the processor array.
public static ModelLoader getModelLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||