diff --git a/src/main/java/kieker/analysis/dev/OperationsDependency.java b/src/main/java/kieker/analysis/dev/OperationsDependency.java index f24c70f9d4d00caba81450841d9bbed03f4e1547..d2aab114378d2f726fb11e3d633368a4f923bb73 100644 --- a/src/main/java/kieker/analysis/dev/OperationsDependency.java +++ b/src/main/java/kieker/analysis/dev/OperationsDependency.java @@ -97,52 +97,4 @@ public class OperationsDependency { * } */ - /** - * Relation between two {@link AggregatedOperationCall}. If this class will be - * extended by more attributes, new hashCode() and equals() methods are required. - * - * @author Sören Henning - * - */ - // TODO Move to public class - private class OperationsDependencyRelation { - - private final AggregatedOperationCall caller; - - private final AggregatedOperationCall callee; - - private int calls; - - private int failuredCalls; - - public OperationsDependencyRelation(final AggregatedOperationCall caller, final AggregatedOperationCall callee) { - this.caller = caller; - this.callee = callee; - } - - public AggregatedOperationCall getCaller() { - return caller; - } - - public AggregatedOperationCall getCallee() { - return callee; - } - - public void addCall() { - calls++; - } - - public void addFailuredCall() { - failuredCalls++; - addCall(); - } - - public int getCalls() { - return calls; - } - - public int getFailuredCalls() { - return failuredCalls; - } - } } diff --git a/src/main/java/kieker/analysis/dev/OperationsDependencyRelation.java b/src/main/java/kieker/analysis/dev/OperationsDependencyRelation.java new file mode 100644 index 0000000000000000000000000000000000000000..5556a23db1c813cc092212637dc0817e7bec0523 --- /dev/null +++ b/src/main/java/kieker/analysis/dev/OperationsDependencyRelation.java @@ -0,0 +1,53 @@ +package kieker.analysis.dev; + +import kieker.analysis.traceanalysisdomain.AggregatedOperationCall; + +/** + * Relation between two {@link AggregatedOperationCall}. Further it stores + * the number one operation calls the other and how many of this call failed + * by throwing an exception. + * + * @author Sören Henning + * + */ +// TODO Move to domain package +public class OperationsDependencyRelation { + + private final AggregatedOperationCall caller; + + private final AggregatedOperationCall callee; + + private int calls; + + private int failuredCalls; + + public OperationsDependencyRelation(final AggregatedOperationCall caller, final AggregatedOperationCall callee) { + this.caller = caller; + this.callee = callee; + } + + public AggregatedOperationCall getCaller() { + return caller; + } + + public AggregatedOperationCall getCallee() { + return callee; + } + + public void addCall() { + calls++; + } + + public void addFailuredCall() { + failuredCalls++; + addCall(); + } + + public int getCalls() { + return calls; + } + + public int getFailuredCalls() { + return failuredCalls; + } +}