org.rrd4j.data

## Class PDef

- java.lang.Object
- - org.rrd4j.data.Source
  - - org.rrd4j.data.PDef

- All Implemented Interfaces:
    NonRrdSource

      class PDef
      extends Source
      implements NonRrdSource

  RRD PDEF (Plottable Data Source Definition) implementation.
  Creates data sources from plottable objects that can provide values based on timestamps.

- - ### Field Summary

    - ### Fields inherited from class org.rrd4j.data.Source

      `timestamps, values`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PDef(String name, IPlottable plottable2)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `calculate(long tStart, long tEnd, DataProcessor dataProcessor)` Calculates values for the specified time range.

    - ### Methods inherited from class org.rrd4j.data.Source

      `getName, getTimestamps, getValues, setTimestamps, setValues`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PDef

          PDef(String name,
               IPlottable plottable2)

  - ### Method Detail

    - #### calculate

          public void calculate(long tStart,
                                long tEnd,
                                DataProcessor dataProcessor)

      Calculates values for the specified time range.
      Specified by:
        `calculate` in interface `NonRrdSource`
      Parameters:
        `tStart` - start time for calculation
        `tEnd` - end time for calculation
        `dataProcessor` - DataProcessor object for accessing other data sources