Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.charts / src / org / simantics / charts / ui / CSVExportPlan.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.charts.ui;
13
14 import java.io.File;
15 import java.util.Collection;
16 import java.util.Deque;
17 import java.util.HashSet;
18
19 import org.simantics.db.common.NamedResource;
20 import org.simantics.db.management.ISessionContext;
21 import org.simantics.history.csv.ColumnSeparator;
22 import org.simantics.history.csv.DecimalSeparator;
23 import org.simantics.history.csv.ExportInterpolation;
24 import org.simantics.project.IProject;
25
26 /**
27  * @author Antti Villberg
28  */
29 public class CSVExportPlan {
30         
31     // Input
32     ISessionContext sessionContext;
33     IProject        project;
34     Object          selection;
35     Deque<String>   recentLocations;
36
37     // Output
38     Collection<NamedResource>   models = new HashSet<NamedResource>();
39     File            exportLocation;
40
41     
42     double                              startTime;
43     double                              timeStep;
44     DecimalSeparator    decimalSeparator;
45     ColumnSeparator             columnSeparator;
46     boolean             resample;
47     ExportInterpolation samplingMode;
48     int                                 timeDigits;
49     int                                 floatDigits;
50     int                                 doubleDigits;
51
52
53     /**
54      * <code>true</code> if the model should be overwritten without a warning.
55      */
56     boolean         overwrite;
57
58     CSVExportPlan(ISessionContext sessionContext, Deque<String> recentLocations) {
59         this.sessionContext = sessionContext;
60         this.recentLocations = recentLocations;
61     }
62
63 }