本文整理匯總了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);