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
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.project.management;
\r
13 import java.util.HashSet;
\r
14 import java.util.Set;
\r
17 * Planner analyses how to install a database
\r
19 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
\r
21 public class Planner {
\r
25 /** Specs that are invalid */
\r
26 Set<DatabaseSpec> nonworking = new HashSet<DatabaseSpec>();
\r
28 /** Solutoin specs */
\r
29 Set<DatabaseSpec> working = new HashSet<DatabaseSpec>();
\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
35 * Plan install actions from one specification to another.
\r
40 * @return fixed install plan
\r
42 // public DatabaseSpec fixSpecification(DatabaseSpec src, DatabaseSpec dst, InstallAdvisor advisor) {
\r
51 //interface InstallAdvisor {
\r
53 // public enum OntologyAction { UpgradeProjects, Downgrade
\r
55 // // Ontology upgrade
\r