/**
 * \file core/spoms/scenario.cpp
 * \date 16/02/2026
 * \author Aurélien Berthier, BENOIST Emile, TESSIER Dominique
 * \brief store alignment interpretations for precise alignment
 */


/*
 * PeptidOMS, Spectra to protein alignment tool
 * Copyright (C) 2026  Olivier Langella
 * <olivier.langella@cnrs.fr>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


#include "scenario.h"

namespace pappso
{
namespace spoms
{
Scenario::Scenario()
{
}


Scenario::Scenario(const Scenario &scenario)
{
  previous_line_number   = scenario.previous_line_number;
  previous_column_number = scenario.previous_column_number;
  position               = scenario.position;
}


Scenario::Scenario(int previous_line_number_in, int previous_column_number_in)
{
  previous_line_number   = previous_line_number_in;
  previous_column_number = previous_column_number_in;
}

Scenario &
Scenario::operator=(const Scenario &other)
{
  previous_line_number   = other.previous_line_number;
  previous_column_number = other.previous_column_number;
  position               = other.position;
  return *this;
}

void
Scenario::update(const Scenario &scenario)
{
  previous_line_number   = scenario.previous_line_number;
  previous_column_number = scenario.previous_column_number;
  position               = scenario.position;
}


void
Scenario::update(int previous_line_number_in, int previous_column_number_in)
{
  previous_line_number   = previous_line_number_in;
  previous_column_number = previous_column_number_in;
}


void
Scenario::update(int previous_line_number_in,
                 int previous_column_number_in,
                 const AAPosition &position_in)
{
  previous_line_number   = previous_line_number_in;
  previous_column_number = previous_column_number_in;
  position               = position_in;
}


int
Scenario::getPreviousLineNumber() const
{
  return previous_line_number;
}


int
Scenario::getPreviousColumnNumber() const
{
  return previous_column_number;
}

const AAPosition &
Scenario::getPosition() const
{
  return position;
}


} // namespace spoms
} // namespace pappso
