Class SpeedTestSetLimitPanel

    • Field Detail

      • measuredUploadKbps

        private int measuredUploadKbps
      • measuredDownloadKbps

        private int measuredDownloadKbps
      • downloadTestRan

        private boolean downloadTestRan
      • uploadTestRan

        private boolean uploadTestRan
      • downloadHitLimit

        private boolean downloadHitLimit
      • uploadHitLimit

        private boolean uploadHitLimit
      • apply

        private org.eclipse.swt.widgets.Button apply
      • downConfLevelCombo

        private org.eclipse.swt.widgets.Combo downConfLevelCombo
      • upConfLevelCombo

        private org.eclipse.swt.widgets.Combo upConfLevelCombo
    • Constructor Detail

      • SpeedTestSetLimitPanel

        public SpeedTestSetLimitPanel​(Wizard wizard,
                                      IWizardPanel previousPanel,
                                      int upload,
                                      long maxup,
                                      int download,
                                      long maxdown)
    • Method Detail

      • show

        public void show()
        Panel has text at the top explaining the result. Then under that it has a label the measured upload value and the recommended value. Then a button with apply.
      • addDropElements

        private void addDropElements​(org.eclipse.swt.widgets.Combo combo,
                                     java.lang.String[] elements)
      • setDefaultConfidenceLevelEx

        private int setDefaultConfidenceLevelEx​(int transferRateKBPS,
                                                boolean testRan,
                                                boolean isUpload,
                                                java.lang.String[] values)
        Parameters:
        transferRateKBPS - -
        testRan - -
        isUpload - -
        values - -
        Returns:
        - index of dropdown that matches or -1 to indicate no match.
      • createResultLabels

        private void createResultLabels​(org.eclipse.swt.widgets.Composite panel,
                                        boolean hadError)
        Create a label for the test. The layout is assumed to be five across. If an error occured in the test then the units are not printed out.
        Parameters:
        panel - -
        hadError - - true if the test had an error.
      • createResultData

        private void createResultData​(org.eclipse.swt.widgets.Composite panel,
                                      java.lang.String label,
                                      int rate)
      • createTestDesc

        private void createTestDesc​(org.eclipse.swt.widgets.Composite panel)
      • createErrorDesc

        private void createErrorDesc​(org.eclipse.swt.widgets.Composite panel,
                                     java.lang.String error)
      • determineRateSettingEx

        public int determineRateSettingEx​(int measuredRate,
                                          boolean testRan,
                                          boolean isUpload)