All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CDF.LinkTest

java.lang.Object
   |
   +----CDF.TestObject
           |
           +----CDF.TestBase
                   |
                   +----CDF.TestBoards
                           |
                           +----CDF.LinkTest

public class LinkTest
extends TestBoards
The superclass of all the classes that test the link between two boards


Variable Index

 o dataFile
 o dataFileB
 o dataFileL
 o displayOK
 o dRead
 o dView
 o dWrit
 o errIndex
 o errRead
 o errWrit
 o mask
 o maxErrors
 o maxErrorTF
 o NEEDS_PARSE_LIMIT
 o nWrit
 o rate
 o time

Constructor Index

 o LinkTest()
Creates the test
 o LinkTest(Board, Board)
 o LinkTest(Board[])

Method Index

 o compare(int[], int, int[], int)
Compare the data written to that read using instance variable mask to mask off the data read back.
 o createDisplay()
Create UI components for test
 o finalize()
 o finish()
finish method: Called once at end of test
 o handleError()
Print the appropriate error message
 o init()
Init method: called once per test
 o loopAction()
Loop action of the test This code gets repeated nLoops times
 o parseNeeds(BufferedReader)
 o readCfgFile(String)
 o sendData(int[], int[], int)
Write the data to the board, read it back, and return the result
 o showData(int[], int)
Show the data to the user
 o updateStatus()
Update the status display for users to see

Variables

 o maxErrors
 protected int maxErrors
 o errRead
 protected int errRead
 o errWrit
 protected int errWrit
 o errIndex
 protected int errIndex
 o mask
 protected int mask
 o NEEDS_PARSE_LIMIT
 protected int NEEDS_PARSE_LIMIT
 o dataFile
 protected String dataFile
 o dWrit
 public int dWrit[]
 o dRead
 public int dRead[]
 o nWrit
 public int nWrit
 o dataFileL
 protected JLabel dataFileL
 o dataFileB
 protected JButton dataFileB
 o maxErrorTF
 protected JNumberField maxErrorTF
 o rate
 protected int rate
 o time
 protected long time
 o dView
 protected Block dView
 o displayOK
 public boolean displayOK

Constructors

 o LinkTest
 public LinkTest()
Creates the test

 o LinkTest
 public LinkTest(Board fromB,
                 Board toB)
 o LinkTest
 public LinkTest(Board boards[])

Methods

 o createDisplay
 public void createDisplay()
Create UI components for test

Overrides:
createDisplay in class TestBoards
 o init
 public boolean init()
Init method: called once per test

Overrides:
init in class TestBoards
 o finish
 public void finish()
finish method: Called once at end of test

Overrides:
finish in class TestBoards
 o loopAction
 protected boolean loopAction()
Loop action of the test This code gets repeated nLoops times

Overrides:
loopAction in class TestObject
 o sendData
 protected int sendData(int dWrit[],
                        int dRead[],
                        int nWords)
Write the data to the board, read it back, and return the result

 o showData
 protected void showData(int data[],
                         int nWords)
Show the data to the user

 o compare
 protected boolean compare(int dWrit[],
                           int wordsWrit,
                           int dRead[],
                           int wordsRead)
Compare the data written to that read using instance variable mask to mask off the data read back. Responsibilities: When a pair of data don't match, set errRead, errWrote, and errIndex accordingly so that the error handler can report what went wrong.

 o handleError
 protected void handleError()
Print the appropriate error message

 o updateStatus
 protected void updateStatus()
Update the status display for users to see

Overrides:
updateStatus in class TestBoards
 o finalize
 protected void finalize()
Overrides:
finalize in class TestBoards
 o readCfgFile
 public void readCfgFile(String filename)
Overrides:
readCfgFile in class TestObject
 o parseNeeds
 protected void parseNeeds(BufferedReader input) throws NullPointerException, IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index