diff --git a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/BehaviorModel.java b/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/BehaviorModel.java deleted file mode 100644 index 917c8bb702f9b9b62a1659ff4ee8962475cc7419..0000000000000000000000000000000000000000 --- a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/BehaviorModel.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * ============================================== - * PMX : Performance Model eXtractor - * ============================================== - * - * (c) Copyright 2014-2015, by Juergen Walter and Contributors. - * - * Project Info: http://descartes.tools/pmx - * - * All rights reserved. This software is made available under the terms of the - * Eclipse Public License (EPL) v1.0 as published by the Eclipse Foundation - * http://www.eclipse.org/legal/epl-v10.html - * - * This software is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse Public License (EPL) - * for more details. - * - * You should have received a copy of the Eclipse Public License (EPL) - * along with this software; if not visit http://www.eclipse.org or write to - * Eclipse Foundation, Inc., 308 SW First Avenue, Suite 110, Portland, 97204 USA - * Email: license (at) eclipse.org - * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. - * in the United States and other countries.] - */ -package tools.descartes.pmx.util.cmbg; - - -public class BehaviorModel { - - public Service getInitialStateGetService() { - // TODO Auto-generated method stub - return new Service(); - } - - /** Returns the name of the service */ - public String getName() { - return null; - } - -} diff --git a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/CMBG.java b/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/CMBG.java deleted file mode 100644 index f91b9e117145a545b9d489136aaefd2c63fa6458..0000000000000000000000000000000000000000 --- a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/CMBG.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * ============================================== - * PMX : Performance Model eXtractor - * ============================================== - * - * (c) Copyright 2014-2015, by Juergen Walter and Contributors. - * - * Project Info: http://descartes.tools/pmx - * - * All rights reserved. This software is made available under the terms of the - * Eclipse Public License (EPL) v1.0 as published by the Eclipse Foundation - * http://www.eclipse.org/legal/epl-v10.html - * - * This software is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse Public License (EPL) - * for more details. - * - * You should have received a copy of the Eclipse Public License (EPL) - * along with this software; if not visit http://www.eclipse.org or write to - * Eclipse Foundation, Inc., 308 SW First Avenue, Suite 110, Portland, 97204 USA - * Email: license (at) eclipse.org - * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. - * in the United States and other countries.] - */ -package tools.descartes.pmx.util.cmbg; - -import java.util.ArrayList; -import java.util.List; - -import org.apache.log4j.Logger; - -/** Customer Model Behavior Graph */ -public class CMBG { - private static final Logger log = Logger - .getLogger(CMBG.class); - int population = 50; //TODO -// CInteger.parseInt(creatorTools.getThisWorkloadModel() -// .getWorkloadIntensity().getFormula()) - - public int getPopulation(){ - return population; - } - - public Service getInitialState(){ - return new Service(); - } - - public List<Double> getrelativeFrequencies() { - //BehaviorMix.getRelativeFrequencies(); - List<Double> relativeFrequencies = new ArrayList<Double>(); - relativeFrequencies.add(0.2); - relativeFrequencies.add(0.4); - relativeFrequencies.add(0.4); - checkValidity(relativeFrequencies); - return relativeFrequencies; - } - - public List<BehaviorModel> getBehaviorModels(){ - List<BehaviorModel> behaviorModels = new ArrayList<BehaviorModel>(); - behaviorModels.add(new BehaviorModel()); - return behaviorModels; -// BehaviorModel - } - - private static void checkValidity(List<Double> relativeFrequencies) { - // TODO consider rounding errors - double result = 0; - for(double frequency: relativeFrequencies){ - result += frequency; - } - if(result > 1.0){ - log.warn("RelativeFrequencies "+ relativeFrequencies+ ": Sum > 1!"); - } - } -} diff --git a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/Service.java b/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/Service.java deleted file mode 100644 index 2b2562d61ecd4551fc1cc2872154ce0d3e6944a6..0000000000000000000000000000000000000000 --- a/tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/Service.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * ============================================== - * PMX : Performance Model eXtractor - * ============================================== - * - * (c) Copyright 2014-2015, by Juergen Walter and Contributors. - * - * Project Info: http://descartes.tools/pmx - * - * All rights reserved. This software is made available under the terms of the - * Eclipse Public License (EPL) v1.0 as published by the Eclipse Foundation - * http://www.eclipse.org/legal/epl-v10.html - * - * This software is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the Eclipse Public License (EPL) - * for more details. - * - * You should have received a copy of the Eclipse Public License (EPL) - * along with this software; if not visit http://www.eclipse.org or write to - * Eclipse Foundation, Inc., 308 SW First Avenue, Suite 110, Portland, 97204 USA - * Email: license (at) eclipse.org - * - * [Java is a trademark or registered trademark of Sun Microsystems, Inc. - * in the United States and other countries.] - */ -package tools.descartes.pmx.util.cmbg; - -public class Service { - - public String getName (){ - return "to be implemented"; - } - -}