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 __PFIXEDINS_H 28 #define __PFIXEDINS_H 29 30 #include "PIns.h" 31 #include "PPos.h" 32 #include "mut.h" 33 #include "mph.h" 34 35 class PFixedIns : public PIns { 36 37 private: 38 const phins* _pins; 39 PPos _pos; 40 double _height; 41 42 public: 43 PFixedIns(const loins* ins, const phins* pins, int dx, int dy); ~PFixedIns()44 ~PFixedIns() {} 45 GetHeight()46 double GetHeight() const { return _height; } GetPos()47 PPos GetPos() const { return _pos; } 48 49 ostream& Print(ostream& os) const; 50 }; 51 52 #endif /* __PFIXEDINS_H */ 53