com.powsybl.sensitivity.json.SensitivityJsonModule Maven / Gradle / Ivy
/**
* Copyright (c) 2021, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
*/
package com.powsybl.sensitivity.json;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.powsybl.sensitivity.*;
/**
* @author Geoffroy Jamgotchian {@literal }
*/
public class SensitivityJsonModule extends SimpleModule {
public SensitivityJsonModule() {
addDeserializer(SensitivityAnalysisParameters.class, new SensitivityAnalysisParametersDeserializer());
addSerializer(SensitivityAnalysisParameters.class, new SensitivityAnalysisParametersSerializer());
addSerializer(SensitivityFactor.class, new SensitivityFactorJsonSerializer());
addDeserializer(SensitivityFactor.class, new SensitivityFactorJsonDeserializer());
addSerializer(SensitivityValue.class, new SensitivityValueJsonSerializer());
addDeserializer(SensitivityValue.class, new SensitivityValueJsonDeserializer());
addSerializer(SensitivityVariableSet.class, new SensitivityVariableSetJsonSerializer());
addDeserializer(SensitivityVariableSet.class, new SensitivityVariableSetJsonDeserializer());
addSerializer(SensitivityAnalysisResult.SensitivityContingencyStatus.class, new SensitivityContingencyStatusJsonSerializer());
addDeserializer(SensitivityAnalysisResult.SensitivityContingencyStatus.class, new SensitivityContingencyStatusJsonDeserializer());
addSerializer(SensitivityAnalysisResult.class, new SensitivityAnalysisResultSerializer());
addDeserializer(SensitivityAnalysisResult.class, new SensitivityAnalysisResultDeserializer());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy