本文整理汇总了Java中com.rapidminer.operator.DebugMode类的典型用法代码示例。如果您正苦于以下问题:Java DebugMode类的具体用法?Java DebugMode怎么用?Java DebugMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DebugMode类属于com.rapidminer.operator包,在下文中一共展示了DebugMode类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: receive
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
@Override
public void receive(IOObject object) {
setData(object);
Process process = getPorts().getOwner().getOperator().getProcess();
if ((process != null) && (process.getDebugMode() == DebugMode.COLLECT_METADATA_AFTER_EXECUTION)) {
if (object == null) {
setRealMetaData(null);
} else {
MetaData forIOObject = MetaData.forIOObject(object);
setRealMetaData(forIOObject);
}
} else {
setRealMetaData(null);
}
}
示例2: deliver
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
@Override
public void deliver(IOObject object) {
// registering in history of object
if (object != null)
object.appendOperatorToHistory(getPorts().getOwner().getOperator(), this);
// 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);
}
}
示例3: receive
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
@Override
public void receive(IOObject object) {
setData(object);
Process process = getPorts().getOwner().getOperator().getProcess();
if ((process != null) && (process.getDebugMode() == DebugMode.COLLECT_METADATA_AFTER_EXECUTION)) {
if (object == null) {
setRealMetaData(null);
} else {
MetaData forIOObject = MetaData.forIOObject(object);
setRealMetaData(forIOObject);
}
} else {
setRealMetaData(null);
}
}
示例4: deliver
import com.rapidminer.operator.DebugMode; //导入依赖的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);
}
}
示例5: actionToggled
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
@Override
public void actionToggled(ActionEvent e) {
if (isSelected()) {
mainFrame.getProcess().setDebugMode(DebugMode.COLLECT_METADATA_AFTER_EXECUTION);
} else {
mainFrame.getProcess().setDebugMode(DebugMode.DEBUG_OFF);
}
}
示例6: actionPerformed
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
isEnabled = !isEnabled;
if (isEnabled) {
mainFrame.getProcess().setDebugMode(DebugMode.COLLECT_METADATA_AFTER_EXECUTION);
} else {
mainFrame.getProcess().setDebugMode(DebugMode.DEBUG_OFF);
}
}
示例7: getDebugMode
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
public DebugMode getDebugMode() {
return debugMode;
}
示例8: setDebugMode
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
public void setDebugMode(final DebugMode mode) {
this.debugMode = mode;
if (mode == DebugMode.DEBUG_OFF) {
getRootOperator().clear(Port.CLEAR_REAL_METADATA);
}
}
示例9: setDebugMode
import com.rapidminer.operator.DebugMode; //导入依赖的package包/类
public void setDebugMode(DebugMode mode) {
this.debugMode = mode;
if (mode == DebugMode.DEBUG_OFF) {
getRootOperator().clear(Port.CLEAR_REAL_METADATA);
}
}