1 2 // This file is part of the Alliance Project. 3 // Copyright (C) Laboratoire LIP6 - Departement ASIM 4 // Universite Pierre et Marie Curie 5 // 6 // The Alliance Project is free software; you can redistribute it and/or 7 // modify it under the terms of the GNU General Public License as 8 // published by the Free Software Foundation; either version 2 of the 9 // License, or (at your option) any later version. 10 // 11 // The Alliance Project is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 // General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with the Alliance Project; if not, write to the Free Software 18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 // 20 // 21 // License-Tag 22 // 23 // Date : 29/01/2004 24 // Author : Christophe Alexandre <Christophe.Alexandre@lip6.fr> 25 // 26 // Authors-Tag 27 #ifndef __PTOPLACEINS_H 28 #define __PTOPLACEINS_H 29 30 #include "PIns.h" 31 #include "PBin.h" 32 33 34 class PToPlaceIns : public PIns { 35 36 private: 37 PBin* _bin; 38 39 public: 40 PToPlaceIns(const loins* ins); 41 SetBin(PBin * NewBin)42 void SetBin(PBin* NewBin) { _bin = NewBin; } GetBin()43 PBin& GetBin() const { return *_bin; } 44 GetPos()45 PPos GetPos() const { return _bin->GetPos(); } GetHeight()46 double GetHeight() const { return _bin->GetHeight(); } GetOrientation()47 bool GetOrientation() const { return _bin->GetOrientation(); } 48 49 ostream& Print(ostream& os) const; 50 }; 51 #endif /* __PTOPLACEINS_H */ 52