本文整理汇总了Java中com.rapidminer.operator.IOObject.getSource方法的典型用法代码示例。如果您正苦于以下问题:Java IOObject.getSource方法的具体用法?Java IOObject.getSource怎么用?Java IOObject.getSource使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rapidminer.operator.IOObject
的用法示例。
在下文中一共展示了IOObject.getSource方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: assertEquals
import com.rapidminer.operator.IOObject; //导入方法依赖的package包/类
/**
* Tests if both list of ioobjects are equal.
*
* @param expected
* expected value
* @param actual
* actual value
*/
public static void assertEquals(String message, List<IOObject> expected, List<IOObject> actual) {
assertSize(expected, actual);
Iterator<IOObject> expectedIter = expected.iterator();
Iterator<IOObject> actualIter = actual.iterator();
int objectIndex = 1;
while (expectedIter.hasNext() && actualIter.hasNext()) {
IOObject expectedIOO = expectedIter.next();
IOObject actualIOO = actualIter.next();
String subMessage = message + " IOObject \"" + actualIOO.getSource() + "\" at position " + objectIndex
+ " does not match the expected value ";
assertEquals(subMessage, expectedIOO, actualIOO);
objectIndex++;
}
}
示例2: deliver
import com.rapidminer.operator.IOObject; //导入方法依赖的package包/类
public void deliver(List<? extends IOObject> inputs) {
int i = 0;
for (OutputPort port : getManagedPorts()) {
if (port.isConnected()) {
if (i >= inputs.size()) {
getPorts().getOwner().getOperator().getLogger().fine("Insufficient input for " + port.getSpec());
} else {
IOObject input = inputs.get(i);
port.deliver(input);
if (input != null) {
String name;
if (input instanceof ResultObject) {
name = ((ResultObject) input).getName();
} else {
name = input.getClass().getName();
}
if (input.getSource() != null) {
name += " (" + input.getSource() + ")";
}
getPorts().getOwner().getOperator().getLogger().fine("Delivering " + name + " to " + port.getSpec());
}
}
i++;
}
}
}
示例3: deliver
import com.rapidminer.operator.IOObject; //导入方法依赖的package包/类
@Override
public void deliver(IOObject object) {
// registering history of object
if (object != null) {
object.appendOperatorToHistory(getPorts().getOwner().getOperator(), this);
// set source if not yet set
if (object.getSource() == null) {
if (getPorts().getOwner().getOperator() != null) {
object.setSource(getPorts().getOwner().getOperator().getName());
}
}
}
// delivering data
setData(object);
if (isConnected()) {
getDestination().receive(object);
}
Process process = getPorts().getOwner().getOperator().getProcess();
if (process != null && process.getDebugMode() == DebugMode.COLLECT_METADATA_AFTER_EXECUTION) {
if (object == null) {
setRealMetaData(null);
} else {
setRealMetaData(MetaData.forIOObject(object));
}
} else {
setRealMetaData(null);
}
}
示例4: AbstractPrintableIOObjectPanel
import com.rapidminer.operator.IOObject; //导入方法依赖的package包/类
public AbstractPrintableIOObjectPanel(IOObject ioObject, String i18NKey) {
i18nKey = i18NKey;
source = ioObject.getSource();
}