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
-
dataFile
-
-
dataFileB
-
-
dataFileL
-
-
displayOK
-
-
dRead
-
-
dView
-
-
dWrit
-
-
errIndex
-
-
errRead
-
-
errWrit
-
-
mask
-
-
maxErrors
-
-
maxErrorTF
-
-
NEEDS_PARSE_LIMIT
-
-
nWrit
-
-
rate
-
-
time
-
-
LinkTest()
-
Creates the test
-
LinkTest(Board, Board)
-
-
LinkTest(Board[])
-
-
compare(int[], int, int[], int)
- Compare the data written to that read using instance variable mask to
mask off the data read back.
-
createDisplay()
- Create UI components for test
-
finalize()
-
-
finish()
- finish method: Called once at end of test
-
handleError()
- Print the appropriate error message
-
init()
- Init method: called once per test
-
loopAction()
- Loop action of the test
This code gets repeated nLoops times
-
parseNeeds(BufferedReader)
-
-
readCfgFile(String)
-
-
sendData(int[], int[], int)
-
Write the data to the board, read it back, and return the result
-
showData(int[], int)
- Show the data to the user
-
updateStatus()
- Update the status display for users to see
maxErrors
protected int maxErrors
errRead
protected int errRead
errWrit
protected int errWrit
errIndex
protected int errIndex
mask
protected int mask
NEEDS_PARSE_LIMIT
protected int NEEDS_PARSE_LIMIT
dataFile
protected String dataFile
dWrit
public int dWrit[]
dRead
public int dRead[]
nWrit
public int nWrit
dataFileL
protected JLabel dataFileL
dataFileB
protected JButton dataFileB
maxErrorTF
protected JNumberField maxErrorTF
rate
protected int rate
time
protected long time
dView
protected Block dView
displayOK
public boolean displayOK
LinkTest
public LinkTest()
- Creates the test
LinkTest
public LinkTest(Board fromB,
Board toB)
LinkTest
public LinkTest(Board boards[])
createDisplay
public void createDisplay()
- Create UI components for test
- Overrides:
- createDisplay in class TestBoards
init
public boolean init()
- Init method: called once per test
- Overrides:
- init in class TestBoards
finish
public void finish()
- finish method: Called once at end of test
- Overrides:
- finish in class TestBoards
loopAction
protected boolean loopAction()
- Loop action of the test
This code gets repeated nLoops times
- Overrides:
- loopAction in class TestObject
sendData
protected int sendData(int dWrit[],
int dRead[],
int nWords)
- Write the data to the board, read it back, and return the result
showData
protected void showData(int data[],
int nWords)
- Show the data to the user
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.
handleError
protected void handleError()
- Print the appropriate error message
updateStatus
protected void updateStatus()
- Update the status display for users to see
- Overrides:
- updateStatus in class TestBoards
finalize
protected void finalize()
- Overrides:
- finalize in class TestBoards
readCfgFile
public void readCfgFile(String filename)
- Overrides:
- readCfgFile in class TestObject
parseNeeds
protected void parseNeeds(BufferedReader input) throws NullPointerException, IOException
All Packages Class Hierarchy This Package Previous Next Index