etomica.data
Class AccumulatorHistory.DataSourceCount
java.lang.Object
etomica.data.DataSourceScalar
etomica.data.AccumulatorHistory.DataSourceCount
- All Implemented Interfaces:
- IDataSource, IEtomicaDataSource, Serializable
- Enclosing class:
- AccumulatorHistory
protected static class AccumulatorHistory.DataSourceCount
- extends DataSourceScalar
Simple DataSource to use as a default time DataSource. It just returns
the number of times it's been called.
- See Also:
- Serialized Form
|
Method Summary |
double |
getDataAsScalar()
Returns a single scalar value as the measurement for the given box. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccumulatorHistory.DataSourceCount
public AccumulatorHistory.DataSourceCount()
getDataAsScalar
public double getDataAsScalar()
- Description copied from class:
DataSourceScalar
- Returns a single scalar value as the measurement for the given box.
Subclasses define this method to specify the measurement they make.
- Specified by:
getDataAsScalar in class DataSourceScalar