2 //=============================================================================
6 * Event Supplier for the simulation
8 * @author Michael Kircher (mk1@cs.wustl.edu)
10 //=============================================================================
19 #include "DOVE_Supplier.h"
21 struct Schedule_Viewer_Data
23 char operation_name
[BUFSIZ
];
28 u_long completion_time
;
29 u_long computation_time
;
33 * @class Event_Supplier
35 * @brief Event Supplier.
37 * Reads Scheduler information out of a file and
38 * feeds it with additional navigation and
39 * weapon data into the dove_supplier, which
40 * is connected to the event channel
45 Event_Supplier (int argc
, ACE_TCHAR
** argv
);
49 /// connect the DOVE_Supplier
52 /// here is really something going on,
53 /// here we deliver the messages
54 void start_generating_events ();
56 /// Load the scheduling information into memory
57 void load_schedule_data (ACE_Unbounded_Queue
<Schedule_Viewer_Data
*> &schedule_data
);
61 /// just a helper to put all the information into the CORBA::Any
62 void insert_event_data (CORBA::Any
&data
,
63 ACE_Unbounded_Queue_Iterator
<Schedule_Viewer_Data
*> &schedule_iter
);
65 unsigned int get_options (int argc
, ACE_TCHAR
*argv
[]);
67 DOVE_Supplier dOVE_Supplier_
;
68 Navigation navigation_
;
73 unsigned long total_messages_
;
74 ACE_TCHAR
*input_file_name_
;
77 #endif /* EVENT_SUP_H */