Interface TraceField<R extends org.cloudsimplus.traces.google.GoogleTraceReaderAbstract>

All Known Implementing Classes:
GoogleTaskUsageTraceReader.FieldIndex, MachineEventField, TaskEventField

public interface TraceField<R extends org.cloudsimplus.traces.google.GoogleTraceReaderAbstract>
An interface to be implemented by Enums representing a field in a Google Trace File. Each enum instance is used to get values from fields of the trace in the correct generic type T and possibly making some unit conversions (if required by the specific field represented by the enum instance).
Since:
CloudSim Plus 4.0.0
Author:
Manoel Campos da Silva Filho
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getValue(R reader)
    Gets the value (from a line read from a trace file) of the field associated to the enum instance.
  • Method Details

    • getValue

      <T> T getValue(R reader)
      Gets the value (from a line read from a trace file) of the field associated to the enum instance.
      Type Parameters:
      T - the type to convert the value read from the trace to
      Parameters:
      reader - the reader for the trace file
      Returns:
      the field value converted to a specific type