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