Class ValidationFormatterCsvWriter

java.lang.Object
com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter
com.powsybl.loadflow.validation.io.ValidationFormatterCsvWriter
All Implemented Interfaces:
ValidationWriter, AutoCloseable

public class ValidationFormatterCsvWriter extends AbstractValidationFormatterWriter
Author:
Massimo Ferraro <[email protected]>
  • Field Summary

  • Constructor Summary

    Constructors
    Constructor
    Description
    ValidationFormatterCsvWriter(String id, Class<? extends TableFormatterFactory> formatterFactoryClass, TableFormatterConfig formatterConfig, Writer writer, boolean verbose, ValidationType validationType, boolean compareResults)
     
    ValidationFormatterCsvWriter(String id, Class<? extends TableFormatterFactory> formatterFactoryClass, Writer writer, boolean verbose, ValidationType validationType, boolean compareResults)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Column[]
     
    protected void
    write(String generatorId, double p, double q, double v, double targetP, double targetQ, double targetV, double expectedP, boolean connected, boolean voltageRegulatorOn, double minP, double maxP, double minQ, double maxQ, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.GeneratorData generatorData, boolean found, boolean writeValues)
     
    protected void
    write(String svcId, double p, double q, double vControlled, double vController, double nominalVcontroller, double reactivePowerSetpoint, double voltageSetpoint, boolean connected, StaticVarCompensator.RegulationMode regulationMode, double bMin, double bMax, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.SvcData svcData, boolean found, boolean writeValues)
     
    protected void
    write(String busId, double incomingP, double incomingQ, double loadP, double loadQ, double genP, double genQ, double batP, double batQ, double shuntP, double shuntQ, double svcP, double svcQ, double vscCSP, double vscCSQ, double lineP, double lineQ, double danglingLineP, double danglingLineQ, double twtP, double twtQ, double tltP, double tltQ, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.BusData busData, boolean found, boolean writeValues)
     
    protected void
    write(String branchId, double p1, double p1Calc, double q1, double q1Calc, double p2, double p2Calc, double q2, double q2Calc, double r, double x, double g1, double g2, double b1, double b2, double rho1, double rho2, double alpha1, double alpha2, double u1, double u2, double theta1, double theta2, double z, double y, double ksi, int phaseAngleClock, boolean connected1, boolean connected2, boolean mainComponent1, boolean mainComponent2, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.FlowData flowData, boolean found, boolean writeValues)
     
    protected void
    write(String twtId, double error, double upIncrement, double downIncrement, double rho, double rhoPreviousStep, double rhoNextStep, int tapPosition, int lowTapPosition, int highTapPosition, double targetV, TwoSides regulatedSide, double v, boolean connected, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.TransformerData twtData, boolean found, boolean writeValues)
     
    protected void
    write(String shuntId, double q, double expectedQ, double p, int currentSectionCount, int maximumSectionCount, double bPerSection, double v, boolean connected, double qMax, double nominalV, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.ShuntData shuntData, boolean found, boolean writeValues)
     
    protected void
    write(String twtId, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.Transformer3WData transformer3wData1, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.Transformer3WData transformer3wData2, boolean found, boolean writeValues)
     

    Methods inherited from class com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter

    close, createTableFormatter, getValidated, setValidationCompleted, write, write, write, write, write, write, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getColumns

      protected Column[] getColumns()
      Specified by:
      getColumns in class AbstractValidationFormatterWriter
    • write

      protected void write(String branchId, double p1, double p1Calc, double q1, double q1Calc, double p2, double p2Calc, double q2, double q2Calc, double r, double x, double g1, double g2, double b1, double b2, double rho1, double rho2, double alpha1, double alpha2, double u1, double u2, double theta1, double theta2, double z, double y, double ksi, int phaseAngleClock, boolean connected1, boolean connected2, boolean mainComponent1, boolean mainComponent2, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.FlowData flowData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String generatorId, double p, double q, double v, double targetP, double targetQ, double targetV, double expectedP, boolean connected, boolean voltageRegulatorOn, double minP, double maxP, double minQ, double maxQ, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.GeneratorData generatorData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String busId, double incomingP, double incomingQ, double loadP, double loadQ, double genP, double genQ, double batP, double batQ, double shuntP, double shuntQ, double svcP, double svcQ, double vscCSP, double vscCSQ, double lineP, double lineQ, double danglingLineP, double danglingLineQ, double twtP, double twtQ, double tltP, double tltQ, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.BusData busData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String svcId, double p, double q, double vControlled, double vController, double nominalVcontroller, double reactivePowerSetpoint, double voltageSetpoint, boolean connected, StaticVarCompensator.RegulationMode regulationMode, double bMin, double bMax, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.SvcData svcData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String shuntId, double q, double expectedQ, double p, int currentSectionCount, int maximumSectionCount, double bPerSection, double v, boolean connected, double qMax, double nominalV, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.ShuntData shuntData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String twtId, double error, double upIncrement, double downIncrement, double rho, double rhoPreviousStep, double rhoNextStep, int tapPosition, int lowTapPosition, int highTapPosition, double targetV, TwoSides regulatedSide, double v, boolean connected, boolean mainComponent, boolean validated, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.TransformerData twtData, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException
    • write

      protected void write(String twtId, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.Transformer3WData transformer3wData1, com.powsybl.loadflow.validation.io.AbstractValidationFormatterWriter.Transformer3WData transformer3wData2, boolean found, boolean writeValues) throws IOException
      Specified by:
      write in class AbstractValidationFormatterWriter
      Throws:
      IOException