Skip to content
Snippets Groups Projects
Commit f6e58e46 authored by Sören Henning's avatar Sören Henning
Browse files

Extract OperationsDependencyRelation to own class

parent 452c94c9
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
......@@ -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;
}
}
}
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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment