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