replicodesettings.h 2.47 KB
Newer Older
1 2 3 4 5 6 7
/* This file is part of the KDE project
   Copyright (C) 2014 Martin Sandsmark <martin.sandsmark@kde.org>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.
8

9 10 11 12
   This library 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
   Library General Public License for more details.
13

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef REPLICODESETTINGS_H
#define REPLICODESETTINGS_H

#include <QObject>

class QIODevice;

class ReplicodeSettings : public QObject
{
    Q_OBJECT
public:
31
    explicit ReplicodeSettings(QObject *parent = nullptr);
32 33 34 35 36 37 38 39 40 41 42 43
    void load();
    void save();
    void setDefaults();

    ///////
    // Load
    QString userOperatorPath;
    QString userClassPath;
    QString sourcePath;

    ///////
    // Init
44 45 46
    int basePeriod = 0;
    int reductionCoreCount = 0;
    int timeCoreCount = 0;
47 48 49

    /////////
    // System
50 51 52 53 54
    int perfSamplingPeriod = 0;
    float floatTolerance = 0;
    int timeTolerance = 0;
    int primaryTimeHorizon = 0;
    int secondaryTimeHorizon = 0;
55 56

    // Model
57 58
    float mdlInertiaSuccessRateThreshold = 0;
    int mdlInertiaCountThreshold = 0;
59 60

    // Targeted Pattern Extractor
61 62
    float tpxDeltaSuccessRateThreshold = 0;
    int tpxTimehorizon{};
63 64

    // Simulation
65 66 67
    int minimumSimulationTimeHorizon = 0;
    int maximumSimulationTimeHorizon = 0;
    float simulationTimeHorizon = 0;
68 69 70

    ////////
    // Debug
71 72 73 74 75 76 77 78
    bool debug = false;
    int notificationMarkerResilience = 0;
    int goalPredictionSuccessResilience = 0;
    int debugWindows = 0;
    int traceLevels = 0;

    bool getObjects = false;
    bool decompileObjects = false;
79
    QString decompilationFilePath;
80
    bool ignoreNamedObjects = false;
81
    QString objectsPath;
82
    bool testObjects = false;
83 84 85

    //////
    // Run
86 87
    int runTime = 0;
    int probeLevel = 0;
88

89 90 91
    bool getModels = false;
    bool decompileModels = false;
    bool ignoreNamedModels = false;
92
    QString modelsPath;
93
    bool testModels = false;
94 95 96
};

#endif // REPLICODESETTINGS_H