当前位置: 首页>>代码示例>>Java>>正文


Java ParameterTypeConfiguration类代码示例

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


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

示例1: ParameterSettingQuickFix

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
public ParameterSettingQuickFix(Operator operator, String parameterName, String value) {
	this(operator, parameterName, value, "correct_parameter_settings_by", parameterName, value);

	ParameterType type = operator.getParameterType(parameterName);
	if (type instanceof ParameterTypeConfiguration) {
		seti18nKey("correct_parameter_settings_with_wizard");
	} else if (type instanceof ParameterTypeList) {
		seti18nKey("correct_parameter_settings_list", parameterName);
	} else {
	}
	if (value != null) {
		if (type instanceof ParameterTypeBoolean) {
			if (value.equals("true")) {
				seti18nKey("correct_parameter_settings_boolean_enable", parameterName);
			} else {
				seti18nKey("correct_parameter_settings_boolean_disable", parameterName);
			}
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:21,代码来源:ParameterSettingQuickFix.java

示例2: getParameterTypes

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = new LinkedList<>();
	ParameterType type = new ParameterTypeConfiguration(ExcelExampleSourceConfigurationWizardCreator.class, this);
	type.setExpert(false);
	types.add(type);

	types.add(makeFileParameterType());

	types.add(new ParameterTypeInt(PARAMETER_SHEET_NUMBER, "The number of the sheet which should be imported.", 1,
			Integer.MAX_VALUE, 1, false));
	types.add(new ParameterTypeString(PARAMETER_IMPORTED_CELL_RANGE,
			"Cells to import, in Excel notation, e.g. B2:D25 or B2 for an open interval.", "A1"));

	types.addAll(Encoding.getParameterTypes(this));

	types.addAll(super.getParameterTypes());

	return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:21,代码来源:ExcelExampleSource.java

示例3: ParameterSettingQuickFix

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
public ParameterSettingQuickFix(Operator operator, String parameterName, String value) {
    this(operator, parameterName, value, "correct_parameter_settings_by", parameterName, value);

    ParameterType type = operator.getParameterType(parameterName);
    if (type instanceof ParameterTypeConfiguration) {
        seti18nKey("correct_parameter_settings_with_wizard");
    } else if (type instanceof ParameterTypeList) {
        seti18nKey("correct_parameter_settings_list", parameterName);
    } else {
    }
    if (value != null) {
        if (type instanceof ParameterTypeBoolean) {
            if (value.equals("true")) {
                seti18nKey("correct_parameter_settings_boolean_enable", parameterName);
            } else {
                seti18nKey("correct_parameter_settings_boolean_disable", parameterName);
            }
        }
    }
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:21,代码来源:ParameterSettingQuickFix.java

示例4: getParameterTypes

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = new LinkedList<ParameterType>();
	ParameterType type = new ParameterTypeConfiguration(ExcelExampleSourceConfigurationWizardCreator.class, this);
	type.setExpert(false);
	types.add(type);
	
	//types.add(new ParameterTypeFile(PARAMETER_EXCEL_FILE, "Name of the excel file to read the data from.", "xls", false));
	types.add(makeFileParameterType());
	
	types.add(new ParameterTypeInt(PARAMETER_SHEET_NUMBER, "The number of the sheet which should be imported.", 1, Integer.MAX_VALUE, 1, false));
	types.add(new ParameterTypeString(PARAMETER_IMPORTED_CELL_RANGE, "Cells to import, in Excel notation, e.g. B2:D25 or B2 for an open interval.", "A1"));
	
	types.addAll(Encoding.getParameterTypes(this));
	
	types.addAll(super.getParameterTypes());
	
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:20,代码来源:ExcelExampleSource.java

示例5: getParameterTypes

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = new LinkedList<ParameterType>();
	ParameterType type = new ParameterTypeConfiguration(ExcelImportWizard.ExcelExampleSourceConfigurationWizardCreator.class, this);
	type.setExpert(false);
	types.add(type);
	types.add(new ParameterTypeFile(PARAMETER_EXCEL_FILE, "Name of the excel file to read the data from.", "xls", false));
	types.add(new ParameterTypeInt(PARAMETER_SHEET_NUMBER, "The number of the sheet which should be imported.", 1, Integer.MAX_VALUE, 1, false));
	types.add(new ParameterTypeInt(PARAMETER_ROW_OFFSET, "The number of rows to skip at top of sheet as they contain no usable data.", 0, 65535,
			0, true));
	types.add(new ParameterTypeInt(PARAMETER_COLUMN_OFFSET,
			"The number of columns to skip at left side of sheet as they contain no usable data.", 0, 255, 0, true));
	types.add(new ParameterTypeBoolean(PARAMETER_FIRST_ROW_AS_NAMES, "Indicates if the first row should be used for the attribute names.", true,
			true));
	List<String> annotations = new LinkedList<String>();
	annotations.add(Annotations.ANNOTATION_NAME);
	annotations.addAll(Arrays.asList(Annotations.ALL_KEYS_ATTRIBUTE));
	types.add(new ParameterTypeList(PARAMETER_ANNOTATIONS, "Maps row numbers to annotation names.", new ParameterTypeInt("row_number",
			"Row number which contains an annotation", 0, Integer.MAX_VALUE), new ParameterTypeCategory("annotation",
			"Name of the annotation to assign this row.", annotations.toArray(new String[annotations.size()]), 0)));
	types.addAll(super.getParameterTypes());
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:24,代码来源:ExcelExampleSource.java

示例6: ConfigurationWizardValueCellEditor

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
public ConfigurationWizardValueCellEditor(ParameterTypeConfiguration type) {
	this.type = type;
	button = new JButton(new ResourceAction(true, "wizard." + type.getWizardCreator().getI18NKey()) {

		private static final long serialVersionUID = 5340097986173787690L;

		@Override
		public void actionPerformed(ActionEvent e) {
			buttonPressed();
		}
	});
	button.setToolTipText(type.getDescription());
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:ConfigurationWizardValueCellEditor.java

示例7: ConfigurationWizardValueCellEditor

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
public ConfigurationWizardValueCellEditor(ParameterTypeConfiguration type) {
	this.type = type;
	button = new JButton(new ResourceAction(true, "wizard." + type.getWizardCreator().getI18NKey()) {

		private static final long serialVersionUID = 5340097986173787690L;

		@Override
		public void loggedActionPerformed(ActionEvent e) {
			buttonPressed();
		}
	});
	button.setToolTipText(type.getDescription());
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:14,代码来源:ConfigurationWizardValueCellEditor.java

示例8: ConfigurationWizardValueCellEditor

import com.rapidminer.parameter.ParameterTypeConfiguration; //导入依赖的package包/类
public ConfigurationWizardValueCellEditor(ParameterTypeConfiguration type) {
     this.type = type;
     button = new JButton(new ResourceAction(true, "wizard."+type.getWizardCreator().getI18NKey()) {
private static final long serialVersionUID = 5340097986173787690L;

@Override
public void actionPerformed(ActionEvent e) {
             buttonPressed();				
}        	
     });
     button.setToolTipText(type.getDescription());
 }
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:13,代码来源:ConfigurationWizardValueCellEditor.java


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