Skip to content
Snippets Groups Projects
Commit 8dd42eee authored by Simon Spinner's avatar Simon Spinner
Browse files
parents 0dfe648a 034846f5
No related branches found
No related tags found
No related merge requests found
...@@ -31,5 +31,4 @@ public class Constants { ...@@ -31,5 +31,4 @@ public class Constants {
public static final long MONITORING_INTERVAL_IN_MILLIS = 60000; public static final long MONITORING_INTERVAL_IN_MILLIS = 60000;
public static final boolean ADD_NETWORK_DELAYS = true;
} }
...@@ -827,21 +827,6 @@ public class ModelExtractionService extends AgentController implements Service<M ...@@ -827,21 +827,6 @@ public class ModelExtractionService extends AgentController implements Service<M
iterationCount.setCharacterization(ModelVariableCharacterizationType.EMPIRICAL); iterationCount.setCharacterization(ModelVariableCharacterizationType.EMPIRICAL);
loop.setLoopIterationCount(iterationCount); loop.setLoopIterationCount(iterationCount);
loop.setLoopBodyBehavior(ServicebehaviorFactory.eINSTANCE.createComponentInternalBehavior()); 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); loop.getLoopBodyBehavior().getActions().add(callAction);
// We assume that the external calls are inserted in // 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