|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.analysis.ObjectDataSource
A data source that returns objects. ObjectDataSource is used by DataRecorder and should not be created by users under normal circumstances.
DataRecorder| Constructor Summary | |
ObjectDataSource(String name,
Object o,
Method m)
Constructs an ObjectDataSource using the specified name, Object and method. |
|
ObjectDataSource(String name,
Object o,
String methodName)
Constructs this ObjectDataSource using the specified object and method name. |
|
| Method Summary | |
Object |
execute()
Call the method on the object and return the resulting data as an object |
String |
getName()
Gets the name of this datasource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectDataSource(String name,
Object o,
String methodName)
name - the name of this DataSourceo - the object on which to call the methodmethodName - the name of the method to call on the object. This
method must return an Object.
public ObjectDataSource(String name,
Object o,
Method m)
name - the name of this DataSourceo - the object on which to call the method that returns the datam - the method to call on the object. This method returns the data| Method Detail |
public Object execute()
execute in interface DataSourcepublic String getName()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||