00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef __EVENTLIST_H__
00030 #define __EVENTLIST_H__
00031
00032 #include "Event.h"
00033 #include "Vessel.h"
00034 #include "BAPBase.h"
00035
00036 #include <LEDA/list.h>
00037
00038 class EventList : public BAPBase
00039 {
00040 public:
00041 EventList();
00042 ~EventList();
00043
00044 void Print(int aWidth = 1, int aDetail = 0) const;
00045
00046 int GetLength() const;
00047 Event GetEvent(int aIndex) const;
00048 void Build(list<Vessel> aVesselList);
00049
00050 private:
00051
00052 void InsertEvent(Event aEvent);
00053 void Sort();
00054
00055
00056 int mLength;
00057 list<Event> mEventList;
00058 };
00059
00060 #endif