Skip to content
Snippets Groups Projects
Select Git revision
  • 1430ab9cc2f703c1641cc68d2ad1da71cca6bbb5
  • master default
  • julia
  • created_preprocessor_repo
4 results

StaticModel.hh

Blame
  • Forked from Dynare / preprocessor
    Source project has a limited visibility.
    ComputingTasks.hh 48.09 KiB
    /*
     * Copyright © 2003-2024 Dynare Team
     *
     * This file is part of Dynare.
     *
     * Dynare 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.
     *
     * Dynare 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 Dynare.  If not, see <https://www.gnu.org/licenses/>.
     */
    
    #ifndef COMPUTING_TASKS_HH
    #define COMPUTING_TASKS_HH
    
    #include <memory>
    #include <optional>
    #include <ostream>
    
    #include "DynamicModel.hh"
    #include "ModelEquationBlock.hh"
    #include "Statement.hh"
    #include "StaticModel.hh"
    #include "SymbolList.hh"
    #include "SymbolTable.hh"
    
    class SteadyStatement : public Statement
    {
    private:
      const OptionsList options_list;
    
    public:
      explicit SteadyStatement(OptionsList options_list_arg);
      void checkPass(ModFileStructure& mod_file_struct, WarningConsolidation& warnings) override;
      void writeOutput(ostream& output, const string& basename, bool minimal_workspace) const override;
      void writeJsonOutput(ostream& output) const override;
    };
    
    class CheckStatement : public Statement
    {
    private:
      const OptionsList options_list;
    
    public:
      explicit CheckStatement(OptionsList options_list_arg);
      void checkPass(ModFileStructure& mod_file_struct, WarningConsolidation& warnings) override;
      void writeOutput(ostream& output, const string& basename, bool minimal_workspace) const override;
      void writeJsonOutput(ostream& output) const override;
    };
    
    class SimulStatement : public Statement
    {
    private:
      const OptionsList options_list;
    
    public:
      explicit SimulStatement(OptionsList options_list_arg);
      void checkPass(ModFileStructure& mod_file_struct, WarningConsolidation& warnings) override;
      void writeOutput(ostream& output, const string& basename, bool minimal_workspace) const override;
      void writeJsonOutput(ostream& output) const override;
    };
    
    class PerfectForesightSetupStatement : public Statement