00001 package edu.ksu.cis.bandera.bui;
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 import java.util.*;
00036 import java.awt.*;
00037 import javax.swing.*;
00038 import edu.ksu.cis.bandera.dspin.*;
00039 public class DSpinOption extends JDialog implements java.awt.event.ActionListener, java.awt.event.FocusListener {
00040 private JPanel ivjBottomPanel = null;
00041 private JPanel ivjCorrectnessPanel = null;
00042 private JPanel ivjJDialogContentPane = null;
00043 private JLabel ivjJLabel2 = null;
00044 private JLabel ivjJLabel3 = null;
00045 private JPanel ivjLabelPanel = null;
00046 private JPanel ivjModePanel = null;
00047 private JButton ivjOkbutton = null;
00048 private JPanel ivjRunPanel = null;
00049 private JPanel ivjTrapPanel = null;
00050 private JLabel ivjJLabel1 = null;
00051 private JLabel ivjJLabel4 = null;
00052 public static DSpinOptions spinOptions = new DSpinOptions();
00053 private JCheckBox ivjAssertionsCheckBox = null;
00054 private JCheckBox ivjCompressionCheckBox = null;
00055 private JTextField ivjErrorsTextField = null;
00056 private JRadioButton ivjExhaustiveRadioButton = null;
00057 private JRadioButton ivjHashCompactRadioButton = null;
00058 private JRadioButton ivjLivenessRadioButton = null;
00059 private JCheckBox ivjNeverClaimCheckBox = null;
00060 private JCheckBox ivjPartialOrderCheckBox = null;
00061 private JRadioButton ivjSaftyRadioButton = null;
00062 private JCheckBox ivjShortestCheckBox = null;
00063 private JRadioButton ivjSupertraceRadioButton = null;
00064 IvjEventHandler ivjEventHandler = new IvjEventHandler();
00065 private JCheckBox ivjSaveTrailCheckBox = null;
00066 private JTextField ivjPhysicalTextField = null;
00067 private JTextField ivjDepthTextField = null;
00068 private JTextField ivjStateTextField = null;
00069 private JPanel ivjFillerPanel1 = null;
00070 private JPanel ivjFillerPanel2 = null;
00071 private JPanel ivjFillerPanel3 = null;
00072 private JPanel ivjFillerPanel4 = null;
00073
00074 class IvjEventHandler implements java.awt.event.ActionListener, java.awt.event.FocusListener {
00075 public void actionPerformed(java.awt.event.ActionEvent e) {
00076 if (e.getSource() == DSpinOption.this.getNeverClaimCheckBox())
00077 connEtoC1(e);
00078 if (e.getSource() == DSpinOption.this.getLivenessRadioButton())
00079 connEtoC2(e);
00080 if (e.getSource() == DSpinOption.this.getSaftyRadioButton())
00081 connEtoC3(e);
00082 if (e.getSource() == DSpinOption.this.getExhaustiveRadioButton())
00083 connEtoC4(e);
00084 if (e.getSource() == DSpinOption.this.getSupertraceRadioButton())
00085 connEtoC5(e);
00086 if (e.getSource() == DSpinOption.this.getHashCompactRadioButton())
00087 connEtoC6(e);
00088 if (e.getSource() == DSpinOption.this.getOkbutton())
00089 connEtoC7(e);
00090 if (e.getSource() == DSpinOption.this.getSaveTrailCheckBox())
00091 connEtoC8(e);
00092 if (e.getSource() == DSpinOption.this.getShortestCheckBox())
00093 connEtoC9(e);
00094 if (e.getSource() == DSpinOption.this.getPartialOrderCheckBox())
00095 connEtoC10(e);
00096 if (e.getSource() == DSpinOption.this.getCompressionCheckBox())
00097 connEtoC11(e);
00098 if (e.getSource() == DSpinOption.this.getAssertionsCheckBox())
00099 connEtoC16();
00100 };
00101 public void focusGained(java.awt.event.FocusEvent e) {};
00102 public void focusLost(java.awt.event.FocusEvent e) {
00103 if (e.getSource() == DSpinOption.this.getPhysicalTextField())
00104 connEtoC12(e);
00105 if (e.getSource() == DSpinOption.this.getStateTextField())
00106 connEtoC13(e);
00107 if (e.getSource() == DSpinOption.this.getDepthTextField())
00108 connEtoC14(e);
00109 if (e.getSource() == DSpinOption.this.getErrorsTextField())
00110 connEtoC15(e);
00111 };
00112 };
00113
00114
00115
00116 public DSpinOption() {
00117 super();
00118 initialize();
00119 }
00120
00121
00122
00123
00124 public DSpinOption(java.awt.Dialog owner) {
00125 super(owner);
00126 }
00127
00128
00129
00130
00131
00132 public DSpinOption(java.awt.Dialog owner, String title) {
00133 super(owner, title);
00134 }
00135
00136
00137
00138
00139
00140
00141 public DSpinOption(java.awt.Dialog owner, String title, boolean modal) {
00142 super(owner, title, modal);
00143 }
00144
00145
00146
00147
00148
00149 public DSpinOption(java.awt.Dialog owner, boolean modal) {
00150 super(owner, modal);
00151 }
00152
00153
00154
00155
00156 public DSpinOption(java.awt.Frame owner) {
00157 super(owner);
00158 }
00159
00160
00161
00162
00163
00164 public DSpinOption(java.awt.Frame owner, String title) {
00165 super(owner, title);
00166 }
00167
00168
00169
00170
00171
00172
00173 public DSpinOption(java.awt.Frame owner, String title, boolean modal) {
00174 super(owner, title, modal);
00175 }
00176
00177
00178
00179
00180
00181 public DSpinOption(java.awt.Frame owner, boolean modal) {
00182 super(owner, modal);
00183 }
00184
00185
00186
00187 public void actionPerformed(java.awt.event.ActionEvent e) {}
00188
00189
00190
00191 public void assertionsCheckBox_ActionEvents() {
00192 spinOptions.setAssertions(getAssertionsCheckBox().isSelected());
00193 }
00194
00195
00196
00197 public void compressionCheckBox_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
00198 spinOptions.setCompression(getCompressionCheckBox().isSelected());
00199
00200 }
00201
00202
00203
00204
00205
00206 private void connEtoC1(java.awt.event.ActionEvent arg1) {
00207 try {
00208
00209
00210 this.neverClaimCheckBox_ActionPerformed(arg1);
00211
00212
00213 } catch (java.lang.Throwable ivjExc) {
00214
00215
00216 handleException(ivjExc);
00217 }
00218 }
00219
00220
00221
00222
00223
00224 private void connEtoC10(java.awt.event.ActionEvent arg1) {
00225 try {
00226
00227
00228 this.partialOrderCheckBox_ActionPerformed(arg1);
00229
00230
00231 } catch (java.lang.Throwable ivjExc) {
00232
00233
00234 handleException(ivjExc);
00235 }
00236 }
00237
00238
00239
00240
00241
00242 private void connEtoC11(java.awt.event.ActionEvent arg1) {
00243 try {
00244
00245
00246 this.compressionCheckBox_ActionPerformed(arg1);
00247
00248
00249 } catch (java.lang.Throwable ivjExc) {
00250
00251
00252 handleException(ivjExc);
00253 }
00254 }
00255
00256
00257
00258
00259
00260 private void connEtoC12(java.awt.event.FocusEvent arg1) {
00261 try {
00262
00263
00264 this.physicalTextField_FocusLost(arg1);
00265
00266
00267 } catch (java.lang.Throwable ivjExc) {
00268
00269
00270 handleException(ivjExc);
00271 }
00272 }
00273
00274
00275
00276
00277
00278 private void connEtoC13(java.awt.event.FocusEvent arg1) {
00279 try {
00280
00281
00282 this.stateTextField_FocusLost(arg1);
00283
00284
00285 } catch (java.lang.Throwable ivjExc) {
00286
00287
00288 handleException(ivjExc);
00289 }
00290 }
00291
00292
00293
00294
00295
00296 private void connEtoC14(java.awt.event.FocusEvent arg1) {
00297 try {
00298
00299
00300 this.depthTextField_FocusLost(arg1);
00301
00302
00303 } catch (java.lang.Throwable ivjExc) {
00304
00305
00306 handleException(ivjExc);
00307 }
00308 }
00309
00310
00311
00312
00313
00314 private void connEtoC15(java.awt.event.FocusEvent arg1) {
00315 try {
00316
00317
00318 this.errorsTextField_FocusLost(arg1);
00319
00320
00321 } catch (java.lang.Throwable ivjExc) {
00322
00323
00324 handleException(ivjExc);
00325 }
00326 }
00327
00328
00329
00330
00331 private void connEtoC16() {
00332 try {
00333
00334
00335 this.assertionsCheckBox_ActionEvents();
00336
00337
00338 } catch (java.lang.Throwable ivjExc) {
00339
00340
00341 handleException(ivjExc);
00342 }
00343 }
00344
00345
00346
00347
00348
00349 private void connEtoC2(java.awt.event.ActionEvent arg1) {
00350 try {
00351
00352
00353 this.livenessRadioButton_ActionPerformed(arg1);
00354
00355
00356 } catch (java.lang.Throwable ivjExc) {
00357
00358
00359 handleException(ivjExc);
00360 }
00361 }
00362
00363
00364
00365
00366
00367 private void connEtoC3(java.awt.event.ActionEvent arg1) {
00368 try {
00369
00370
00371 this.saftyRadioButton_ActionPerformed(arg1);
00372
00373
00374 } catch (java.lang.Throwable ivjExc) {
00375
00376
00377 handleException(ivjExc);
00378 }
00379 }
00380
00381
00382
00383
00384
00385 private void connEtoC4(java.awt.event.ActionEvent arg1) {
00386 try {
00387
00388
00389 this.exhaustiveRadioButton_ActionPerformed(arg1);
00390
00391
00392 } catch (java.lang.Throwable ivjExc) {
00393
00394
00395 handleException(ivjExc);
00396 }
00397 }
00398
00399
00400
00401
00402
00403 private void connEtoC5(java.awt.event.ActionEvent arg1) {
00404 try {
00405
00406
00407 this.supertraceRadioButton_ActionPerformed(arg1);
00408
00409
00410 } catch (java.lang.Throwable ivjExc) {
00411
00412
00413 handleException(ivjExc);
00414 }
00415 }
00416
00417
00418
00419
00420
00421 private void connEtoC6(java.awt.event.ActionEvent arg1) {
00422 try {
00423
00424
00425 this.hashCompactRadioButton_ActionPerformed(arg1);
00426
00427
00428 } catch (java.lang.Throwable ivjExc) {
00429
00430
00431 handleException(ivjExc);
00432 }
00433 }
00434
00435
00436
00437
00438
00439 private void connEtoC7(java.awt.event.ActionEvent arg1) {
00440 try {
00441
00442
00443 this.okbutton_ActionPerformed(arg1);
00444
00445
00446 } catch (java.lang.Throwable ivjExc) {
00447
00448
00449 handleException(ivjExc);
00450 }
00451 }
00452
00453
00454
00455
00456
00457 private void connEtoC8(java.awt.event.ActionEvent arg1) {
00458 try {
00459
00460
00461 this.saverailCheckBox_ActionPerformed(arg1);
00462
00463
00464 } catch (java.lang.Throwable ivjExc) {
00465
00466
00467 handleException(ivjExc);
00468 }
00469 }
00470
00471
00472
00473
00474
00475 private void connEtoC9(java.awt.event.ActionEvent arg1) {
00476 try {
00477
00478
00479 this.shortestCheckBox_ActionPerformed(arg1);
00480
00481
00482 } catch (java.lang.Throwable ivjExc) {
00483
00484
00485 handleException(ivjExc);
00486 }
00487 }
00488
00489
00490
00491 public void depthTextField_FocusLost(java.awt.event.FocusEvent focusEvent) {
00492 try {
00493 spinOptions.setSearchDepth(Integer.parseInt(getDepthTextField().getText()));
00494 } catch (Exception e) {
00495 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
00496 getDepthTextField().setText("" + spinOptions.getSearchDepth());
00497 }
00498
00499 }
00500
00501
00502
00503 public void errorsTextField_FocusLost(java.awt.event.FocusEvent focusEvent) {
00504 try {
00505 spinOptions.setStopAtError(Integer.parseInt(getErrorsTextField().getText()));
00506 } catch (Exception e) {
00507 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
00508 getErrorsTextField().setText("" + spinOptions.getStopAtError());
00509 }
00510
00511 }
00512
00513
00514
00515 public void exhaustiveRadioButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
00516 spinOptions.setSearchMode(DSpinOptions.Exhaustive);
00517
00518 }
00519
00520
00521
00522 public void focusGained(java.awt.event.FocusEvent e) {}
00523
00524
00525
00526 public void focusLost(java.awt.event.FocusEvent e) {}
00527
00528
00529
00530
00531
00532 private javax.swing.JCheckBox getAssertionsCheckBox() {
00533 if (ivjAssertionsCheckBox == null) {
00534 try {
00535 ivjAssertionsCheckBox = new javax.swing.JCheckBox();
00536 ivjAssertionsCheckBox.setName("AssertionsCheckBox");
00537 ivjAssertionsCheckBox.setSelected(true);
00538 ivjAssertionsCheckBox.setText("Assertions");
00539 ivjAssertionsCheckBox.setBackground(new java.awt.Color(204,204,255));
00540
00541
00542 } catch (java.lang.Throwable ivjExc) {
00543
00544
00545 handleException(ivjExc);
00546 }
00547 }
00548 return ivjAssertionsCheckBox;
00549 }
00550
00551
00552
00553
00554
00555 private javax.swing.JPanel getBottomPanel() {
00556 if (ivjBottomPanel == null) {
00557 try {
00558 ivjBottomPanel = new javax.swing.JPanel();
00559 ivjBottomPanel.setName("BottomPanel");
00560 ivjBottomPanel.setBorder(new javax.swing.border.CompoundBorder());
00561 ivjBottomPanel.setLayout(new java.awt.GridBagLayout());
00562 ivjBottomPanel.setBackground(new java.awt.Color(204,204,255));
00563
00564 java.awt.GridBagConstraints constraintsCorrectnessPanel = new java.awt.GridBagConstraints();
00565 constraintsCorrectnessPanel.gridx = 0; constraintsCorrectnessPanel.gridy = 0;
00566 constraintsCorrectnessPanel.fill = java.awt.GridBagConstraints.BOTH;
00567 constraintsCorrectnessPanel.weightx = 1.0;
00568 constraintsCorrectnessPanel.weighty = 1.0;
00569 constraintsCorrectnessPanel.insets = new java.awt.Insets(10, 10, 0, 0);
00570 getBottomPanel().add(getCorrectnessPanel(), constraintsCorrectnessPanel);
00571
00572 java.awt.GridBagConstraints constraintsModePanel = new java.awt.GridBagConstraints();
00573 constraintsModePanel.gridx = 1; constraintsModePanel.gridy = 0;
00574 constraintsModePanel.fill = java.awt.GridBagConstraints.BOTH;
00575 constraintsModePanel.weightx = 1.0;
00576 constraintsModePanel.weighty = 1.0;
00577 constraintsModePanel.insets = new java.awt.Insets(10, 10, 0, 10);
00578 getBottomPanel().add(getModePanel(), constraintsModePanel);
00579
00580 java.awt.GridBagConstraints constraintsLabelPanel = new java.awt.GridBagConstraints();
00581 constraintsLabelPanel.gridx = 0; constraintsLabelPanel.gridy = 1;
00582 constraintsLabelPanel.gridwidth = 2;
00583 constraintsLabelPanel.fill = java.awt.GridBagConstraints.BOTH;
00584 constraintsLabelPanel.weightx = 1.0;
00585 constraintsLabelPanel.weighty = 1.0;
00586 constraintsLabelPanel.insets = new java.awt.Insets(10, 12, 0, 12);
00587 getBottomPanel().add(getLabelPanel(), constraintsLabelPanel);
00588
00589 java.awt.GridBagConstraints constraintsTrapPanel = new java.awt.GridBagConstraints();
00590 constraintsTrapPanel.gridx = 0; constraintsTrapPanel.gridy = 2;
00591 constraintsTrapPanel.fill = java.awt.GridBagConstraints.BOTH;
00592 constraintsTrapPanel.weightx = 1.0;
00593 constraintsTrapPanel.weighty = 1.0;
00594 constraintsTrapPanel.insets = new java.awt.Insets(10, 10, 10, 0);
00595 getBottomPanel().add(getTrapPanel(), constraintsTrapPanel);
00596
00597 java.awt.GridBagConstraints constraintsRunPanel = new java.awt.GridBagConstraints();
00598 constraintsRunPanel.gridx = 1; constraintsRunPanel.gridy = 2;
00599 constraintsRunPanel.fill = java.awt.GridBagConstraints.BOTH;
00600 constraintsRunPanel.weightx = 1.0;
00601 constraintsRunPanel.weighty = 1.0;
00602 constraintsRunPanel.insets = new java.awt.Insets(10, 10, 10, 10);
00603 getBottomPanel().add(getRunPanel(), constraintsRunPanel);
00604
00605
00606 } catch (java.lang.Throwable ivjExc) {
00607
00608
00609 handleException(ivjExc);
00610 }
00611 }
00612 return ivjBottomPanel;
00613 }
00614
00615
00616
00617
00618 private static void getBuilderData() {
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651
00652
00653
00654
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668
00669
00670
00671
00672
00673
00674
00675
00676
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698
00699
00700 }
00701
00702
00703
00704
00705
00706 private javax.swing.JCheckBox getCompressionCheckBox() {
00707 if (ivjCompressionCheckBox == null) {
00708 try {
00709 ivjCompressionCheckBox = new javax.swing.JCheckBox();
00710 ivjCompressionCheckBox.setName("CompressionCheckBox");
00711 ivjCompressionCheckBox.setText("Use Compression");
00712 ivjCompressionCheckBox.setBackground(new java.awt.Color(204,204,255));
00713
00714
00715 } catch (java.lang.Throwable ivjExc) {
00716
00717
00718 handleException(ivjExc);
00719 }
00720 }
00721 return ivjCompressionCheckBox;
00722 }
00723
00724
00725
00726
00727
00728 private javax.swing.JPanel getCorrectnessPanel() {
00729 if (ivjCorrectnessPanel == null) {
00730 try {
00731 ivjCorrectnessPanel = new javax.swing.JPanel();
00732 ivjCorrectnessPanel.setName("CorrectnessPanel");
00733 ivjCorrectnessPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Correctness Properties"));
00734 ivjCorrectnessPanel.setLayout(new java.awt.GridBagLayout());
00735 ivjCorrectnessPanel.setBackground(new java.awt.Color(204,204,255));
00736
00737 java.awt.GridBagConstraints constraintsSaftyRadioButton = new java.awt.GridBagConstraints();
00738 constraintsSaftyRadioButton.gridx = 0; constraintsSaftyRadioButton.gridy = 0;
00739 constraintsSaftyRadioButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
00740 constraintsSaftyRadioButton.anchor = java.awt.GridBagConstraints.WEST;
00741 constraintsSaftyRadioButton.weightx = 1.0;
00742 constraintsSaftyRadioButton.insets = new java.awt.Insets(10, 10, 0, 10);
00743 getCorrectnessPanel().add(getSaftyRadioButton(), constraintsSaftyRadioButton);
00744
00745 java.awt.GridBagConstraints constraintsAssertionsCheckBox = new java.awt.GridBagConstraints();
00746 constraintsAssertionsCheckBox.gridx = 0; constraintsAssertionsCheckBox.gridy = 1;
00747 constraintsAssertionsCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
00748 constraintsAssertionsCheckBox.anchor = java.awt.GridBagConstraints.WEST;
00749 constraintsAssertionsCheckBox.weightx = 1.0;
00750 constraintsAssertionsCheckBox.insets = new java.awt.Insets(10, 28, 0, 10);
00751 getCorrectnessPanel().add(getAssertionsCheckBox(), constraintsAssertionsCheckBox);
00752
00753 java.awt.GridBagConstraints constraintsLivenessRadioButton = new java.awt.GridBagConstraints();
00754 constraintsLivenessRadioButton.gridx = 0; constraintsLivenessRadioButton.gridy = 2;
00755 constraintsLivenessRadioButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
00756 constraintsLivenessRadioButton.anchor = java.awt.GridBagConstraints.WEST;
00757 constraintsLivenessRadioButton.weightx = 1.0;
00758 constraintsLivenessRadioButton.insets = new java.awt.Insets(10, 10, 0, 10);
00759 getCorrectnessPanel().add(getLivenessRadioButton(), constraintsLivenessRadioButton);
00760
00761 java.awt.GridBagConstraints constraintsNeverClaimCheckBox = new java.awt.GridBagConstraints();
00762 constraintsNeverClaimCheckBox.gridx = 0; constraintsNeverClaimCheckBox.gridy = 3;
00763 constraintsNeverClaimCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
00764 constraintsNeverClaimCheckBox.anchor = java.awt.GridBagConstraints.WEST;
00765 constraintsNeverClaimCheckBox.weightx = 1.0;
00766 constraintsNeverClaimCheckBox.insets = new java.awt.Insets(10, 28, 10, 10);
00767 getCorrectnessPanel().add(getNeverClaimCheckBox(), constraintsNeverClaimCheckBox);
00768
00769 java.awt.GridBagConstraints constraintsFillerPanel1 = new java.awt.GridBagConstraints();
00770 constraintsFillerPanel1.gridx = 0; constraintsFillerPanel1.gridy = 4;
00771 constraintsFillerPanel1.fill = java.awt.GridBagConstraints.BOTH;
00772 constraintsFillerPanel1.weightx = 1.0;
00773 constraintsFillerPanel1.weighty = 1.0;
00774 constraintsFillerPanel1.insets = new java.awt.Insets(4, 4, 4, 4);
00775 getCorrectnessPanel().add(getFillerPanel1(), constraintsFillerPanel1);
00776
00777 ((javax.swing.border.TitledBorder) ivjCorrectnessPanel.getBorder()).setTitleColor(Color.black);
00778
00779 } catch (java.lang.Throwable ivjExc) {
00780
00781
00782 handleException(ivjExc);
00783 }
00784 }
00785 return ivjCorrectnessPanel;
00786 }
00787
00788
00789
00790
00791
00792 private javax.swing.JTextField getDepthTextField() {
00793 if (ivjDepthTextField == null) {
00794 try {
00795 ivjDepthTextField = new javax.swing.JTextField();
00796 ivjDepthTextField.setName("DepthTextField");
00797 ivjDepthTextField.setBorder(BorderFactory.createLoweredBevelBorder());
00798 ivjDepthTextField.setText("100000");
00799 ivjDepthTextField.setSelectionColor(java.awt.Color.black);
00800
00801
00802 } catch (java.lang.Throwable ivjExc) {
00803
00804
00805 handleException(ivjExc);
00806 }
00807 }
00808 return ivjDepthTextField;
00809 }
00810
00811
00812
00813
00814
00815 private javax.swing.JTextField getErrorsTextField() {
00816 if (ivjErrorsTextField == null) {
00817 try {
00818 ivjErrorsTextField = new javax.swing.JTextField();
00819 ivjErrorsTextField.setName("ErrorsTextField");
00820 ivjErrorsTextField.setBorder(BorderFactory.createLoweredBevelBorder());
00821 ivjErrorsTextField.setText("1");
00822
00823
00824 } catch (java.lang.Throwable ivjExc) {
00825
00826
00827 handleException(ivjExc);
00828 }
00829 }
00830 return ivjErrorsTextField;
00831 }
00832
00833
00834
00835
00836
00837 private javax.swing.JRadioButton getExhaustiveRadioButton() {
00838 if (ivjExhaustiveRadioButton == null) {
00839 try {
00840 ivjExhaustiveRadioButton = new javax.swing.JRadioButton();
00841 ivjExhaustiveRadioButton.setName("ExhaustiveRadioButton");
00842 ivjExhaustiveRadioButton.setSelected(true);
00843 ivjExhaustiveRadioButton.setText("Exhaustive");
00844 ivjExhaustiveRadioButton.setBackground(new java.awt.Color(204,204,255));
00845
00846
00847 } catch (java.lang.Throwable ivjExc) {
00848
00849
00850 handleException(ivjExc);
00851 }
00852 }
00853 return ivjExhaustiveRadioButton;
00854 }
00855
00856
00857
00858
00859
00860 private javax.swing.JPanel getFillerPanel1() {
00861 if (ivjFillerPanel1 == null) {
00862 try {
00863 ivjFillerPanel1 = new javax.swing.JPanel();
00864 ivjFillerPanel1.setName("FillerPanel1");
00865 ivjFillerPanel1.setLayout(null);
00866 ivjFillerPanel1.setBackground(new java.awt.Color(204,204,255));
00867
00868
00869 } catch (java.lang.Throwable ivjExc) {
00870
00871
00872 handleException(ivjExc);
00873 }
00874 }
00875 return ivjFillerPanel1;
00876 }
00877
00878
00879
00880
00881
00882 private javax.swing.JPanel getFillerPanel2() {
00883 if (ivjFillerPanel2 == null) {
00884 try {
00885 ivjFillerPanel2 = new javax.swing.JPanel();
00886 ivjFillerPanel2.setName("FillerPanel2");
00887 ivjFillerPanel2.setLayout(null);
00888 ivjFillerPanel2.setBackground(new java.awt.Color(204,204,255));
00889
00890
00891 } catch (java.lang.Throwable ivjExc) {
00892
00893
00894 handleException(ivjExc);
00895 }
00896 }
00897 return ivjFillerPanel2;
00898 }
00899
00900
00901
00902
00903
00904 private javax.swing.JPanel getFillerPanel3() {
00905 if (ivjFillerPanel3 == null) {
00906 try {
00907 ivjFillerPanel3 = new javax.swing.JPanel();
00908 ivjFillerPanel3.setName("FillerPanel3");
00909 ivjFillerPanel3.setLayout(null);
00910 ivjFillerPanel3.setBackground(new java.awt.Color(204,204,255));
00911
00912
00913 } catch (java.lang.Throwable ivjExc) {
00914
00915
00916 handleException(ivjExc);
00917 }
00918 }
00919 return ivjFillerPanel3;
00920 }
00921
00922
00923
00924
00925
00926 private javax.swing.JPanel getFillerPanel4() {
00927 if (ivjFillerPanel4 == null) {
00928 try {
00929 ivjFillerPanel4 = new javax.swing.JPanel();
00930 ivjFillerPanel4.setName("FillerPanel4");
00931 ivjFillerPanel4.setLayout(null);
00932 ivjFillerPanel4.setBackground(new java.awt.Color(204,204,255));
00933
00934
00935 } catch (java.lang.Throwable ivjExc) {
00936
00937
00938 handleException(ivjExc);
00939 }
00940 }
00941 return ivjFillerPanel4;
00942 }
00943
00944
00945
00946
00947
00948 private javax.swing.JRadioButton getHashCompactRadioButton() {
00949 if (ivjHashCompactRadioButton == null) {
00950 try {
00951 ivjHashCompactRadioButton = new javax.swing.JRadioButton();
00952 ivjHashCompactRadioButton.setName("HashCompactRadioButton");
00953 ivjHashCompactRadioButton.setText("HashCompact");
00954 ivjHashCompactRadioButton.setBackground(new java.awt.Color(204,204,255));
00955
00956
00957 } catch (java.lang.Throwable ivjExc) {
00958
00959
00960 handleException(ivjExc);
00961 }
00962 }
00963 return ivjHashCompactRadioButton;
00964 }
00965
00966
00967
00968
00969
00970 private javax.swing.JPanel getJDialogContentPane() {
00971 if (ivjJDialogContentPane == null) {
00972 try {
00973 ivjJDialogContentPane = new javax.swing.JPanel();
00974 ivjJDialogContentPane.setName("JDialogContentPane");
00975 ivjJDialogContentPane.setBorder(new javax.swing.border.EtchedBorder());
00976 ivjJDialogContentPane.setLayout(new java.awt.BorderLayout());
00977 ivjJDialogContentPane.setBackground(new java.awt.Color(204,204,255));
00978 ivjJDialogContentPane.setForeground(java.awt.Color.gray);
00979 getJDialogContentPane().add(getOkbutton(), "South");
00980 getJDialogContentPane().add(getBottomPanel(), "Center");
00981
00982
00983 } catch (java.lang.Throwable ivjExc) {
00984
00985
00986 handleException(ivjExc);
00987 }
00988 }
00989 return ivjJDialogContentPane;
00990 }
00991
00992
00993
00994
00995
00996 private javax.swing.JLabel getJLabel1() {
00997 if (ivjJLabel1 == null) {
00998 try {
00999 ivjJLabel1 = new javax.swing.JLabel();
01000 ivjJLabel1.setName("JLabel1");
01001 ivjJLabel1.setText("Physical Memory Available (Mbytes) Approx:");
01002 ivjJLabel1.setForeground(java.awt.Color.black);
01003
01004
01005 } catch (java.lang.Throwable ivjExc) {
01006
01007
01008 handleException(ivjExc);
01009 }
01010 }
01011 return ivjJLabel1;
01012 }
01013
01014
01015
01016
01017
01018 private javax.swing.JLabel getJLabel2() {
01019 if (ivjJLabel2 == null) {
01020 try {
01021 ivjJLabel2 = new javax.swing.JLabel();
01022 ivjJLabel2.setName("JLabel2");
01023 ivjJLabel2.setText("Estimated State Space Size (States x 10^3):");
01024 ivjJLabel2.setForeground(java.awt.Color.black);
01025
01026
01027 } catch (java.lang.Throwable ivjExc) {
01028
01029
01030 handleException(ivjExc);
01031 }
01032 }
01033 return ivjJLabel2;
01034 }
01035
01036
01037
01038
01039
01040 private javax.swing.JLabel getJLabel3() {
01041 if (ivjJLabel3 == null) {
01042 try {
01043 ivjJLabel3 = new javax.swing.JLabel();
01044 ivjJLabel3.setName("JLabel3");
01045 ivjJLabel3.setText("Maximum Search Depth (Steps):");
01046 ivjJLabel3.setForeground(java.awt.Color.black);
01047
01048
01049 } catch (java.lang.Throwable ivjExc) {
01050
01051
01052 handleException(ivjExc);
01053 }
01054 }
01055 return ivjJLabel3;
01056 }
01057
01058
01059
01060
01061
01062 private javax.swing.JLabel getJLabel4() {
01063 if (ivjJLabel4 == null) {
01064 try {
01065 ivjJLabel4 = new javax.swing.JLabel();
01066 ivjJLabel4.setName("JLabel4");
01067 ivjJLabel4.setText("Stop at error #:");
01068 ivjJLabel4.setForeground(java.awt.Color.black);
01069
01070
01071 } catch (java.lang.Throwable ivjExc) {
01072
01073
01074 handleException(ivjExc);
01075 }
01076 }
01077 return ivjJLabel4;
01078 }
01079
01080
01081
01082
01083
01084 private javax.swing.JPanel getLabelPanel() {
01085 if (ivjLabelPanel == null) {
01086 try {
01087 ivjLabelPanel = new javax.swing.JPanel();
01088 ivjLabelPanel.setName("LabelPanel");
01089 ivjLabelPanel.setBorder(new javax.swing.border.EtchedBorder());
01090 ivjLabelPanel.setLayout(new java.awt.GridBagLayout());
01091 ivjLabelPanel.setBackground(new java.awt.Color(204,204,255));
01092
01093 java.awt.GridBagConstraints constraintsJLabel1 = new java.awt.GridBagConstraints();
01094 constraintsJLabel1.gridx = 0; constraintsJLabel1.gridy = 0;
01095 constraintsJLabel1.fill = java.awt.GridBagConstraints.HORIZONTAL;
01096 constraintsJLabel1.anchor = java.awt.GridBagConstraints.WEST;
01097 constraintsJLabel1.weighty = 1.0;
01098 constraintsJLabel1.insets = new java.awt.Insets(10, 10, 0, 10);
01099 getLabelPanel().add(getJLabel1(), constraintsJLabel1);
01100
01101 java.awt.GridBagConstraints constraintsJLabel2 = new java.awt.GridBagConstraints();
01102 constraintsJLabel2.gridx = 0; constraintsJLabel2.gridy = 1;
01103 constraintsJLabel2.fill = java.awt.GridBagConstraints.HORIZONTAL;
01104 constraintsJLabel2.anchor = java.awt.GridBagConstraints.WEST;
01105 constraintsJLabel2.weighty = 1.0;
01106 constraintsJLabel2.insets = new java.awt.Insets(10, 10, 0, 10);
01107 getLabelPanel().add(getJLabel2(), constraintsJLabel2);
01108
01109 java.awt.GridBagConstraints constraintsJLabel3 = new java.awt.GridBagConstraints();
01110 constraintsJLabel3.gridx = 0; constraintsJLabel3.gridy = 2;
01111 constraintsJLabel3.fill = java.awt.GridBagConstraints.HORIZONTAL;
01112 constraintsJLabel3.anchor = java.awt.GridBagConstraints.WEST;
01113 constraintsJLabel3.weighty = 1.0;
01114 constraintsJLabel3.insets = new java.awt.Insets(10, 10, 10, 10);
01115 getLabelPanel().add(getJLabel3(), constraintsJLabel3);
01116
01117 java.awt.GridBagConstraints constraintsPhysicalTextField = new java.awt.GridBagConstraints();
01118 constraintsPhysicalTextField.gridx = 1; constraintsPhysicalTextField.gridy = 0;
01119 constraintsPhysicalTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01120 constraintsPhysicalTextField.weightx = 1.0;
01121 constraintsPhysicalTextField.weighty = 1.0;
01122 constraintsPhysicalTextField.insets = new java.awt.Insets(10, 10, 0, 10);
01123 getLabelPanel().add(getPhysicalTextField(), constraintsPhysicalTextField);
01124
01125 java.awt.GridBagConstraints constraintsStateTextField = new java.awt.GridBagConstraints();
01126 constraintsStateTextField.gridx = 1; constraintsStateTextField.gridy = 1;
01127 constraintsStateTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01128 constraintsStateTextField.weightx = 1.0;
01129 constraintsStateTextField.weighty = 1.0;
01130 constraintsStateTextField.insets = new java.awt.Insets(10, 10, 0, 10);
01131 getLabelPanel().add(getStateTextField(), constraintsStateTextField);
01132
01133 java.awt.GridBagConstraints constraintsDepthTextField = new java.awt.GridBagConstraints();
01134 constraintsDepthTextField.gridx = 1; constraintsDepthTextField.gridy = 2;
01135 constraintsDepthTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01136 constraintsDepthTextField.weightx = 1.0;
01137 constraintsDepthTextField.weighty = 1.0;
01138 constraintsDepthTextField.insets = new java.awt.Insets(10, 10, 10, 10);
01139 getLabelPanel().add(getDepthTextField(), constraintsDepthTextField);
01140
01141
01142 } catch (java.lang.Throwable ivjExc) {
01143
01144
01145 handleException(ivjExc);
01146 }
01147 }
01148 return ivjLabelPanel;
01149 }
01150
01151
01152
01153
01154
01155 private javax.swing.JRadioButton getLivenessRadioButton() {
01156 if (ivjLivenessRadioButton == null) {
01157 try {
01158 ivjLivenessRadioButton = new javax.swing.JRadioButton();
01159 ivjLivenessRadioButton.setName("LivenessRadioButton");
01160 ivjLivenessRadioButton.setSelected(true);
01161 ivjLivenessRadioButton.setText("Liveness (Acceptance Cycles)");
01162 ivjLivenessRadioButton.setBackground(new java.awt.Color(204,204,255));
01163
01164
01165 } catch (java.lang.Throwable ivjExc) {
01166
01167
01168 handleException(ivjExc);
01169 }
01170 }
01171 return ivjLivenessRadioButton;
01172 }
01173
01174
01175
01176
01177
01178 private javax.swing.JPanel getModePanel() {
01179 if (ivjModePanel == null) {
01180 try {
01181 ivjModePanel = new javax.swing.JPanel();
01182 ivjModePanel.setName("ModePanel");
01183 ivjModePanel.setOpaque(true);
01184 ivjModePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Search Mode"));
01185 ivjModePanel.setLayout(new java.awt.GridBagLayout());
01186 ivjModePanel.setBackground(new java.awt.Color(204,204,255));
01187
01188 java.awt.GridBagConstraints constraintsExhaustiveRadioButton = new java.awt.GridBagConstraints();
01189 constraintsExhaustiveRadioButton.gridx = 0; constraintsExhaustiveRadioButton.gridy = 0;
01190 constraintsExhaustiveRadioButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01191 constraintsExhaustiveRadioButton.anchor = java.awt.GridBagConstraints.WEST;
01192 constraintsExhaustiveRadioButton.weightx = 1.0;
01193 constraintsExhaustiveRadioButton.insets = new java.awt.Insets(10, 10, 0, 10);
01194 getModePanel().add(getExhaustiveRadioButton(), constraintsExhaustiveRadioButton);
01195
01196 java.awt.GridBagConstraints constraintsSupertraceRadioButton = new java.awt.GridBagConstraints();
01197 constraintsSupertraceRadioButton.gridx = 0; constraintsSupertraceRadioButton.gridy = 2;
01198 constraintsSupertraceRadioButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01199 constraintsSupertraceRadioButton.anchor = java.awt.GridBagConstraints.WEST;
01200 constraintsSupertraceRadioButton.weightx = 1.0;
01201 constraintsSupertraceRadioButton.insets = new java.awt.Insets(10, 10, 0, 10);
01202 getModePanel().add(getSupertraceRadioButton(), constraintsSupertraceRadioButton);
01203
01204 java.awt.GridBagConstraints constraintsHashCompactRadioButton = new java.awt.GridBagConstraints();
01205 constraintsHashCompactRadioButton.gridx = 0; constraintsHashCompactRadioButton.gridy = 3;
01206 constraintsHashCompactRadioButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01207 constraintsHashCompactRadioButton.anchor = java.awt.GridBagConstraints.WEST;
01208 constraintsHashCompactRadioButton.weightx = 1.0;
01209 constraintsHashCompactRadioButton.insets = new java.awt.Insets(10, 10, 10, 10);
01210 getModePanel().add(getHashCompactRadioButton(), constraintsHashCompactRadioButton);
01211
01212 java.awt.GridBagConstraints constraintsFillerPanel2 = new java.awt.GridBagConstraints();
01213 constraintsFillerPanel2.gridx = 0; constraintsFillerPanel2.gridy = 4;
01214 constraintsFillerPanel2.fill = java.awt.GridBagConstraints.BOTH;
01215 constraintsFillerPanel2.weightx = 1.0;
01216 constraintsFillerPanel2.weighty = 1.0;
01217 constraintsFillerPanel2.insets = new java.awt.Insets(4, 4, 4, 4);
01218 getModePanel().add(getFillerPanel2(), constraintsFillerPanel2);
01219
01220 ((javax.swing.border.TitledBorder) ivjModePanel.getBorder()).setTitleColor(Color.black);
01221
01222 } catch (java.lang.Throwable ivjExc) {
01223
01224
01225 handleException(ivjExc);
01226 }
01227 }
01228 return ivjModePanel;
01229 }
01230
01231
01232
01233
01234
01235 private javax.swing.JCheckBox getNeverClaimCheckBox() {
01236 if (ivjNeverClaimCheckBox == null) {
01237 try {
01238 ivjNeverClaimCheckBox = new javax.swing.JCheckBox();
01239 ivjNeverClaimCheckBox.setName("NeverClaimCheckBox");
01240 ivjNeverClaimCheckBox.setSelected(true);
01241 ivjNeverClaimCheckBox.setText("Apply Never Claim");
01242 ivjNeverClaimCheckBox.setBackground(new java.awt.Color(204,204,255));
01243
01244
01245 } catch (java.lang.Throwable ivjExc) {
01246
01247
01248 handleException(ivjExc);
01249 }
01250 }
01251 return ivjNeverClaimCheckBox;
01252 }
01253
01254
01255
01256
01257
01258 private javax.swing.JButton getOkbutton() {
01259 if (ivjOkbutton == null) {
01260 try {
01261 ivjOkbutton = new javax.swing.JButton();
01262 ivjOkbutton.setName("Okbutton");
01263 ivjOkbutton.setBorder(new javax.swing.border.EtchedBorder());
01264 ivjOkbutton.setText("OK");
01265 ivjOkbutton.setBackground(new java.awt.Color(204,204,255));
01266
01267
01268 } catch (java.lang.Throwable ivjExc) {
01269
01270
01271 handleException(ivjExc);
01272 }
01273 }
01274 return ivjOkbutton;
01275 }
01276
01277
01278
01279
01280
01281 private javax.swing.JCheckBox getPartialOrderCheckBox() {
01282 if (ivjPartialOrderCheckBox == null) {
01283 try {
01284 ivjPartialOrderCheckBox = new javax.swing.JCheckBox();
01285 ivjPartialOrderCheckBox.setName("PartialOrderCheckBox");
01286 ivjPartialOrderCheckBox.setText("Use Partial Order Reduction");
01287 ivjPartialOrderCheckBox.setBackground(new java.awt.Color(204,204,255));
01288
01289
01290 } catch (java.lang.Throwable ivjExc) {
01291
01292
01293 handleException(ivjExc);
01294 }
01295 }
01296 return ivjPartialOrderCheckBox;
01297 }
01298
01299
01300
01301
01302
01303 private javax.swing.JTextField getPhysicalTextField() {
01304 if (ivjPhysicalTextField == null) {
01305 try {
01306 ivjPhysicalTextField = new javax.swing.JTextField();
01307 ivjPhysicalTextField.setName("PhysicalTextField");
01308 ivjPhysicalTextField.setBorder(BorderFactory.createLoweredBevelBorder());
01309 ivjPhysicalTextField.setText("128");
01310 ivjPhysicalTextField.setSelectionColor(java.awt.Color.black);
01311
01312
01313 } catch (java.lang.Throwable ivjExc) {
01314
01315
01316 handleException(ivjExc);
01317 }
01318 }
01319 return ivjPhysicalTextField;
01320 }
01321
01322
01323
01324
01325
01326 private javax.swing.JPanel getRunPanel() {
01327 if (ivjRunPanel == null) {
01328 try {
01329 ivjRunPanel = new javax.swing.JPanel();
01330 ivjRunPanel.setName("RunPanel");
01331 ivjRunPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),"Type of Run"));
01332 ivjRunPanel.setLayout(new java.awt.GridBagLayout());
01333 ivjRunPanel.setBackground(new java.awt.Color(204,204,255));
01334
01335 java.awt.GridBagConstraints constraintsPartialOrderCheckBox = new java.awt.GridBagConstraints();
01336 constraintsPartialOrderCheckBox.gridx = 0; constraintsPartialOrderCheckBox.gridy = 0;
01337 constraintsPartialOrderCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01338 constraintsPartialOrderCheckBox.anchor = java.awt.GridBagConstraints.WEST;
01339 constraintsPartialOrderCheckBox.weightx = 1.0;
01340 constraintsPartialOrderCheckBox.insets = new java.awt.Insets(10, 10, 0, 10);
01341 getRunPanel().add(getPartialOrderCheckBox(), constraintsPartialOrderCheckBox);
01342
01343 java.awt.GridBagConstraints constraintsCompressionCheckBox = new java.awt.GridBagConstraints();
01344 constraintsCompressionCheckBox.gridx = 0; constraintsCompressionCheckBox.gridy = 1;
01345 constraintsCompressionCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01346 constraintsCompressionCheckBox.anchor = java.awt.GridBagConstraints.WEST;
01347 constraintsCompressionCheckBox.weightx = 1.0;
01348 constraintsCompressionCheckBox.insets = new java.awt.Insets(10, 10, 10, 10);
01349 getRunPanel().add(getCompressionCheckBox(), constraintsCompressionCheckBox);
01350
01351 java.awt.GridBagConstraints constraintsFillerPanel4 = new java.awt.GridBagConstraints();
01352 constraintsFillerPanel4.gridx = 0; constraintsFillerPanel4.gridy = 2;
01353 constraintsFillerPanel4.fill = java.awt.GridBagConstraints.BOTH;
01354 constraintsFillerPanel4.weightx = 1.0;
01355 constraintsFillerPanel4.weighty = 1.0;
01356 constraintsFillerPanel4.insets = new java.awt.Insets(4, 4, 4, 4);
01357 getRunPanel().add(getFillerPanel4(), constraintsFillerPanel4);
01358
01359 ((javax.swing.border.TitledBorder) ivjRunPanel.getBorder()).setTitleColor(Color.black);
01360
01361 } catch (java.lang.Throwable ivjExc) {
01362
01363
01364 handleException(ivjExc);
01365 }
01366 }
01367 return ivjRunPanel;
01368 }
01369
01370
01371
01372
01373
01374 private javax.swing.JRadioButton getSaftyRadioButton() {
01375 if (ivjSaftyRadioButton == null) {
01376 try {
01377 ivjSaftyRadioButton = new javax.swing.JRadioButton();
01378 ivjSaftyRadioButton.setName("SaftyRadioButton");
01379 ivjSaftyRadioButton.setText("Safety (State Properties)");
01380 ivjSaftyRadioButton.setBackground(new java.awt.Color(204,204,255));
01381
01382
01383 } catch (java.lang.Throwable ivjExc) {
01384
01385
01386 handleException(ivjExc);
01387 }
01388 }
01389 return ivjSaftyRadioButton;
01390 }
01391
01392
01393
01394
01395
01396 private javax.swing.JCheckBox getSaveTrailCheckBox() {
01397 if (ivjSaveTrailCheckBox == null) {
01398 try {
01399 ivjSaveTrailCheckBox = new javax.swing.JCheckBox();
01400 ivjSaveTrailCheckBox.setName("SaveTrailCheckBox");
01401 ivjSaveTrailCheckBox.setSelected(true);
01402 ivjSaveTrailCheckBox.setText("Save All Errors Trails");
01403 ivjSaveTrailCheckBox.setBackground(new java.awt.Color(204,204,255));
01404
01405
01406 } catch (java.lang.Throwable ivjExc) {
01407
01408
01409 handleException(ivjExc);
01410 }
01411 }
01412 return ivjSaveTrailCheckBox;
01413 }
01414
01415
01416
01417
01418
01419 private javax.swing.JCheckBox getShortestCheckBox() {
01420 if (ivjShortestCheckBox == null) {
01421 try {
01422 ivjShortestCheckBox = new javax.swing.JCheckBox();
01423 ivjShortestCheckBox.setName("ShortestCheckBox");
01424 ivjShortestCheckBox.setText("Find Shortest Trail (Costly!)");
01425 ivjShortestCheckBox.setBackground(new java.awt.Color(204,204,255));
01426
01427
01428 } catch (java.lang.Throwable ivjExc) {
01429
01430
01431 handleException(ivjExc);
01432 }
01433 }
01434 return ivjShortestCheckBox;
01435 }
01436
01437
01438
01439
01440
01441 private javax.swing.JTextField getStateTextField() {
01442 if (ivjStateTextField == null) {
01443 try {
01444 ivjStateTextField = new javax.swing.JTextField();
01445 ivjStateTextField.setName("StateTextField");
01446 ivjStateTextField.setBorder(BorderFactory.createLoweredBevelBorder());
01447 ivjStateTextField.setText("500");
01448 ivjStateTextField.setSelectionColor(java.awt.Color.black);
01449
01450
01451 } catch (java.lang.Throwable ivjExc) {
01452
01453
01454 handleException(ivjExc);
01455 }
01456 }
01457 return ivjStateTextField;
01458 }
01459
01460
01461
01462
01463
01464 private javax.swing.JRadioButton getSupertraceRadioButton() {
01465 if (ivjSupertraceRadioButton == null) {
01466 try {
01467 ivjSupertraceRadioButton = new javax.swing.JRadioButton();
01468 ivjSupertraceRadioButton.setName("SupertraceRadioButton");
01469 ivjSupertraceRadioButton.setText("SuperTrace/BitState");
01470 ivjSupertraceRadioButton.setBackground(new java.awt.Color(204,204,255));
01471
01472
01473 } catch (java.lang.Throwable ivjExc) {
01474
01475
01476 handleException(ivjExc);
01477 }
01478 }
01479 return ivjSupertraceRadioButton;
01480 }
01481
01482
01483
01484
01485
01486 private javax.swing.JPanel getTrapPanel() {
01487 if (ivjTrapPanel == null) {
01488 try {
01489 ivjTrapPanel = new javax.swing.JPanel();
01490 ivjTrapPanel.setName("TrapPanel");
01491 ivjTrapPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Error Trapping"));
01492 ivjTrapPanel.setLayout(new java.awt.GridBagLayout());
01493 ivjTrapPanel.setBackground(new java.awt.Color(204,204,255));
01494
01495 java.awt.GridBagConstraints constraintsJLabel4 = new java.awt.GridBagConstraints();
01496 constraintsJLabel4.gridx = 0; constraintsJLabel4.gridy = 0;
01497 constraintsJLabel4.fill = java.awt.GridBagConstraints.HORIZONTAL;
01498 constraintsJLabel4.insets = new java.awt.Insets(10, 10, 10, 10);
01499 getTrapPanel().add(getJLabel4(), constraintsJLabel4);
01500
01501 java.awt.GridBagConstraints constraintsSaveTrailCheckBox = new java.awt.GridBagConstraints();
01502 constraintsSaveTrailCheckBox.gridx = 0; constraintsSaveTrailCheckBox.gridy = 1;
01503 constraintsSaveTrailCheckBox.gridwidth = 3;
01504 constraintsSaveTrailCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01505 constraintsSaveTrailCheckBox.anchor = java.awt.GridBagConstraints.WEST;
01506 constraintsSaveTrailCheckBox.insets = new java.awt.Insets(10, 10, 0, 10);
01507 getTrapPanel().add(getSaveTrailCheckBox(), constraintsSaveTrailCheckBox);
01508
01509 java.awt.GridBagConstraints constraintsShortestCheckBox = new java.awt.GridBagConstraints();
01510 constraintsShortestCheckBox.gridx = 0; constraintsShortestCheckBox.gridy = 2;
01511 constraintsShortestCheckBox.gridwidth = 3;
01512 constraintsShortestCheckBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01513 constraintsShortestCheckBox.anchor = java.awt.GridBagConstraints.WEST;
01514 constraintsShortestCheckBox.insets = new java.awt.Insets(10, 10, 10, 10);
01515 getTrapPanel().add(getShortestCheckBox(), constraintsShortestCheckBox);
01516
01517 java.awt.GridBagConstraints constraintsErrorsTextField = new java.awt.GridBagConstraints();
01518 constraintsErrorsTextField.gridx = 1; constraintsErrorsTextField.gridy = 0;
01519 constraintsErrorsTextField.gridwidth = 2;
01520 constraintsErrorsTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01521 constraintsErrorsTextField.weightx = 1.0;
01522 constraintsErrorsTextField.insets = new java.awt.Insets(10, 10, 10, 10);
01523 getTrapPanel().add(getErrorsTextField(), constraintsErrorsTextField);
01524
01525 java.awt.GridBagConstraints constraintsFillerPanel3 = new java.awt.GridBagConstraints();
01526 constraintsFillerPanel3.gridx = 0; constraintsFillerPanel3.gridy = 3;
01527 constraintsFillerPanel3.gridwidth = 3;
01528 constraintsFillerPanel3.fill = java.awt.GridBagConstraints.BOTH;
01529 constraintsFillerPanel3.weightx = 1.0;
01530 constraintsFillerPanel3.weighty = 1.0;
01531 constraintsFillerPanel3.insets = new java.awt.Insets(4, 4, 4, 4);
01532 getTrapPanel().add(getFillerPanel3(), constraintsFillerPanel3);
01533
01534 ((javax.swing.border.TitledBorder) ivjTrapPanel.getBorder()).setTitleColor(Color.black);
01535
01536 } catch (java.lang.Throwable ivjExc) {
01537
01538
01539 handleException(ivjExc);
01540 }
01541 }
01542 return ivjTrapPanel;
01543 }
01544
01545
01546
01547
01548 private void handleException(java.lang.Throwable exception) {
01549
01550
01551
01552
01553 }
01554
01555
01556
01557 public void hashCompactRadioButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01558 spinOptions.setSearchMode(DSpinOptions.HashCompact);
01559
01560 }
01561
01562
01563
01564
01565
01566 private void initConnections() throws java.lang.Exception {
01567
01568
01569 getNeverClaimCheckBox().addActionListener(ivjEventHandler);
01570 getLivenessRadioButton().addActionListener(ivjEventHandler);
01571 getSaftyRadioButton().addActionListener(ivjEventHandler);
01572 getExhaustiveRadioButton().addActionListener(ivjEventHandler);
01573 getSupertraceRadioButton().addActionListener(ivjEventHandler);
01574 getHashCompactRadioButton().addActionListener(ivjEventHandler);
01575 getOkbutton().addActionListener(ivjEventHandler);
01576 getSaveTrailCheckBox().addActionListener(ivjEventHandler);
01577 getShortestCheckBox().addActionListener(ivjEventHandler);
01578 getPartialOrderCheckBox().addActionListener(ivjEventHandler);
01579 getCompressionCheckBox().addActionListener(ivjEventHandler);
01580 getPhysicalTextField().addFocusListener(ivjEventHandler);
01581 getStateTextField().addFocusListener(ivjEventHandler);
01582 getDepthTextField().addFocusListener(ivjEventHandler);
01583 getErrorsTextField().addFocusListener(ivjEventHandler);
01584 getAssertionsCheckBox().addActionListener(ivjEventHandler);
01585 }
01586
01587
01588
01589
01590 private void initialize() {
01591 try {
01592
01593
01594 setName("DSpinOption");
01595 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
01596 setBackground(java.awt.Color.gray);
01597 setVisible(false);
01598 setForeground(java.awt.Color.gray);
01599 setSize(495, 491);
01600 setTitle("DSpin Option");
01601 setContentPane(getJDialogContentPane());
01602 initConnections();
01603 } catch (java.lang.Throwable ivjExc) {
01604 handleException(ivjExc);
01605 }
01606
01607 ButtonGroup group = new ButtonGroup();
01608 group.add(getExhaustiveRadioButton());
01609 group.add(getSupertraceRadioButton());
01610 group.add(getHashCompactRadioButton());
01611
01612 group = new ButtonGroup();
01613 group.add(getSaftyRadioButton());
01614 group.add(getLivenessRadioButton());
01615
01616
01617 }
01618
01619
01620
01621 public void livenessRadioButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01622 spinOptions.setAcceptanceCycles(true);
01623 spinOptions.setAssertions(false);
01624 spinOptions.setSafety(false);
01625
01626 }
01627
01628
01629
01630
01631 public static void main(java.lang.String[] args) {
01632 try {
01633 SpinOption aSpinOption;
01634 aSpinOption = new SpinOption();
01635 aSpinOption.setModal(true);
01636 aSpinOption.addWindowListener(new java.awt.event.WindowAdapter() {
01637 public void windowClosing(java.awt.event.WindowEvent e) {
01638 System.exit(0);
01639 };
01640 });
01641 aSpinOption.setVisible(true);
01642 } catch (Throwable exception) {
01643 System.err.println("Exception occurred in main() of javax.swing.JDialog");
01644 exception.printStackTrace(System.out);
01645 }
01646 }
01647
01648
01649
01650 public void neverClaimCheckBox_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01651 spinOptions.setApplyNeverClaim(getNeverClaimCheckBox().isSelected());
01652
01653 }
01654
01655
01656
01657 public void okbutton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01658 setVisible(false);
01659
01660
01661 }
01662
01663
01664
01665
01666 public void parseCompileOptions(String param) {
01667 Vector vector = new Vector();
01668 StringTokenizer st = new StringTokenizer(param);
01669 while(st.hasMoreTokens()){
01670 vector.add(st.nextToken());
01671 }
01672 for(int i =0; i < vector.size(); i++){
01673 if(((String)vector.elementAt(i)).equals("-DBITSTATE")){
01674 getSupertraceRadioButton().setSelected(true);
01675 spinOptions.setSearchMode(DSpinOptions.SuperTrace);
01676 }
01677 if(((String)vector.elementAt(i)).equals("-DHC")){
01678 getHashCompactRadioButton().setSelected(true);
01679 spinOptions.setSearchMode(DSpinOptions.HashCompact);
01680 }
01681 if(((String)vector.elementAt(i)).equals("-DMEMLIM")){
01682 i++;
01683 if(i == vector.size()){
01684 System.out.println("Your should also specify the value after DMEMLIM");
01685 System.exit(0);
01686 }
01687 else {
01688 String temp = (String)vector.elementAt(i);
01689 getPhysicalTextField().setText(temp);
01690 try {
01691 spinOptions.setMemoryLimit(Integer.parseInt(temp));
01692 } catch (Exception e) {
01693 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01694 getPhysicalTextField().setText("" + spinOptions.getMemoryLimit());
01695 }
01696 }
01697 }
01698 if(((String)vector.elementAt(i)).equals("-DSAFETY")){
01699 getSaftyRadioButton().setSelected(true);
01700 spinOptions.setAcceptanceCycles(false);
01701 spinOptions.setAssertions(getAssertionsCheckBox().isSelected());
01702 spinOptions.setSafety(true);
01703 }
01704 if(((String)vector.elementAt(i)).equals("-DNOREDUCE")){}
01705 if(((String)vector.elementAt(i)).equals("-DCOLLAPSE")){
01706 getCompressionCheckBox().setSelected(true);
01707 spinOptions.setCompression(getCompressionCheckBox().isSelected());
01708 }
01709 }
01710 }
01711
01712
01713
01714
01715 public void parsepaneOptions(String para) {
01716 Vector vector = new Vector();
01717 StringTokenizer st = new StringTokenizer(para);
01718 while(st.hasMoreTokens()){
01719 vector.add(st.nextToken());
01720 }
01721 for(int i =0; i < vector.size(); i++){
01722 if(((String)vector.elementAt(i)).equals("-n")){
01723 i++;
01724 if( i==vector.size() || !((String)(vector.elementAt(i))).equals("-m")){
01725 System.out.println("Your input should be -n -m SearchDepth");
01726 System.exit(0);
01727 }
01728 else{
01729 i++;
01730 String temp = (String)vector.elementAt(i);
01731 getDepthTextField().setText(temp);
01732 try{
01733 spinOptions.setSearchDepth(Integer.parseInt(temp));
01734 }catch(Exception e){
01735 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01736 getDepthTextField().setText(""+spinOptions.getSearchDepth());
01737 }
01738 }
01739 }
01740 if(((String)vector.elementAt(i)).equals("-a")){
01741 getLivenessRadioButton().setSelected(true);
01742 spinOptions.setAcceptanceCycles(true);
01743 }
01744 if(((String)vector.elementAt(i)).equals("-A")){
01745 getAssertionsCheckBox().setSelected(false);
01746 spinOptions.setAssertions(false);
01747 }
01748 if(((String)vector.elementAt(i)).equals("-c")){
01749 i++;
01750 if( i==vector.size()){
01751 System.out.println("Your input should be -c StopAtErrors");
01752 System.exit(0);
01753 }
01754 else{
01755 String temp = (String)vector.elementAt(i);
01756 getErrorsTextField().setText(temp);
01757 try{
01758 spinOptions.setStopAtError(Integer.parseInt(temp));
01759 }catch(Exception e){
01760 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01761 getErrorsTextField().setText(""+spinOptions.getStopAtError());
01762 }
01763 }
01764 }
01765 if(((String)vector.elementAt(i)).equals("-e")){
01766 getSaveTrailCheckBox().setSelected(true);
01767 spinOptions.setSaveAllTrails(true);
01768 }
01769 if(((String)vector.elementAt(i)).equals("-I")){
01770 getShortestCheckBox().setSelected(true);
01771 spinOptions.setFindShortestTrail(true);
01772 }
01773 }
01774 }
01775
01776
01777
01778 public void partialOrderCheckBox_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01779 spinOptions.setPOReduction(getPartialOrderCheckBox().isSelected());
01780
01781 }
01782
01783
01784
01785 public void physicalFieldMemory_FocusLost(java.awt.event.FocusEvent focusEvent) {
01786 try {
01787 spinOptions.setMemoryLimit(Integer.parseInt(getPhysicalTextField().getText()));
01788 } catch (Exception e) {
01789 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01790 getPhysicalTextField().setText("" + spinOptions.getMemoryLimit());
01791 }
01792
01793 }
01794
01795
01796
01797 public void physicalTextField_FocusLost(java.awt.event.FocusEvent focusEvent) {
01798 try {
01799 spinOptions.setMemoryLimit(Integer.parseInt(getPhysicalTextField().getText()));
01800 } catch (Exception e) {
01801 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01802 getPhysicalTextField().setText("" + spinOptions.getMemoryLimit());
01803 }
01804
01805 }
01806
01807
01808
01809 public void saftyRadioButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01810 spinOptions.setAcceptanceCycles(false);
01811 spinOptions.setAssertions(getAssertionsCheckBox().isSelected());
01812 spinOptions.setSafety(true);
01813
01814 }
01815
01816
01817
01818 public void saverailCheckBox_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01819 spinOptions.setSaveAllTrails(getSaveTrailCheckBox().isSelected());
01820
01821 }
01822
01823
01824
01825 public void shortestCheckBox_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01826 spinOptions.setFindShortestTrail(getShortestCheckBox().isSelected());
01827
01828 }
01829
01830
01831
01832 public void stateTextField_FocusLost(java.awt.event.FocusEvent focusEvent) {
01833 try {
01834 spinOptions.setSpaceEstimate(Integer.parseInt(getStateTextField().getText()));
01835 } catch (Exception e) {
01836 JOptionPane.showMessageDialog(null, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
01837 getStateTextField().setText("" + spinOptions.getSpaceEstimate());
01838 }
01839
01840 }
01841
01842
01843
01844 public void supertraceRadioButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
01845 spinOptions.setSearchMode(DSpinOptions.SuperTrace);
01846
01847 }
01848 }