|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.ObjectDataSource
public class 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(java.lang.String name,
java.lang.Object o,
java.lang.reflect.Method m)
Constructs an ObjectDataSource using the specified name, Object and method. |
|
ObjectDataSource(java.lang.String name,
java.lang.Object o,
java.lang.String methodName)
Constructs this ObjectDataSource using the specified object and method name. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute()
Call the method on the object and return the resulting data as an object |
java.lang.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(java.lang.String name,
java.lang.Object o,
java.lang.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(java.lang.String name,
java.lang.Object o,
java.lang.reflect.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 java.lang.Object execute()
execute in interface DataSourcepublic java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||