]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.project/src/org/simantics/project/management/Planner.java
Merge commit '728147df5d63a3333daff3d8c0e9bfd4f5597e3a'
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / management / Planner.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.project.management;\r
12 \r
13 import java.util.HashSet;\r
14 import java.util.Set;\r
15 \r
16 /**\r
17  * Planner analyses how to install a database\r
18  *\r
19  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
20  */\r
21 public class Planner {\r
22 \r
23         BundlePool pool;\r
24         \r
25         /** Specs that are invalid */\r
26         Set<DatabaseSpec> nonworking = new HashSet<DatabaseSpec>();\r
27         \r
28         /** Solutoin specs */\r
29         Set<DatabaseSpec> working = new HashSet<DatabaseSpec>();\r
30         \r
31         /** Branched specs that are queued to be tested for validity or to be modified */\r
32         Set<DatabaseSpec> queued = new HashSet<DatabaseSpec>();\r
33         \r
34         /**\r
35          * Plan install actions from one specification to another. \r
36          * \r
37          * @param from\r
38          * @param to\r
39          * @param advisor\r
40          * @return fixed install plan\r
41          */\r
42 //      public DatabaseSpec fixSpecification(DatabaseSpec src, DatabaseSpec dst, InstallAdvisor advisor) {\r
43 //              \r
44 //      }\r
45         \r
46         \r
47         \r
48         \r
49 }\r
50 \r
51 //interface InstallAdvisor {\r
52 //      \r
53 //      public enum OntologyAction { UpgradeProjects, Downgrade \r
54 //      \r
55 //      // Ontology upgrade\r
56 //      \r
57 //}\r
58 \r