Package repast.simphony.data2
Class TickCountDataSource
java.lang.Object
repast.simphony.data2.TickCountDataSource
- All Implemented Interfaces:
 AggregateDataSource,DataSource,NonAggregateDataSource
public class TickCountDataSource
extends Object
implements AggregateDataSource, NonAggregateDataSource
DataSource that returns the current tick count.
- Author:
 - Nick Collier
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGets the data using the specified iterable.Gets data given the specified object.Gets the type of data produced by this DataSource.getId()Gets the unique id of this DataSource.Class<?>Gets the type of the object that this DataSource can retreive data from.voidreset()Resets this AggregateDataSource prior to the next get call.voidresetSchedule(ISchedule schedule) Resets the schedule in this TickCountDataSource to the specified schedule. 
- 
Field Details
- 
ID
- See Also:
 
 
 - 
 - 
Constructor Details
- 
TickCountDataSource
public TickCountDataSource() 
 - 
 - 
Method Details
- 
resetSchedule
Resets the schedule in this TickCountDataSource to the specified schedule.- Parameters:
 schedule- the new schedule
 - 
getSourceType
Description copied from interface:DataSourceGets the type of the object that this DataSource can retreive data from.- Specified by:
 getSourceTypein interfaceDataSource- Returns:
 - the type of the object that this DataSource can retreive data from.
 
 - 
getId
Description copied from interface:DataSourceGets the unique id of this DataSource. The id should be unique across the DataSet that this source is added to.- Specified by:
 getIdin interfaceDataSource- Returns:
 - the unique id of this DataSource.
 
 - 
getDataType
Description copied from interface:DataSourceGets the type of data produced by this DataSource.- Specified by:
 getDataTypein interfaceDataSource- Returns:
 - the type of data produced by this DataSource.
 
 - 
get
Description copied from interface:NonAggregateDataSourceGets data given the specified object.- Specified by:
 getin interfaceNonAggregateDataSource- Parameters:
 obj- an object to get the data from- Returns:
 - the retrieved data.
 
 - 
get
Description copied from interface:AggregateDataSourceGets the data using the specified iterable.- Specified by:
 getin interfaceAggregateDataSource- Parameters:
 objs- the iterable over objects to use in getting the datasize- the number of objects in the iterable- Returns:
 - the data using the specified iterable.
 
 - 
reset
public void reset()Description copied from interface:AggregateDataSourceResets this AggregateDataSource prior to the next get call.- Specified by:
 resetin interfaceAggregateDataSource
 
 -