Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / ui / CSVExportPlan.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012 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  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.charts.ui;\r
13 \r
14 import java.io.File;\r
15 import java.util.Collection;\r
16 import java.util.Deque;\r
17 import java.util.HashSet;\r
18 \r
19 import org.simantics.db.common.NamedResource;\r
20 import org.simantics.db.management.ISessionContext;\r
21 import org.simantics.history.csv.ColumnSeparator;\r
22 import org.simantics.history.csv.DecimalSeparator;\r
23 import org.simantics.history.csv.ExportInterpolation;\r
24 import org.simantics.project.IProject;\r
25 \r
26 /**\r
27  * @author Antti Villberg\r
28  */\r
29 public class CSVExportPlan {\r
30         \r
31     // Input\r
32     ISessionContext sessionContext;\r
33     IProject        project;\r
34     Object          selection;\r
35     Deque<String>   recentLocations;\r
36 \r
37     // Output\r
38     Collection<NamedResource>   models = new HashSet<NamedResource>();\r
39     File            exportLocation;\r
40 \r
41     \r
42     double                              startTime;\r
43     double                              timeStep;\r
44     DecimalSeparator    decimalSeparator;\r
45     ColumnSeparator             columnSeparator;\r
46     boolean             resample;\r
47     ExportInterpolation samplingMode;\r
48     int                                 timeDigits;\r
49     int                                 floatDigits;\r
50     int                                 doubleDigits;\r
51 \r
52 \r
53     /**\r
54      * <code>true</code> if the model should be overwritten without a warning.\r
55      */\r
56     boolean         overwrite;\r
57 \r
58     CSVExportPlan(ISessionContext sessionContext, Deque<String> recentLocations) {\r
59         this.sessionContext = sessionContext;\r
60         this.recentLocations = recentLocations;\r
61     }\r
62 \r
63 }