/* * ResourceScenario.h - TaskJuggler * * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004, 2005 Chris Schlaeger * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * $Id$ */ #ifndef _ResourceScenario_h_ #define _ResourceScenario_h_ #include "Task.h" namespace TJ { class ResourceScenario { friend class Resource; public: ResourceScenario() : allocatedTasks(), firstSlot(-1), lastSlot(-1) { } ~ResourceScenario() { } void addTask(const Task* t) { if (!allocatedTasks.contains(const_cast(t))) allocatedTasks.append(const_cast(t)); } private: TaskList allocatedTasks; int firstSlot; int lastSlot; } ; } // namespace TJ #endif