Package repast.simphony.data2.engine
Class NonAggregateDataSourceWrapper
- java.lang.Object
-
- repast.simphony.data2.engine.NonAggregateDataSourceWrapper
-
- All Implemented Interfaces:
DataSource
,NonAggregateDataSource
public class NonAggregateDataSourceWrapper extends Object implements NonAggregateDataSource
An NonAggregateDataSource implementation that delegates to a wrapped AggregateDataSource for all calls except getting the id.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description NonAggregateDataSourceWrapper(String id, NonAggregateDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(Object obj)
Gets data given the specified object.Class<?>
getDataType()
Gets the type of data produced by this DataSource.String
getId()
Gets the unique id of this DataSource.Class<?>
getSourceType()
Gets the type of the object that this DataSource can retreive data from.
-
-
-
Constructor Detail
-
NonAggregateDataSourceWrapper
public NonAggregateDataSourceWrapper(String id, NonAggregateDataSource dataSource)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:DataSource
Gets the unique id of this DataSource. The id should be unique across the DataSet that this source is added to.- Specified by:
getId
in interfaceDataSource
- Returns:
- the unique id of this DataSource.
-
getDataType
public Class<?> getDataType()
Description copied from interface:DataSource
Gets the type of data produced by this DataSource.- Specified by:
getDataType
in interfaceDataSource
- Returns:
- the type of data produced by this DataSource.
-
getSourceType
public Class<?> getSourceType()
Description copied from interface:DataSource
Gets the type of the object that this DataSource can retreive data from.- Specified by:
getSourceType
in interfaceDataSource
- Returns:
- the type of the object that this DataSource can retreive data from.
-
get
public Object get(Object obj)
Description copied from interface:NonAggregateDataSource
Gets data given the specified object.- Specified by:
get
in interfaceNonAggregateDataSource
- Parameters:
obj
- an object to get the data from- Returns:
- the retrieved data.
-
-