All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.powsybl.iidm.criteria.json.duration.LimitDurationCriterionModule Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2024, 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.iidm.criteria.json.duration;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.powsybl.iidm.criteria.duration.AllTemporaryDurationCriterion;
import com.powsybl.iidm.criteria.duration.IntervalTemporaryDurationCriterion;
import com.powsybl.iidm.criteria.duration.PermanentDurationCriterion;
import com.powsybl.iidm.criteria.duration.EqualityTemporaryDurationCriterion;

/**
 * 

Jackson module for serialization/deserialization of {@link com.powsybl.iidm.criteria.duration.LimitDurationCriterion}.

* @author Olivier Perrin {@literal } */ public class LimitDurationCriterionModule extends SimpleModule { public LimitDurationCriterionModule() { addSerializer(PermanentDurationCriterion.class, new PermanentDurationCriterionSerializer()); addSerializer(AllTemporaryDurationCriterion.class, new AllTemporaryDurationCriterionSerializer()); addSerializer(EqualityTemporaryDurationCriterion.class, new EqualityTemporaryDurationCriterionSerializer()); addSerializer(IntervalTemporaryDurationCriterion.class, new IntervalTemporaryDurationCriterionSerializer()); addDeserializer(PermanentDurationCriterion.class, new PermanentDurationCriterionDeserializer()); addDeserializer(AllTemporaryDurationCriterion.class, new AllTemporaryDurationCriterionDeserializer()); addDeserializer(EqualityTemporaryDurationCriterion.class, new EqualityTemporaryDurationCriterionDeserializer()); addDeserializer(IntervalTemporaryDurationCriterion.class, new IntervalTemporaryDurationCriterionDeserializer()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy