Package com.pcmsolutions.system.preferences

Examples of com.pcmsolutions.system.preferences.Impl_ZIntPref


    private final Vector propertyList = new Vector();

    public RemotePreferences(Preferences preferences, boolean ultra) {
        this.remotePreferences = preferences;
        ZPREF_commErrorThreshold = new Impl_ZIntPref(preferences, "commErrorThreshold", defCommErrorThreshold, "Comm error threshold", "Number of communication errors tolerated before device will be stopped", CAT_REMOTE) {
            public int getMinValue() {
                return 1;
            }

            public int getMaxValue() {
                return 20;
            }
        };
        ZPREF_commTimeout = new Impl_ZIntPref(preferences, "commTimeout", defCommTimeout, "Comm timeout(ms)", "Time interval (in ms) before the remote device is deemed not responding ", CAT_REMOTE) {
            public int getMinValue() {
                return 100;
            }

            public int getMaxValue() {
                return 5000;
            }

            public int getIncrementValue() {
                return 50;
            }
        };

        int dp;
        if (ultra)
            dp = defUltraPause;
        else
            dp = defClassicPause;
        ZPREF_commPause = new Impl_ZIntPref(preferences, "commPause", dp, "Comm pause(ms)", "Pause time (in ms) between sending consecutive messages to the remote device", CAT_REMOTE) {
            public int getMinValue() {
                return 5;
            }

            public int getMaxValue() {
View Full Code Here

TOP

Related Classes of com.pcmsolutions.system.preferences.Impl_ZIntPref

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.