--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.project.management;\r
+\r
+import java.util.HashSet;\r
+import java.util.Set;\r
+\r
+/**\r
+ * Planner analyses how to install a database\r
+ *\r
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
+ */\r
+public class Planner {\r
+\r
+ BundlePool pool;\r
+ \r
+ /** Specs that are invalid */\r
+ Set<DatabaseSpec> nonworking = new HashSet<DatabaseSpec>();\r
+ \r
+ /** Solutoin specs */\r
+ Set<DatabaseSpec> working = new HashSet<DatabaseSpec>();\r
+ \r
+ /** Branched specs that are queued to be tested for validity or to be modified */\r
+ Set<DatabaseSpec> queued = new HashSet<DatabaseSpec>();\r
+ \r
+ /**\r
+ * Plan install actions from one specification to another. \r
+ * \r
+ * @param from\r
+ * @param to\r
+ * @param advisor\r
+ * @return fixed install plan\r
+ */\r
+// public DatabaseSpec fixSpecification(DatabaseSpec src, DatabaseSpec dst, InstallAdvisor advisor) {\r
+// \r
+// }\r
+ \r
+ \r
+ \r
+ \r
+}\r
+\r
+//interface InstallAdvisor {\r
+// \r
+// public enum OntologyAction { UpgradeProjects, Downgrade \r
+// \r
+// // Ontology upgrade\r
+// \r
+//}\r
+\r