|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jmri.util.JmriJFrame
jmri.jmrix.cmri.serial.diagnostic.DiagnosticFrame
public class DiagnosticFrame
Frame for running CMRI diagnostics
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface |
|---|
WindowInterface.Hint |
| Field Summary | |
|---|---|
protected int |
begInByte
|
protected int |
begOutByte
|
(package private) JButton |
continueButton
|
protected int |
count
|
(package private) DiagnosticFrame |
curFrame
|
protected int |
curOutBit
|
protected int |
curOutByte
|
protected short |
curOutValue
|
(package private) int |
debugCount
|
protected int |
endInByte
|
protected int |
endOutByte
|
protected int |
filterDelay
|
(package private) JTextField |
filterDelayField
|
protected byte[] |
inBytes
|
(package private) JTextField |
inCardField
|
protected int |
inCardNum
|
protected boolean |
isSMINI
|
protected boolean |
isUSIC_SUSIC
|
protected boolean |
needInputTest
|
protected int |
nInBytes
|
protected SerialNode |
node
|
protected int |
nOutBytes
|
protected int |
numCards
|
protected int |
numErrors
|
protected int |
numInputCards
|
protected int |
numIterations
|
protected int |
numOutputCards
|
protected int |
obsDelay
|
(package private) JTextField |
obsDelayField
|
protected byte[] |
outBytes
|
(package private) JTextField |
outCardField
|
protected int |
outCardNum
|
(package private) JRadioButton |
outputButton
|
protected boolean |
outTest
|
protected Timer |
outTimer
|
(package private) JButton |
runButton
|
(package private) JLabel |
statusText1
|
(package private) JLabel |
statusText2
|
(package private) JButton |
stopButton
|
(package private) ButtonGroup |
testGroup
|
protected boolean |
testRunning
|
protected boolean |
testSuspended
|
protected int |
ua
|
(package private) JTextField |
uaAddrField
|
protected boolean |
waitingOnInput
|
(package private) JRadioButton |
wrapButton
|
protected byte[] |
wrapBytes
|
protected boolean |
wrapTest
|
protected Timer |
wrapTimer
|
| Fields inherited from class jmri.util.JmriJFrame |
|---|
allowInFrameServlet, properties, reuseFrameSavedPosition, reuseFrameSavedSized, windowInterface |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DiagnosticFrame()
|
|
| Method Summary | |
|---|---|
void |
continueButtonActionPerformed(ActionEvent e)
Method to handle continue button in Diagnostic Frame |
(package private) SerialMessage |
createOutPacket()
Local Method to create an Transmit packet (SerialMessage) |
void |
initComponents()
By default, Swing components should be created an installed in this method, rather than in the ctor itself. |
protected boolean |
initializeOutputTest()
Local Method to initialize an Output Test Returns 'true' if successfully initialized Returns 'false' if errors are found If errors are found, the errors are noted in the status panel of the Diagnostic Frame |
protected boolean |
initializeWraparoundTest()
Local Method to initialize a Wraparound Test Returns 'true' if successfully initialized Returns 'false' if errors are found If errors are found, the errors are noted in the status panel of the Diagnostic Frame |
void |
message(SerialMessage m)
Message notification method to implement SerialListener interface |
protected boolean |
readSetupData()
Local method to read data in Diagnostic Frame, get node data, and test for consistency Returns 'true' if no errors are found Returns 'false' if errors are found If errors are found, the errors are noted in the status panel of the Diagnostic Frame |
void |
reply(SerialReply l)
Reply notification method to implement SerialListener interface |
void |
runButtonActionPerformed(ActionEvent e)
Method to handle run button in Diagnostic Frame |
protected void |
runOutputTest()
Local Method to run an Output Test |
protected void |
runWraparoundTest()
Local Method to run a Wraparound Test |
void |
stopButtonActionPerformed(ActionEvent e)
Method to handle Stop button in Diagnostic Frame |
protected void |
stopOutputTest()
Local Method to stop an Output Test |
protected void |
stopWraparoundTest()
Local Method to stop a Wraparound Test |
void |
windowClosing(WindowEvent e)
Stop operation when window closing |
| Methods inherited from class java.awt.Frame |
|---|
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected boolean outTest
protected boolean wrapTest
protected boolean isSMINI
protected boolean isUSIC_SUSIC
protected int numOutputCards
protected int numInputCards
protected int numCards
protected int ua
protected SerialNode node
protected int outCardNum
protected int obsDelay
protected int inCardNum
protected int filterDelay
protected boolean testRunning
protected boolean testSuspended
protected byte[] outBytes
protected int curOutByte
protected int curOutBit
protected short curOutValue
protected int nOutBytes
protected int begOutByte
protected int endOutByte
protected byte[] inBytes
protected byte[] wrapBytes
protected int nInBytes
protected int begInByte
protected int endInByte
protected int numErrors
protected int numIterations
protected Timer outTimer
protected Timer wrapTimer
protected boolean waitingOnInput
protected boolean needInputTest
protected int count
int debugCount
ButtonGroup testGroup
JRadioButton outputButton
JRadioButton wrapButton
JTextField uaAddrField
JTextField outCardField
JTextField inCardField
JTextField obsDelayField
JTextField filterDelayField
JButton runButton
JButton stopButton
JButton continueButton
JLabel statusText1
JLabel statusText2
DiagnosticFrame curFrame
| Constructor Detail |
|---|
public DiagnosticFrame()
| Method Detail |
|---|
public void initComponents()
throws Exception
JmriJFrame
initComponents in class JmriJFrameExceptionpublic void runButtonActionPerformed(ActionEvent e)
protected boolean readSetupData()
public void continueButtonActionPerformed(ActionEvent e)
public void stopButtonActionPerformed(ActionEvent e)
protected boolean initializeOutputTest()
protected void runOutputTest()
protected void stopOutputTest()
protected boolean initializeWraparoundTest()
protected void runWraparoundTest()
protected void stopWraparoundTest()
SerialMessage createOutPacket()
public void message(SerialMessage m)
message in interface SerialListenerpublic void reply(SerialReply l)
reply in interface SerialListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerwindowClosing in class JmriJFrame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||