RepastHPC  2.3.1
NCDataSetBuilder.h
1 /*
2  * Repast for High Performance Computing (Repast HPC)
3  *
4  * Copyright (c) 2010 Argonne National Laboratory
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with
8  * or without modification, are permitted provided that the following
9  * conditions are met:
10  *
11  * Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the following disclaimer.
13  *
14  * Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  *
18  * Neither the name of the Argonne National Laboratory nor the names of its
19  * contributors may be used to endorse or promote products derived from
20  * this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
25  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TRUSTEES OR
26  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  *
34  *
35  * NCDataSetBuilder.h
36  *
37  * Created on: Oct 14, 2010
38  * Author: nick
39  */
40 
41 #ifndef NCDATASETBUILDER_H_
42 #define NCDATASETBUILDER_H_
43 
44 #include "NCDataSet.h"
45 #include "Schedule.h"
46 
47 namespace repast {
48 
63 
64 private:
65  NCDataSet* dataSet;
66  bool returned;
67 
68 public:
77  NCDataSetBuilder(std::string file, const Schedule& schedule);
79 
87 
96 
97 };
98 
99 }
100 
101 #endif /* NCDATASETBUILDER_H_ */
repast::NCDataSource
Data source used internally by NCDataSets.
Definition: NCDataSource.h:49
repast::NCDataSetBuilder
Used to build NCDataSets to record data in NetCDF format.
Definition: NCDataSetBuilder.h:62
repast::NCDataSetBuilder::createDataSet
NCDataSet * createDataSet()
Creates the NCDataSet defined by this NCDataSetBuilder.
Definition: NCDataSetBuilder.cpp:59
repast::Schedule
The simulation schedule queue.
Definition: Schedule.h:173
repast::NCDataSetBuilder::addDataSource
NCDataSetBuilder & addDataSource(NCDataSource *source)
Adds a NCDataSource to this NCDataSetBuilder.
Definition: NCDataSetBuilder.cpp:54
repast::NCDataSetBuilder::NCDataSetBuilder
NCDataSetBuilder(std::string file, const Schedule &schedule)
Creates an NCDataSetBuilder that will write to the specified file and get its tick counts from the sp...
Definition: NCDataSetBuilder.cpp:45
repast::NCDataSet
Provides data recording and writing into a single file in NetCDF format.
Definition: NCDataSet.h:64