• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java NodeSettingsWO类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.knime.core.node.NodeSettingsWO的典型用法代码示例。如果您正苦于以下问题:Java NodeSettingsWO类的具体用法?Java NodeSettingsWO怎么用?Java NodeSettingsWO使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NodeSettingsWO类属于org.knime.core.node包,在下文中一共展示了NodeSettingsWO类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: saveSettings

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
@Override
public void saveSettings(NodeSettingsWO settings) {
	if (!expertSettings) {
		setExpertParametersToDefault();
	}

	settings.addDouble(CFG_LEVEL_OF_DETECTION, nullToNan(levelOfDetection));
	settings.addBoolean(CFG_FIT_ALL_AT_ONCE, fitAllAtOnce);
	settings.addString(CFG_INIT_VALUES_WITH_DIFFERENT_START, SERIALIZER.toXml(initValuesWithDifferentStart));
	settings.addBoolean(CFG_EXPERT_SETTINGS, expertSettings);
	settings.addInt(CFG_N_PARAMETER_SPACE, nParameterSpace);
	settings.addInt(CFG_N_LEVENBERG, nLevenberg);
	settings.addBoolean(CFG_STOP_WHEN_SUCCESSFUL, stopWhenSuccessful);
	settings.addInt(CFG_MAX_LEVENBERG_ITERATIONS, maxLevenbergIterations);
	settings.addBoolean(CFG_ENFORCE_LIMITS, enforceLimits);
	settings.addString(CFG_MIN_START_VALUES, SERIALIZER.toXml(minStartValues));
	settings.addString(CFG_MAX_START_VALUES, SERIALIZER.toXml(maxStartValues));
	settings.addString(CFG_START_VALUES, SERIALIZER.toXml(startValues));
	settings.addDouble(CFG_STEP_SIZE, stepSize);
	settings.addString(CFG_INTERPOLATOR, interpolator.name());
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:22,代码来源:FittingSettings.java


示例2: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
@Override
protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {
	updateFunction();

	if (!depVarField.isValueValid()) {
		throw new InvalidSettingsException("Dependent Variable Missing");
	}

	if (!termField.isValueValid()) {
		throw new InvalidSettingsException("Formula Missing");
	}

	if (MathUtils.getSymbols(set.getTerm()).isEmpty()) {
		throw new InvalidSettingsException("Formula Invalid");
	}

	if (set.getIndependentVariables().isEmpty()) {
		throw new InvalidSettingsException("Independent Variables Missing");
	}

	set.saveSettings(settings);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:23,代码来源:FunctionCreatorNodeDialog.java


示例3: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
@Override
protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {
	if (unitTable.isEditing()) {
		unitTable.getCellEditor().stopCellEditing();
	}

	if (!idField.isValueValid()) {
		throw new InvalidSettingsException("\"" + PmmUtils.DATA + "\" is unassigned");
	}

	set.setId(idField.getValue());
	set.setOrganism(organismField.getValue());
	set.setMatrix(matrixField.getValue());
	set.setUnits(unitTable.getElements());
	set.setConditions(conditionsToMap(conditions));
	set.getParameters().clear();

	for (Map.Entry<String, DoubleTextField> entry : paramFields.entrySet()) {
		set.getParameters().put(entry.getKey(), entry.getValue().getValue());
	}

	set.save(settings);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:24,代码来源:ModelCreatorNodeDialog.java


示例4: saveSettings

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
@Override
public void saveSettings(NodeSettingsWO settings) {
	settings.addString(CFG_GIS_TYPE, gisType.name());
	settings.addString(CFG_SHAPE_COLUMN, shapeColumn);
	settings.addBoolean(CFG_SHOW_LEGEND, showLegend);
	settings.addDouble(CFG_SCALE_X, transform.getScaleX());
	settings.addDouble(CFG_SCALE_Y, transform.getScaleY());
	settings.addDouble(CFG_TRANSLATION_X, transform.getTranslationX());
	settings.addDouble(CFG_TRANSLATION_Y, transform.getTranslationY());
	settings.addInt(CFG_FONT_SIZE, fontSize);
	settings.addBoolean(CFG_FONT_BOLD, fontBold);
	settings.addInt(CFG_BORDER_ALPHA, borderAlpha);
	settings.addString(CFG_SELECTED_NODES, SERIALIZER.toXml(selectedNodes));
	settings.addString(CFG_NODE_HIGHLIGHT_CONDITIONS, SERIALIZER.toXml(nodeHighlightConditions));
	settings.addString(CFG_CANVAS_SIZE, SERIALIZER.toXml(canvasSize));
	settings.addString(CFG_LABEL, label);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:18,代码来源:GisSettings.java


示例5: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
@Override
protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException {
	set.setModel((String) modelBox.getSelectedItem());

	if (set.getModel().equals(DBSCANNSettings.MODEL_DBSCAN)) {
		if (!minPointsField.isValueValid()) {
			throw new InvalidSettingsException("Invalid: Min Number of Points per Cluster");
		}

		if (!maxDistField.isValueValid()) {
			throw new InvalidSettingsException("Invalid: Max Neighborhood Distance (km)");
		}

		set.setMinPoints(minPointsField.getValue());
		set.setMaxDistance(maxDistField.getValue());
	} else if (set.getModel().equals(DBSCANNSettings.MODEL_K_MEANS)) {
		if (!numClustersField.isValueValid()) {
			throw new InvalidSettingsException("Invalid: Number of Clusters");
		}

		set.setNumClusters(numClustersField.getValue());
	}

	set.saveSettings(settings);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:26,代码来源:DBSCANNodeDialog.java


示例6: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    // TODO save user settings to the config object.
	logger.info("------------------ ENTRANDO NO MÉTODO saveSettingsTo() -----------------------");
	logger.info("String m_selStr antes de saveSettingsTo: " + m_selStr.getKey() + " = " + m_selStr.getStringValue());
	String key = settings.getKey();
	logger.info("settings: " + settings.getClass() + " / " + settings.toString() + " / " + key);
	
    m_selStr.saveSettingsTo(settings);
    logger.info("String m_selStr após saveSettingsTo: " + m_selStr.getKey() + " = " + m_selStr.getStringValue());
}
 
开发者ID:daniacs,项目名称:knime_brtagger,代码行数:15,代码来源:BrTaggerNodeModel.java


示例7: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    m_settingsModels = collectSettingsModels();
    for (final SettingsModel model : m_settingsModels) {
        model.saveSettingsTo(settings);
    }
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:11,代码来源:AbstractALNodeModel.java


示例8: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    m_radiusAlphaModel.saveSettingsTo(settings);
    m_exploitationModel.saveSettingsTo(settings);
    m_numNeighborsModel.saveSettingsTo(settings);
    m_classColModel.saveSettingsTo(settings);
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:11,代码来源:PBACScorerNodeModel.java


示例9: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    m_kernelFunction.saveSettingsTo(settings);
    m_columnSelection.saveSettingsTo(settings);
    m_classColumn.saveSettingsTo(settings);
    m_numberOfNeighbors.saveSettingsTo(settings);
    m_sortTable.saveSettingsTo(settings);
    m_sigma.saveSettingsTo(settings);
    m_gamma.saveSettingsTo(settings);
    m_bias.saveSettingsTo(settings);
    m_power.saveSettingsTo(settings);
    m_normalize.saveSettingsTo(settings);
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:17,代码来源:LocalNoveltyScorerNodeModel.java


示例10: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    m_appendNoveltyScore.saveSettingsTo(settings);
    m_appendNullspaceCoordinates.saveSettingsTo(settings);
    m_normalize.saveSettingsTo(settings);
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:10,代码来源:KNFSTNoveltyScorerNodeModel.java


示例11: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
    m_kernelFunctionModel.saveSettingsTo(settings);
    m_columnSelection.saveSettingsTo(settings);
    m_classColumn.saveSettingsTo(settings);
    m_sortTable.saveSettingsTo(settings);
    m_sigma.saveSettingsTo(settings);
    m_gamma.saveSettingsTo(settings);
    m_bias.saveSettingsTo(settings);
    m_power.saveSettingsTo(settings);
}
 
开发者ID:knime,项目名称:knime-activelearning,代码行数:15,代码来源:KNFSTLearnerNodeModel.java


示例12: saveSettings

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/** Saves current parameters to settings object.
 * @param settings To save to.
 */
public void saveSettings(final NodeSettingsWO settings) {
    settings.addString(SCRIPT_IMPORTS, m_scriptImports);
    settings.addString(SCRIPT_FIELDS, m_scriptFields);
    settings.addString(SCRIPT_BODY, m_scriptBody);
    settings.addStringArray(JAR_FILES, m_jarFiles);
    m_outCols.saveSettings(settings.addConfig(OUT_COLS));
    m_outVars.saveSettings(settings.addConfig(OUT_VARS));
    m_inCols.saveSettings(settings.addConfig(IN_COLS));
    m_inVars.saveSettings(settings.addConfig(IN_VARS));
    settings.addString(VERSION, m_version);
    settings.addString(TEMPLATE_UUID, m_templateUUID);
    settings.addBoolean(RUN_ON_EXECUTE, m_runOnExecute);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:17,代码来源:JavaSnippetSettings.java


示例13: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_settings.saveSettings(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:10,代码来源:JavaSnippetForRDDNodeModel.java


示例14: saveSettings

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/** Saves current parameters to settings object.
 * @param settings To save to.
 */
public void saveSettings(final NodeSettingsWO settings) {
    settings.addString(META_CATEGORY, m_metaCategory.getName());
    settings.addString(CATEGORY, m_category);
    settings.addString(NAME, m_name);
    settings.addString(DESCRIPTION, m_description);
    settings.addString(VERSION, m_version);
    NodeSettingsWO snippet = settings.addNodeSettings(SNIPPET);
    m_snippetSettings.saveSettings(snippet);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:13,代码来源:JSnippetTemplate.java


示例15: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_replacement.saveSettingsTo(settings);
	m_count.saveSettingsTo(settings);
	m_seed.saveSettingsTo(settings);

}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:13,代码来源:TakeSampleNodeModel.java


示例16: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_count.saveSettingsTo(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:10,代码来源:TakeNodeModel.java


示例17: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_path.saveSettingsTo(settings);
	m_overwrite.saveSettingsTo(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:11,代码来源:RDDToTextFileNodeModel.java


示例18: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_master.saveSettingsTo(settings);
	m_path.saveSettingsTo(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:11,代码来源:FileToRDDNodeModel.java


示例19: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_master.saveSettingsTo(settings);
	m_columns.saveSettingsTo(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:11,代码来源:TableToRDDNodeModel.java


示例20: saveSettingsTo

import org.knime.core.node.NodeSettingsWO; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void saveSettingsTo(final NodeSettingsWO settings) {
	// save user settings to the config object.

	m_replacement.saveSettingsTo(settings);
	m_fraction.saveSettingsTo(settings);
	m_seed.saveSettingsTo(settings);
}
 
开发者ID:pavloff-de,项目名称:spark4knime,代码行数:12,代码来源:SampleNodeModel.java



注:本文中的org.knime.core.node.NodeSettingsWO类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LOOKUP3Request类代码示例发布时间:2022-05-22
下一篇:
Java WorkerExecutor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap