All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.appsimulations.jlqninterface.lqn.entities.SynchCall Maven / Gradle / Ivy

package ca.appsimulations.jlqninterface.lqn.entities;

import ca.appsimulations.jlqninterface.lqn.model.LqnModel;

import java.util.ArrayList;

/**
 * @author Yasir Shoaib (2011,2012) Contributors: Yasir Shoaib - Implementation
 * 

* Some LQN classes and their members are outlined as UML class diagrams * in LQNS User Manual. For details regarding these LQN classes and * members refer to LQNS User Manual. */ public class SynchCall extends ActivityMakingCallType { private ArrayList duplicationList = new ArrayList(); public SynchCall(LqnModel lqnModel, Entry dstEntry, double callsMean) { super(lqnModel, dstEntry, callsMean); } public SynchCall(LqnModel lqnModel, String strDstEntry, double callsMean) { super(lqnModel, strDstEntry, callsMean); } public SynchCall duplicate() { SynchCall s = new SynchCall(this.lqnModel, this.strDestEntry, this.callsMean); s.fanin = this.fanin; s.fanout = this.fanout; this.addToDuplicationList(s); return s; } private void addToDuplicationList(SynchCall s) { s.duplicationList = this.duplicationList; if (!this.duplicationList.contains(this)) { this.duplicationList.add(this); } this.duplicationList.add(s); } public ArrayList getDuplicationList() { return this.duplicationList; } @Override public Result getResult() { // TODO Auto-generated method stub return null; } @Override public String getInformation() { // TODO Auto-generated method stub return null; } @Override public String toString() { return this.getStrDestEntry() + " " + callsMean; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy