Skip to content
Snippets Groups Projects
Commit 9240b7bf authored by Simon Spinner's avatar Simon Spinner
Browse files

Remove insertion of network delays in model.

parent 1d041ca8
No related branches found
No related tags found
No related merge requests found
......@@ -31,5 +31,4 @@ public class Constants {
public static final long MONITORING_INTERVAL_IN_MILLIS = 60000;
public static final boolean ADD_NETWORK_DELAYS = true;
}
......@@ -804,21 +804,6 @@ public class ModelExtractionService extends AgentController implements Service<M
iterationCount.setCharacterization(ModelVariableCharacterizationType.EMPIRICAL);
loop.setLoopIterationCount(iterationCount);
loop.setLoopBodyBehavior(ServicebehaviorFactory.eINSTANCE.createComponentInternalBehavior());
// We may add delay actions to represent the network delays for
// remote external calls.
if (Constants.ADD_NETWORK_DELAYS) {
if (isRemoteCall(outgoingInvocation)) {
InternalAction delayAction = ServicebehaviorFactory.eINSTANCE.createInternalAction();
ResourceDemand demand = ServicebehaviorFactory.eINSTANCE.createResourceDemand();
demand.setCharacterization(ModelVariableCharacterizationType.EMPIRICAL);
demand.setName("Network");
demand.setResourceType(
ModelSkeletonUtil.adopt(this, getContainerScope().getSystemScope().getDelayResourceType()));
delayAction.getResourceDemand().add(demand);
loop.getLoopBodyBehavior().getActions().add(delayAction);
}
}
loop.getLoopBodyBehavior().getActions().add(callAction);
// We assume that the external calls are inserted in
......
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