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


Java OperatorLibrary类代码示例

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


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

示例1: addOperatorLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
public void addOperatorLibrary(OperatorLibrary library, String location) {
	libraryLocations.add(new Pair<>(library, location));
	try {
		library.registerOperators();
	} catch (OperatorCreationException e) {
		e.printStackTrace();
		// TODO: This is unnecessary if operators aren't initialized during registration!
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:10,代码来源:ProcessContext.java

示例2: loadLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This method loads the given library and registers all contained operators.
 */
public void loadLibrary(OperatorLibrary library) {
	libraries.add(library);

	// register operators

	// TODO: Check if we need this at all!
	// for (String operatorKey: library.getOperatorKeys()) {
	// try {
	// OperatorService.registerOperator(library.getDescription(operatorKey),
	// library.getDocumentationBundle());
	// } catch (OperatorCreationException e) {
	// // TODO: after removing instanciation.
	// e.printStackTrace();
	// }
	// }
	// I think can be replaced by:
	try {
		library.registerOperators();
	} catch (OperatorCreationException e) {
		// TODO: after removing instanciation.
		e.printStackTrace();
	}

	// inform listener
	for (OperatorLibraryListener listener : listeners) {
		listener.informLibraryLoaded(library);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:32,代码来源:OperatorLibraryService.java

示例3: unloadLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This method loads the given library and registers all contained operators.
 */
public void unloadLibrary(OperatorLibrary library) {
	libraries.remove(library);

	// register operators
	for (String operatorKey : library.getOperatorKeys()) {
		OperatorService.unregisterOperator(library.getDescription(operatorKey));
	}

	// inform listener
	for (OperatorLibraryListener listener : listeners) {
		listener.informLibraryUnloaded(library);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:17,代码来源:OperatorLibraryService.java

示例4: notifyLibraryChanged

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This notifies that the given library has changed.
 */
public void notifyLibraryChanged(OperatorLibrary operatorLibrary) {
	// inform listener
	for (OperatorLibraryListener listener : listeners) {
		listener.informLibraryChanged(operatorLibrary);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:10,代码来源:OperatorLibraryService.java

示例5: addOperatorLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
public void addOperatorLibrary(OperatorLibrary library, String location) {
    libraryLocations.add(new Pair<OperatorLibrary, String>(library, location));
    try {
        library.registerOperators();
    } catch (OperatorCreationException e) {
        e.printStackTrace();
        // TODO: This is unnecessary if operators aren't initialized during registration!
    }
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:ProcessContext.java

示例6: loadLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This method loads the given library and registers all contained operators.
 */
public void loadLibrary(OperatorLibrary library) {
    libraries.add(library);

    // register operators

    // TODO: Check if we need this at all!
    // for (String operatorKey: library.getOperatorKeys()) {
    // try {
    // OperatorService.registerOperator(library.getDescription(operatorKey), library.getDocumentationBundle());
    // } catch (OperatorCreationException e) {
    // // TODO: after removing instanciation.
    // e.printStackTrace();
    // }
    // }
    // I think can be replaced by:
    try {
        library.registerOperators();
    } catch (OperatorCreationException e) {
        // TODO: after removing instanciation.
        e.printStackTrace();
    }

    // inform listener
    for (OperatorLibraryListener listener : listeners)
        listener.informLibraryLoaded(library);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:30,代码来源:OperatorLibraryService.java

示例7: unloadLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This method loads the given library and registers all contained operators.
 */
public void unloadLibrary(OperatorLibrary library) {
    libraries.remove(library);

    // register operators
    for (String operatorKey : library.getOperatorKeys()) {
        OperatorService.unregisterOperator(library.getDescription(operatorKey));
    }

    // inform listener
    for (OperatorLibraryListener listener : listeners)
        listener.informLibraryUnloaded(library);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:16,代码来源:OperatorLibraryService.java

示例8: getOperatorLibraries

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns all loaded OperatorLibries that should be used within this process.
 */
public List<OperatorLibrary> getOperatorLibraries() {
	return Collections.emptyList();
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:7,代码来源:ProcessContext.java

示例9: getLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns the library with the given index.
 */
public OperatorLibrary getLibrary(int index) {
	return libraries.get(index);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:7,代码来源:OperatorLibraryService.java

示例10: getIndexOf

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns the index of the given OperatorLibrary. Returns -1 if it can't be found.
 */
public int getIndexOf(OperatorLibrary child) {
	return libraries.indexOf(child);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:7,代码来源:OperatorLibraryService.java

示例11: getOperatorLibraries

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns all loaded OperatorLibries that should be used within this process.
 */
public List<OperatorLibrary> getOperatorLibraries() {
    return Collections.emptyList();
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:ProcessContext.java

示例12: getLibrary

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns the library with the given index.
 */
public OperatorLibrary getLibrary(int index) {
    return libraries.get(index);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:OperatorLibraryService.java

示例13: getIndexOf

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This returns the index of the given OperatorLibrary. Returns -1 if it can't be found.
 */
public int getIndexOf(OperatorLibrary child) {
    return libraries.indexOf(child);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:7,代码来源:OperatorLibraryService.java

示例14: notifyLibraryChanged

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
/**
 * This notifies that the given library has changed.
 */
public void notifyLibraryChanged(OperatorLibrary operatorLibrary) {
    // inform listener
    for (OperatorLibraryListener listener : listeners)
        listener.informLibraryChanged(operatorLibrary);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:9,代码来源:OperatorLibraryService.java

示例15: informLibraryLoaded

import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
public void informLibraryLoaded(OperatorLibrary library); 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:2,代码来源:OperatorLibraryService.java


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