當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。