Package repast.simphony.data2.builder
Class NonAggregateDataSetBuilder
- java.lang.Object
-
- repast.simphony.data2.builder.AbstractDataSetBuilder
-
- repast.simphony.data2.builder.NonAggregateDataSetBuilder
-
- All Implemented Interfaces:
DataSetBuilder<NonAggregateDataSource>
public class NonAggregateDataSetBuilder extends AbstractDataSetBuilder implements DataSetBuilder<NonAggregateDataSource>
Builds datasets from a description of them.- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.data2.builder.AbstractDataSetBuilder
id, sinkBuilders
-
-
Constructor Summary
Constructors Constructor Description NonAggregateDataSetBuilder(String id, Class<?> targetType)
Creates a NonAggregateDataSetBuilder that will build a dataset with the specified id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataSource(NonAggregateDataSource dataSource)
Adds the specified data source to this builder.DataSet
create()
Creates the DataSet.void
defineMethodDataSource(String id, Class<?> objType, String methodName)
Defines a method data sources to be added to the data set built by this builder.boolean
isAggregate()
Gets whether or not this DataSetBuilder builds an aggregate DataSet.-
Methods inherited from class repast.simphony.data2.builder.AbstractDataSetBuilder
addDataSink, addFileDataSinkBuilder, defineConsoleDataSink, defineScheduleParameters, getId, getScheduleParameters, isScheduleAtEnd
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.data2.builder.DataSetBuilder
addDataSink, addFileDataSinkBuilder, defineConsoleDataSink, defineScheduleParameters, getId, getScheduleParameters, isScheduleAtEnd
-
-
-
-
Method Detail
-
isAggregate
public boolean isAggregate()
Description copied from interface:DataSetBuilder
Gets whether or not this DataSetBuilder builds an aggregate DataSet.- Specified by:
isAggregate
in interfaceDataSetBuilder<NonAggregateDataSource>
- Returns:
- true if this builder builds an aggregate DataSet, otherwise false.
-
addDataSource
public void addDataSource(NonAggregateDataSource dataSource)
Adds the specified data source to this builder. The data source will be source of data for the data set created by this builder.- Specified by:
addDataSource
in interfaceDataSetBuilder<NonAggregateDataSource>
- Parameters:
dataSource
- the data source to add
-
create
public DataSet create()
Description copied from interface:DataSetBuilder
Creates the DataSet.- Specified by:
create
in interfaceDataSetBuilder<NonAggregateDataSource>
- Returns:
- the created DataSet.
-
defineMethodDataSource
public void defineMethodDataSource(String id, Class<?> objType, String methodName)
Defines a method data sources to be added to the data set built by this builder. The data source will be named by the id, and call the specified method on objects of the specified type.- Parameters:
id
-objType
-methodName
-
-
-