本文整理汇总了Java中org.deckfour.xes.model.XLog.clone方法的典型用法代码示例。如果您正苦于以下问题:Java XLog.clone方法的具体用法?Java XLog.clone怎么用?Java XLog.clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.deckfour.xes.model.XLog
的用法示例。
在下文中一共展示了XLog.clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateNewLog
import org.deckfour.xes.model.XLog; //导入方法依赖的package包/类
@Override
public XLog generateNewLog(XLog log, OutlierIdentifierGenerator<String> outlierIdentifierGenerator, int lookAHead, boolean selectOnlyOneOutlier) {
boolean outlearsFound = false;
if(mapOutliers.size() > 0) {
outlearsFound = true;
}
if(outlearsFound) {
XLog newLog = (XLog) log.clone();
newLog.clear();
for (XTrace t : log) {
XTrace newT = (XTrace) t.clone();
newT.clear();
newT.add((XEvent) t.get(0).clone());
for (int i = 1; i < t.size() - 1; i++) {
if(selectOnlyOneOutlier) {
removeOutlierSelectOnlyOne(t, newT, i);
}else {
removeOutlierSelect(t, newT, i);
}
}
newT.add((XEvent) t.get(t.size()-1).clone());
if(newT.size() > 0) newLog.add(newT);
}
return newLog;
}else {
return log;
}
}
示例2: generateNewLog
import org.deckfour.xes.model.XLog; //导入方法依赖的package包/类
@Override
public XLog generateNewLog(XLog log, OutlierIdentifierGenerator<String> outlierIdentifierGenerator, int lookAHead, boolean selectOnlyOneOutlier) {
boolean outlearsFound = false;
if(mapOutliers.size() > 0) {
outlearsFound = true;
}
if(outlearsFound) {
XLog newLog = (XLog) log.clone();
newLog.clear();
for (XTrace t : log) {
XTrace newT = (XTrace) t.clone();
newT.clear();
for (int i = 0; i < lookAHead && i < t.size(); i++) {
XEvent current = (XEvent) t.get(i).clone();
newT.add(current);
}
for (int i = lookAHead; i < t.size(); i++) {
if(selectOnlyOneOutlier) {
removeOutlierSelectOnlyOne(t, newT, i, lookAHead, true);
}else {
removeOutlierSelect(t, newT, i, lookAHead, true);
}
}
if(newT.size() > 0) newLog.add(newT);
}
return newLog;
}else {
return log;
}
}
示例3: generateNewLogReverse
import org.deckfour.xes.model.XLog; //导入方法依赖的package包/类
@Override
public XLog generateNewLogReverse(XLog log, OutlierIdentifierGenerator<String> outlierIdentifierGenerator, int lookAHead, boolean selectOnlyOneOutlier) {
boolean outlearsFound = false;
if(mapOutliers.size() > 0) {
outlearsFound = true;
}
if(outlearsFound) {
XLog newLog = (XLog) log.clone();
newLog.clear();
for (XTrace t : log) {
XTrace newT = (XTrace) t.clone();
newT.clear();
for (int i = t.size() - 1; i >= t.size() - lookAHead && i >= 0; i--) {
XEvent current = (XEvent) t.get(i).clone();
newT.add(current);
}
for (int i = t.size() - lookAHead - 1; i >= 0; i--) {
if(selectOnlyOneOutlier) {
removeOutlierSelectOnlyOne(t, newT, i, lookAHead, true);
}else {
removeOutlierSelect(t, newT, i, lookAHead, true);
}
}
if(newT.size() > 0) newLog.add(newT);
}
return newLog;
}else {
return log;
}
}