From bab1dcc42b43f33ecc6edf32f04184d42754af06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Walter?= <juergen.walter@uni-wuerzburg.de>
Date: Thu, 15 Dec 2016 12:09:00 +0100
Subject: [PATCH] removed unused files

---
 .../pmx/util/cmbg/BehaviorModel.java          | 42 ----------
 .../tools/descartes/pmx/util/cmbg/CMBG.java   | 77 -------------------
 .../descartes/pmx/util/cmbg/Service.java      | 35 ---------
 3 files changed, 154 deletions(-)
 delete mode 100644 tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/BehaviorModel.java
 delete mode 100644 tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/CMBG.java
 delete mode 100644 tools.descartes.pmx.builder/src/tools/descartes/pmx/util/cmbg/Service.java

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 917c8bb7..00000000
--- 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 f91b9e11..00000000
--- 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 2b2562d6..00000000
--- 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";
-	}
-
-}
-- 
GitLab