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