2
* Scenario.h - TaskJuggler
4
* Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of version 2 of the GNU General Public License as
8
* published by the Free Software Foundation.
15
#include "kplatotj_export.h"
17
#include "ScenarioList.h"
26
class KPLATOTJ_EXPORT Scenario : public CoreAttributes
28
friend int ScenarioList::compareItemsLevel(CoreAttributes* c1,
32
Scenario(Project* p, const QString& i, const QString& n, Scenario* s);
35
virtual CAType getType() const { return CA_Scenario; }
37
Scenario* getParent() const { return static_cast<Scenario*>(parent); }
39
ScenarioListIterator getSubListIterator() const;
41
void setEnabled(bool e) { enabled = e; }
42
bool getEnabled() const { return enabled; }
44
void setProjectionMode(bool p) { projectionMode = p; }
45
bool getProjectionMode() const { return projectionMode; }
47
void setOptimize(bool o) { optimize = o; }
48
bool getOptimize() const { return optimize; }
50
void setStrictBookings(bool s) { strictBookings = s; }
51
bool getStrictBookings() const { return strictBookings; }
53
void setMinSlackRate(double msr) { minSlackRate = msr; }
54
double getMinSlackRate() const { return minSlackRate; }
56
void setMaxPaths(long l) { maxPaths = l; }
57
long getMaxPaths() const { return maxPaths; }