本文整理汇总了Java中org.knime.core.node.defaultnodesettings.SettingsModel类的典型用法代码示例。如果您正苦于以下问题:Java SettingsModel类的具体用法?Java SettingsModel怎么用?Java SettingsModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SettingsModel类属于org.knime.core.node.defaultnodesettings包,在下文中一共展示了SettingsModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: saveSettingsTo
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
m_settingsModels = collectSettingsModels();
for (final SettingsModel model : m_settingsModels) {
model.saveSettingsTo(settings);
}
}
示例2: validateSettings
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void validateSettings(final NodeSettingsRO settings)
throws InvalidSettingsException {
m_settingsModels = collectSettingsModels();
for (final SettingsModel model : m_settingsModels) {
model.validateSettings(settings);
}
}
示例3: loadValidatedSettingsFrom
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings)
throws InvalidSettingsException {
m_settingsModels = collectSettingsModels();
for (final SettingsModel model : m_settingsModels) {
model.loadSettingsFrom(settings);
}
}
示例4: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_columnModel);
m_settingsModels.add(m_numberOfElementsModel);
m_settingsModels.add(m_selectionStrategyModel);
}
return m_settingsModels;
}
示例5: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_repColModel);
m_settingsModels.add(m_classColModel);
m_settingsModels.add(m_defaultClassNameModel);
m_settingsModels.add(m_autoTerminateModel);
}
return m_settingsModels;
}
示例6: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_groundTruthColumnModel);
m_settingsModels.add(m_maxIterationsModel);
}
return m_settingsModels;
}
示例7: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
private void collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<SettingsModel>();
m_settingsModels.add(m_classLabelColumnModel);
m_settingsModels.add(m_customClassCollumnNameModel);
m_settingsModels.add(m_appendClassCollumnModel);
m_settingsModels.add(m_appendIterationModel);
}
}
示例8: validateSettings
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void validateSettings(final NodeSettingsRO settings)
throws InvalidSettingsException {
collectSettingsModels();
for (final SettingsModel sm : m_settingsModels) {
sm.validateSettings(settings);
}
}
示例9: loadValidatedSettingsFrom
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void loadValidatedSettingsFrom(final NodeSettingsRO settings)
throws InvalidSettingsException {
collectSettingsModels();
for (final SettingsModel sm : m_settingsModels) {
sm.loadSettingsFrom(settings);
}
}
示例10: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>(1);
m_settingsModels.add(m_columnFilterModel);
}
return m_settingsModels;
}
示例11: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_exploitationColumnModel);
m_settingsModels.add(m_explorationColumnModel);
m_settingsModels.add(m_exploitationFactorModel);
}
return m_settingsModels;
}
示例12: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_columnFilterModel);
m_settingsModels.add(m_numNeighbors);
m_settingsModels.add(m_sigmaModel);
}
return m_settingsModels;
}
示例13: collectSettingsModels
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected List<SettingsModel> collectSettingsModels() {
if (m_settingsModels == null) {
m_settingsModels = new ArrayList<>();
m_settingsModels.add(m_filterModel);
m_settingsModels.add(m_radiusAlphaModel);
}
return m_settingsModels;
}
示例14: getComponentSettings
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
@Override
protected List<SettingsModel> getComponentSettings() {
return Arrays.<SettingsModel>asList(
expression,
sampleFile,
inputField,
includeSource,
includeNode,
includeChildren,
model
);
}
示例15: getSettingsModel
import org.knime.core.node.defaultnodesettings.SettingsModel; //导入依赖的package包/类
@Override
protected List<SettingsModel> getSettingsModel() {
List<SettingsModel> L=new ArrayList<SettingsModel>(super.getSettingsModel());
L.add(this.m_ncbiIdColumn);
L.add(this.m_ncbiDb);
return L;
}