00001
00002
00003 #include "geometry/GassiplexStripChip.hh"
00004 #include "geometry/GassiplexStripChannel.hh"
00005 #include "geometry/Board.hh"
00006
00007 #include <iostream>
00008 #include "tools/Log.hh"
00009
00010 #define NBCHANNEL 96
00011
00012 using namespace std;
00013
00014
00015 GassiplexStripChip::GassiplexStripChip(const Board& aBoard, const i32 aCol, const i32 aRow, const ui32 nbColumns,const ui32 nbRows ,const i32 aId ,const ui32 aSerialNumber )
00016 :Chip(aBoard, aCol, aRow, nbColumns, nbRows, aId, aSerialNumber)
00017 {
00018 init();
00019 type = GASSIPLEX_TYPE;
00020 };
00021
00022
00023 void GassiplexStripChip::init()
00024 {
00025 i32 channelId = id ;
00026 GassiplexStripChannel* channel = new GassiplexStripChannel(*this, 0, 0, channelId);
00027 channels.insert(make_pair(channelId,channel));
00028 };