
ca.appsimulations.jlqninterface.lqn.model.factory.SyncCallFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jLQNInterface Show documentation
Show all versions of jLQNInterface Show documentation
Java API to solve, analyze and manipulate Layered Qeueuing Network (LQN) models
package ca.appsimulations.jlqninterface.lqn.model.factory;
import ca.appsimulations.jlqninterface.lqn.entities.ActivityPhases;
import ca.appsimulations.jlqninterface.lqn.entities.Entry;
import ca.appsimulations.jlqninterface.lqn.entities.SynchCall;
import ca.appsimulations.jlqninterface.lqn.model.LqnModel;
public class SyncCallFactory {
public static SynchCall build(LqnModel lqnModel, Entry srcEntry, Entry destEntry, double callsMean) {
SynchCall synchCall = new SynchCall(lqnModel, destEntry, callsMean);
ActivityPhases activityPhases = srcEntry.getEntryPhaseActivities().getActivityAtPhase(1);
activityPhases.addSynchCall(synchCall);
return synchCall;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy