]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.simulation/src/org/simantics/simulation/history/HistoryImportResult.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.simulation / src / org / simantics / simulation / history / HistoryImportResult.java
1 /*******************************************************************************\r
2  * Copyright (c) 2014 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     Semantum Oy - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.simulation.history;\r
13 \r
14 import org.simantics.databoard.annotations.Optional;\r
15 import org.simantics.databoard.util.Bean;\r
16 \r
17 /**\r
18  * A result class returned stored history import from database to disk.\r
19  * \r
20  * @author Tuukka Lehtonen\r
21  * @see HistoryUtil#importHistory(org.simantics.db.Resource,\r
22  *      org.simantics.history.HistoryManager)\r
23  */\r
24 public class HistoryImportResult {\r
25 \r
26         @Optional public String error;\r
27         @Optional public Bean collectorState;\r
28 \r
29         public HistoryImportResult() {\r
30         }\r
31 \r
32         public HistoryImportResult(String error) {\r
33                 this.error = error;\r
34         }\r
35 \r
36 }