本文整理汇总了Java中org.knime.core.node.NodeSettingsWO类的典型用法代码示例。如果您正苦于以下问题:Java NodeSettingsWO类的具体用法?Java NodeSettingsWO怎么用?Java NodeSettingsWO使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NodeSettingsWO类属于org.knime.core.node包,在下文中一共展示了NodeSettingsWO类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}