use of net.solarnetwork.settings.SettingSpecifier in project solarnetwork-node by SolarNetwork.
the class SunSpecInverterDatumDataSource method getSettingSpecifiersWithDefaults.
@Override
protected List<SettingSpecifier> getSettingSpecifiersWithDefaults(SunSpecDeviceDatumDataSourceSupport defaults) {
List<SettingSpecifier> results = super.getSettingSpecifiersWithDefaults(defaults);
if (defaults instanceof SunSpecInverterDatumDataSource) {
SunSpecInverterDatumDataSource iDefaults = (SunSpecInverterDatumDataSource) defaults;
results.add(new BasicTextFieldSettingSpecifier("ignoreStatesValue", iDefaults.getIgnoreStatesValue()));
}
return results;
}
use of net.solarnetwork.settings.SettingSpecifier in project solarnetwork-node by SolarNetwork.
the class SunSpecMeterDatumDataSource method getSettingSpecifiersWithDefaults.
@Override
protected List<SettingSpecifier> getSettingSpecifiersWithDefaults(SunSpecDeviceDatumDataSourceSupport defaults) {
List<SettingSpecifier> results = super.getSettingSpecifiersWithDefaults(defaults);
if (defaults instanceof SunSpecMeterDatumDataSource) {
SunSpecMeterDatumDataSource mDefaults = (SunSpecMeterDatumDataSource) defaults;
results.add(new BasicToggleSettingSpecifier("backwards", mDefaults.backwards));
results.add(new BasicToggleSettingSpecifier("includePhaseMeasurements", mDefaults.includePhaseMeasurements));
}
return results;
}
use of net.solarnetwork.settings.SettingSpecifier in project solarnetwork-node by SolarNetwork.
the class MBusDeviceDatumDataSourceSupport method getMBusNetworkSettingSpecifiers.
/**
* Get setting specifiers for the {@literal unitId} and
* {@literal mBusNetwork.propertyFilters['uid']} properties.
*
* @return list of setting specifiers
* @since 1.1
*/
protected List<SettingSpecifier> getMBusNetworkSettingSpecifiers() {
List<SettingSpecifier> results = new ArrayList<SettingSpecifier>(16);
results.add(new BasicTextFieldSettingSpecifier("mBusNetwork.propertyFilters['uid']", "M-Bus Port"));
results.add(new BasicTextFieldSettingSpecifier("address", ""));
results.add(new BasicTextFieldSettingSpecifier("sampleCacheMs", String.valueOf(DEFAULT_SAMPLE_CACHE_MS)));
return results;
}
use of net.solarnetwork.settings.SettingSpecifier in project solarnetwork-node by SolarNetwork.
the class WMBusDeviceDatumDataSourceSupport method getWMBusNetworkSettingSpecifiers.
/**
* Get setting specifiers for the {@literal unitId} and
* {@literal wMBusNetwork.propertyFilters['uid']} properties.
*
* @return list of setting specifiers
* @since 1.1
*/
protected List<SettingSpecifier> getWMBusNetworkSettingSpecifiers() {
List<SettingSpecifier> results = new ArrayList<SettingSpecifier>(16);
results.add(new BasicTextFieldSettingSpecifier("wMBusNetwork.propertyFilters['uid']", "M-Bus (Wireless) Port"));
results.add(new BasicTextFieldSettingSpecifier("secondaryAddress", ""));
results.add(new BasicTextFieldSettingSpecifier("key", "", true));
return results;
}
use of net.solarnetwork.settings.SettingSpecifier in project solarnetwork-node by SolarNetwork.
the class JMBusSerialMBusNetwork method getSettingSpecifiers.
@Override
public List<SettingSpecifier> getSettingSpecifiers() {
JMBusSerialMBusNetwork defaults = new JMBusSerialMBusNetwork();
List<SettingSpecifier> results = new ArrayList<SettingSpecifier>(20);
results.add(new BasicTextFieldSettingSpecifier("uid", defaults.getUid()));
results.add(new BasicTextFieldSettingSpecifier("serialParams.portName", defaults.serialParams.getPortName()));
return results;
}
Aggregations