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