Class DiscreteMeasurementsSerDe<I extends Identifiable<I>>

java.lang.Object
com.powsybl.commons.extensions.AbstractExtensionSerDe<I,DiscreteMeasurements<I>>
com.powsybl.iidm.serde.extensions.DiscreteMeasurementsSerDe<I>
All Implemented Interfaces:
ExtensionProvider<I,DiscreteMeasurements<I>>, ExtensionSerDe<I,DiscreteMeasurements<I>>, Versionable

@AutoService(ExtensionSerDe.class) public class DiscreteMeasurementsSerDe<I extends Identifiable<I>> extends AbstractExtensionSerDe<I,DiscreteMeasurements<I>>
Author:
Miora Ralambotiana <miora.ralambotiana at rte-france.com>
  • Field Details

  • Constructor Details

    • DiscreteMeasurementsSerDe

      public DiscreteMeasurementsSerDe()
  • Method Details

    • getArrayNameToSingleNameMap

      public Map<String,String> getArrayNameToSingleNameMap()
      Description copied from interface: ExtensionSerDe
      Provides the map whose keys are the array field names and whose values are the single element field names. This is used to deduce the name of an element inside and array.
    • write

      public void write(DiscreteMeasurements<I> extension, SerializerContext context)
    • read

      public DiscreteMeasurements<I> read(I extendable, DeserializerContext context)
    • isSerializable

      public boolean isSerializable(DiscreteMeasurements<I> extension)
      Description copied from interface: ExtensionSerDe
      Check if an extension can be serialized or not.
      Parameters:
      extension - the extension to check
      Returns:
      true if the extension can be serialized, false otherwise