Package org.cloudsimplus.traces.google
Interface TraceField<R extends org.cloudsimplus.traces.google.GoogleTraceReaderAbstract>
-
- All Known Implementing Classes:
GoogleMachineEventsTraceReader.FieldIndex
,GoogleTaskEventsTraceReader.FieldIndex
,GoogleTaskUsageTraceReader.FieldIndex
public interface TraceField<R extends org.cloudsimplus.traces.google.GoogleTraceReaderAbstract>
An interface to be implemented byEnum
s 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
All Methods Instance Methods Abstract Methods 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 Detail
-
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
-
-