本文整理汇总了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!
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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!
}
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例15: informLibraryLoaded
import com.rapidminer.operator.libraries.OperatorLibrary; //导入依赖的package包/类
public void informLibraryLoaded(OperatorLibrary library);