Class BaseVoltageMappingSerDe

All Implemented Interfaces:
ExtensionProvider<Network,BaseVoltageMapping>, ExtensionSerDe<Network,BaseVoltageMapping>, Versionable

@AutoService(ExtensionSerDe.class) public class BaseVoltageMappingSerDe extends AbstractExtensionSerDe<Network,BaseVoltageMapping>
Author:
Miora Vedelago <miora.ralambotiana at rte-france.com>
  • Field Details

  • Constructor Details

    • BaseVoltageMappingSerDe

      public BaseVoltageMappingSerDe()
  • 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(BaseVoltageMapping extension, SerializerContext context)
    • read

      public BaseVoltageMapping read(Network extendable, DeserializerContext context)
    • isSerializable

      public boolean isSerializable(BaseVoltageMapping extension)
      A BaseVoltageMapping extension is serializable if it contains at least one base voltage
      Parameters:
      extension - The extension to check
      Returns:
      true if it contains at least one link, false if not