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() {