RePast
v. 2.0

uchicago.src.sim.analysis
Class ObjectSequence

java.lang.Object
  |
  +--uchicago.src.sim.analysis.ObjectSequence
All Implemented Interfaces:
Sequence

public class ObjectSequence
extends Object
implements Sequence

A source for sequence data from a single object. ObjectSequence is used by SequenceGraph and should not be created by a user under normal circumstances.

See Also:
SequenceGraph

Constructor Summary
ObjectSequence(Object o, String methodName)
          Construct this ObjectSequence using the specified object and specified method name.
 
Method Summary
 double getSValue()
          Call the method on the object and return the result as a double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSequence

public ObjectSequence(Object o,
                      String methodName)
Construct this ObjectSequence using the specified object and specified method name. Calling the method named by methodName on the object returns the data for the sequence.

Method Detail

getSValue

public double getSValue()
Call the method on the object and return the result as a double.

Specified by:
getSValue in interface Sequence
Returns:
the value to be plotted.

RePast
v. 2.0

Bug reports and feature requests to RePast