diff options
Diffstat (limited to 'TAO/examples/Simulator')
71 files changed, 0 insertions, 13152 deletions
diff --git a/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java b/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java deleted file mode 100644 index c10ae7d766a..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -// $Id$ -// -// = FILENAME -// AnswerEvent.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Event definition for the Dialog for selecting Observables. -// -// ============================================================================ - -public class AnswerEvent extends java.util.EventObject { - - protected String selected_; - - public AnswerEvent (Object source, String selected) { - super (source); - this.selected_ = selected; - } -} - diff --git a/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java b/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java deleted file mode 100644 index 77d43646729..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/AnswerListener.java +++ /dev/null @@ -1,18 +0,0 @@ -// $Id$ -// -// = FILENAME -// AnswerListener.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// EventListener definition for the Dialog for selecting Observables. -// -// ============================================================================ - - -public class AnswerListener implements java.util.EventListener { - public void ok (AnswerEvent e) {} - public void cancel (AnswerEvent e) {} -} diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html deleted file mode 100644 index 5502857d548..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html +++ /dev/null @@ -1,30 +0,0 @@ -<HTML> -<HEAD> -<META NAME="DOVEBrowser" Content="DOVE Browser invokation"> -<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"> -<TITLE>Document Title</TITLE> -</HEAD> -<BODY> - -Note: When used with Visibroker, the gatekeeper must run in the DOVEBrowser directory! -Note: The IORs are different for each machine! So exchange the IORs below. - - -NT Name Service IOR -<PARAM NAME="NSIOR" VALUE="IOR:010000002000000049444c3a436f734e616d696e672f4e616d696e67436f6e746578743a312e30000100000000000000520000000101000015000000636f727269646f2e63732e777573746c2e65647500003a272e0000005033353265633733313030303537613538526f6f74504f412f6368696c645f706f612f4e616d6553657276696365"> - -Unix Name ServiceIOR -<PARAM NAME="NSIOR" VALUE="IOR:000000000000002049444c3a436f734e616d696e672f4e616d696e67436f6e746578743a312e3000000000010000000000000042000100000000000674616e676f00953f0000002e5033353265623733353030306533653133526f6f74504f412f6368696c645f706f612f4e616d6553657276696365"> - -Use this to run it with the appletviewer and Visibroker -<param name=org.omg.CORBA.ORBClass value=com.visigenic.vbroker.orb.ORB> - -Use this to run it within Netscape -<param name=USE_ORB_LOCATOR value=true> - -<APPLET code="DOVEBrowserApplet.class" width=700 height=600> -<PARAM NAME="NSIOR" VALUE="IOR:010000002000000049444c3a436f734e616d696e672f4e616d696e67436f6e746578743a312e30000100000000000000520000000101000015000000636f727269646f2e63732e777573746c2e65647500003a272e0000005033353265633733313030303537613538526f6f74504f412f6368696c645f706f612f4e616d6553657276696365"> -</APPLET> - -</BODY> -</HTML> diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java deleted file mode 100644 index 6c3ef2e71e3..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ -// -// = FILENAME -// DOVEBrowser.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Entry point for the demo. -// -// ============================================================================ - - -import java.awt.*; - -public class DOVEBrowser { - - DemoCore demoCore_; - - public DOVEBrowser () { - super (); - } - - public void init (String nameServiceIOR, String nameServicePort, - String[] args, boolean use_queueing) { - - demoCore_ = new DemoCore (nameServiceIOR, - nameServicePort, - args, - use_queueing, - null); - demoCore_.show (); - demoCore_.run (); - } - - public static void main (String[] args) { - String nameServiceIOR = null; - String nameServicePort = null; - boolean use_queueing = false; - int arg_index = 0; - - // Loop through command line arguments, acting on relevant options - while (args.length > arg_index) - { - System.out.println ("args.length [" + args.length + "] arg_index [" + - arg_index + "]"); - // Set the name service IOR - if (args[arg_index].equals ("-queue")) - { - ++arg_index; - use_queueing = true; - } - else if ((args[arg_index].equals ("-ORBnameserviceior")) && - (args.length > arg_index + 1)) - { - System.out.println ("switch [" + args[arg_index] + "]"); - System.out.println ("value [" + args[arg_index + 1] + "]"); - nameServiceIOR = args[arg_index + 1]; - System.out.println ("nameServiceIOR [" + nameServiceIOR + "]"); - arg_index += 2; - } - // Set the name service port - else if ((args[arg_index].equals ("-ORBnameserviceport")) && - (args.length > arg_index + 1)) - { - System.out.println ("switch [" + args[arg_index] + "]"); - System.out.println ("value [" + args[arg_index + 1] + "]"); - nameServicePort = args[arg_index + 1]; - System.out.println ("nameServicePort [" + nameServicePort + "]"); - arg_index += 2; - } - // Skip over anything else - else - { - System.out.println ("Skipping [" + args[arg_index] + "]"); - arg_index ++; - } - } - - DOVEBrowser doveBrowser = new DOVEBrowser(); - doveBrowser.init (nameServiceIOR, nameServicePort, args, use_queueing); - } -} - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java deleted file mode 100644 index 160eb3a363b..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ -// -// = FILENAME -// DOVEBrowserApplet.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Entry point for the demo when started inside an applet. -// -// ============================================================================ - - -import java.awt.*; - -public class DOVEBrowserApplet extends java.applet.Applet { - - DemoCore demoCore_; - static String nameServiceIOR_ = null; - - public DOVEBrowserApplet () { - super (); - } - - public void init () { - // in case of an applet use the following line, else not! - nameServiceIOR_ = this.getParameter ("NSIOR"); - - if (nameServiceIOR_ == null) { - System.out.println ("The DOVE Browser cannot run, because no Naming Service IOR was found!"); - return; - } - - demoCore_ = new DemoCore (nameServiceIOR_, // name service IOR - null, // name service port - null, // args - false, // don't use queueing - this); // pointer to the applet - demoCore_.show (); - demoCore_.run (); - } -} - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DataHandler.java b/TAO/examples/Simulator/DOVEBrowser/DataHandler.java deleted file mode 100644 index 090cccf089d..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DataHandler.java +++ /dev/null @@ -1,34 +0,0 @@ -// $Id$ -// -// = FILENAME -// DataHandler.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the interface for data handling in the simulation demo -// using the Event Channel as transport media. -// -// ============================================================================ - -import org.omg.CORBA.*; - -public interface DataHandler { - - // entry point for an consumer to put data event into the data handler - public void update (RtecEventComm.Event event); - - // get a list of the Observables names to allow selection - public java.util.Enumeration getObservablesList (); - - // get a specific Observable - public DemoObservable getObservable(String name); - - // get the property of an observable - public int getObservableProperty (String name); -} - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DemoCore.java b/TAO/examples/Simulator/DOVEBrowser/DemoCore.java deleted file mode 100644 index 9c371342923..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DemoCore.java +++ /dev/null @@ -1,204 +0,0 @@ -// $Id$ -// -// = FILENAME -// DemoCore.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class servers as the core class of the simulation demo. -// It connects the push consumer of the event service with -// one or several Java Beans. -// -// ============================================================================ - - -import java.awt.*; -import java.awt.event.*; - -public class DemoCore extends Frame { - - private static final int MAX_VIS_COMPS = 10; - - private PushConsumerFactory pushConsumerFactory_; - private VisCompFactory visCompFactory_; - private DataHandler dataHandler_; - private java.util.Vector vis_comp_list_; - private int countVisComp_ = 0; - private GridBagLayout gridbag_; - private GridBagConstraints constraints_; - private boolean use_queueing_ = false; - private boolean connections_established_ = false; - - DemoCore (String nameServiceIOR, - String nameServicePort, - String[] args, - boolean use_queueing, - java.applet.Applet applet) { - super (); - - use_queueing = use_queueing; - - setSize (600,400); - setBounds (new Rectangle (50,50,800,500)); - setVisible (true); - - gridbag_ = new GridBagLayout(); - constraints_ = new GridBagConstraints(); - constraints_.fill = GridBagConstraints.BOTH; - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - this.setLayout (gridbag_); - - // Instantiate the DataHandler and the PushConsumer - dataHandler_ = new NavWeapDataHandler (); - pushConsumerFactory_ = new PushConsumerFactory (dataHandler_, - nameServiceIOR, - nameServicePort, - args, - use_queueing_, - applet); - - // List of Visualization Components - vis_comp_list_ = new java.util.Vector(); - - MenuBar menubar_ = new MenuBar (); - Menu menu_ = new Menu ("File"); - MenuItem menu_quit_item_ = new MenuItem ("Quit"); - menu_quit_item_.setEnabled (true); - MenuItem menu_add_item_ = new MenuItem ("Add"); - menu_add_item_.setEnabled (true); - menu_.add (menu_add_item_); - menu_.add (menu_quit_item_); - menubar_.add (menu_); - - setMenuBar (menubar_); - - menu_quit_item_.addActionListener (new ActionListener () - { - public void actionPerformed (ActionEvent e) { - System.exit (0); - } - }); - - menu_add_item_.addActionListener (new ActionListener () - { - public void actionPerformed (ActionEvent e) { - ObservablesDialog obsDialog_ = - new ObservablesDialog (DemoCore.this, - dataHandler_.getObservablesList()); - obsDialog_.addAnswerListener (new AnswerListener () - { - public void ok (AnswerEvent e) - { - DemoCore.this.addConnection (e.selected_); - } - }); - obsDialog_.setVisible (true); - } - }); - - // instantiate the Factory for Visualization Components - visCompFactory_ = new VisCompFactory (); - - // Traverse the args looking for switches that determine connections. - int arg_index = 0; - while (args.length > arg_index) - { - if (args[arg_index].equals ("-dualECdemo") || - args[arg_index].equals ("-dualECdemo1") || - args[arg_index].equals ("-dualECdemo2")) - { - // Use monotonic scales in the double precision data windows - DoubleVisComp.monotonic_scale (true); - - // Establish connections - if (! connections_established_) - { - connections_established_ = true; - addConnection ("Weapons"); - addConnection ("Weapons Latency (100 ns)"); - addConnection ("Weapons Latency Jitter (100 ns)"); - addConnection ("Navigation"); - addConnection ("Navigation Latency (100 ns)"); - addConnection ("Navigation Latency Jitter (100 ns)"); - break; - } - } - // Skip over anything else. - else - { - arg_index ++; - } - } - - - // If connections have not been established, set up defaults - if (! connections_established_) - { - connections_established_ = true; - addConnection ("Weapons"); - addConnection ("Weapons Latency (100 ns)"); - addConnection ("Navigation"); - addConnection ("Navigation Latency (100 ns)"); - } - } - - - public boolean addConnection (String selected) { - // to not fill too many into it - if (countVisComp_ < MAX_VIS_COMPS) { - - // get a reference to the Observable - DemoObservable observable_ = dataHandler_.getObservable (selected); - - if (observable_ != null) { - - VisComp visComp_ = visCompFactory_.getNewVisComp (observable_.getProperty (), selected); - - if (visComp_ != null) { - vis_comp_list_.addElement (visComp_); - - // connect the Observer with the Observable - observable_.addObserver (visComp_); - - countVisComp_++; - - // not more than three in a row - if (countVisComp_ == 3){ - constraints_.gridwidth = GridBagConstraints.REMAINDER; - } - if (countVisComp_ > 3) { - constraints_.gridwidth = 1; - } - - gridbag_.setConstraints ((java.awt.Component) visComp_, constraints_); - - // add the Visualization Component to the Frame - DemoCore.this.add ((java.awt.Component) visComp_); - DemoCore.this.show (); - - return true; - } - } - } - return false; - } - - public void init () - { - } - - public void paint (Graphics g) - { - } - - public void run () - { - // Wait passive until events come in - pushConsumerFactory_.run (); - } -} - - diff --git a/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java b/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java deleted file mode 100644 index 81c85b961f8..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DemoObservable.java +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ -// -// = FILENAME -// DemoObservable.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class servers as the core class of the simulation demo -// -// ============================================================================ - - - -public abstract class DemoObservable extends java.util.Observable { - - public abstract int getProperty (); -} diff --git a/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java b/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java deleted file mode 100644 index 228d9931fc7..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java +++ /dev/null @@ -1,275 +0,0 @@ -// $Id$ -// -// = FILENAME -// DoubleVisComp.java -// -// = AUTHOR -// Seth Widoff (core graph functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying doubles. -// -// ============================================================================ - - - - -import java.awt.*; -import java.util.*; - -public class DoubleVisComp extends Canvas implements VisComp -{ - private static final int MIN_SPACING = 2; - private static final int POINT_HISTORY = 200; - private static final Font FONT = new Font ("Dialog", Font.PLAIN, 10); - - private Queue plot_; - private String title_; - private Graphics offgraphics_; - private Image offscreen_; - private Dimension offscreensize_; - private int max_value_; - private int old_max_value_; - private int spacing_; - private boolean max_increased_ = false; - private static boolean monotonic_scale_ = false; - - private float local_max_ = 0; - private static float local_max_values_ [] = null; - private static int local_max_value_count_ = 0; - private int local_max_value_index_ = 0; - - public DoubleVisComp() - { - super(); - - // Re-initialize the global array of local maxima. - local_max_init (); - - plot_ = new Queue(); - spacing_ = MIN_SPACING; - title_ = ""; - max_value_ = 1; - old_max_value_ = max_value_; - - java.util.Random rand = new java.util.Random (System.currentTimeMillis()); - float hue_ = rand.nextFloat(); - float brightness = rand.nextFloat(); - - hue_ += .075; - - if (hue_ > 1.0) - hue_ -= 1.0; - - if (brightness > 0.75) - brightness -= 0.25; - - Color new_color = Color.getHSBColor(hue_, 1, brightness); - - this.setBackground(new_color); - this.setForeground(Color.white); - } - - public static synchronized void monotonic_scale (boolean b) { - monotonic_scale_ = b; - } - - public static synchronized boolean monotonic_scale () { - return monotonic_scale_; - } - - public void setName (String title) { - title_ = title; - } - - public int getProperty () { - return Properties.DOUBLE; - } - - public Dimension getMinimumSize () { - return new Dimension (75, 75); - } - - public Dimension getPreferredSize () { - return new Dimension (175, 175); - } - - public String getName() { - return title_; - } - - public int getMax() { - return old_max_value_; - } - - public void update(java.util.Observable observable, java.lang.Object obj) - { - Double double_temp_; - try { - double_temp_ = (Double) obj; - } - catch (Exception excp) { - double_temp_ = new Double (0.0); - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - - float new_point = double_temp_.floatValue(); - Float temp = (Float)plot_.dequeue_tail(); - plot_.enqueue_head(new Float(new_point)); - - if (new_point > local_max_) - { - local_max_ = new_point; - local_max_values_ [local_max_value_index_] = local_max_; - } - - if (monotonic_scale_) - { - float global_max = 0; - global_max = global_max_value (); - - while (global_max > max_value_) - max_value_ *= 2; - - while ((global_max < max_value_/2) && (max_value_ > old_max_value_)) - max_value_ /= 2; - } - else - { - while (local_max_ > max_value_) - max_value_ *= 2; - - while ((local_max_ < max_value_/2) && (max_value_ > old_max_value_)) - max_value_ /= 2; - } - - repaint(); - } - - public void update(Graphics g) - { - Dimension d = getSize (); - float tmp, value_1, value_2; - FontMetrics fm = g.getFontMetrics (); - Enumeration queue_iter = plot_.forward_iterator(); - int x1 = d.width - 8, y1, x2, y2, fheight = fm.getHeight (), i; - String value = "Value (of " + max_value_ + "): " + String.valueOf(plot_.head()); - - if ((offscreen_ == null) || - (offscreensize_.width != d.width - 8) || - (offscreensize_.height != d.height - 8)) - { - offscreen_ = createImage(d.width - 8, d.height - 8); - offscreensize_ = new Dimension(d.width - 8, d.height - 8); - offgraphics_ = offscreen_.getGraphics(); - offgraphics_.setFont(FONT); - } - - g.setColor (Color.lightGray); - g.draw3DRect (0, 0, d.width - 1, d.height - 1, true); - g.draw3DRect (1, 1, d.width - 3, d.height - 3, true); - g.draw3DRect (2, 2, d.width - 5, d.height - 5, true); - - local_max_ = 0; - - offgraphics_.setColor (getBackground()); - offgraphics_.fillRect (0, 0, offscreensize_.width, offscreensize_.height); - offgraphics_.setColor (getForeground()); - offgraphics_.drawString(title_, 5, fheight); - offgraphics_.drawString(value, 5, offscreensize_.height - 5); - - value_1 = ((Float)queue_iter.nextElement()).floatValue(); - while (queue_iter.hasMoreElements()) - { - value_2 = ((Float)queue_iter.nextElement()).floatValue(); - - if (value_1 > local_max_) - local_max_ = value_1; - - y1 = normalize(offscreensize_.height - fheight, value_1); - y2 = normalize(offscreensize_.height - fheight, value_2); - - tmp = value_2; - value_2 = value_1; - value_1 = tmp; - - x2 = x1 - spacing_; - offgraphics_.drawLine(x1, y1, x2, y2); - x1 = x2; - if (x1 <= 5) - break; - } - - local_max_values_ [local_max_value_index_] = local_max_; - - g.drawImage(offscreen_, 3, 3, null); - } - - public void paint(Graphics g) - { - Dimension d = getSize (); - int plot_length = plot_.length(); - int num_points = d.width / spacing_; - - if (plot_.length() < num_points) - { - for (int i = 0; i < num_points - plot_length; i++) - plot_.enqueue_tail(new Float(0)); - } - else if (plot_.length() > num_points) - { - for (int i = 0; i < plot_length - num_points; i++) - plot_.dequeue_tail(); - } - - update(g); - } - - private static synchronized float global_max_value () { - float result = 0; - - for (int i = 0; i < local_max_value_count_; ++i) - { - if (result < local_max_values_ [i]) - { - result = local_max_values_ [i]; - } - } - - return result; - } - - private synchronized void local_max_init () { - - // Create a new, larger, array to hold the local maxima - float new_max_values [] = - new float [local_max_value_count_ + 1]; - - // Copy the previously stored maxima (if any) into the new array. - for (int i = 0; i < local_max_value_count_; ++i) - { - new_max_values [i] = local_max_values_ [i]; - } - - // Replace the old array with the new one. - local_max_values_ = new_max_values; - - // Store the local index for this object, bump up the count. - local_max_value_index_ = local_max_value_count_; - local_max_value_count_++; - } - - - private int normalize(int height, float coord) - { - float ratio = (float)coord/max_value_; - float pixels = (float)height*ratio; - float location = (float)height - pixels; - - return Math.round(location); - } -} - - diff --git a/TAO/examples/Simulator/DOVEBrowser/MTDataHandlerAdapter.java b/TAO/examples/Simulator/DOVEBrowser/MTDataHandlerAdapter.java deleted file mode 100644 index 5025c0a8e6d..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/MTDataHandlerAdapter.java +++ /dev/null @@ -1,76 +0,0 @@ -// $Id$ - -// This is an adapter class for a data handler to be used in a separate -// thread. The adapter provides a push method that places an event -// set into its synchronized internal MTQueue. It runs a separate thread -// which blocks until there is an event in the queue, then dequeues the -// event and then unpacks it and updates the underlying data handler. - -public class MTDataHandlerAdapter extends Thread -{ - // Both the queue and the underlying data handler are private - private MTQueue queue_ = null; - private DataHandler dataHandler_ = null; - private boolean use_queueing_ = false; - - // Constructor. - MTDataHandlerAdapter (DataHandler dh, boolean use_queueing) - { - dataHandler_ = dh; - use_queueing_ = use_queueing; - if (use_queueing_) - { - queue_ = new MTQueue (); - } - } - - // Enqueue an event set for the handler thread. - public void push (RtecEventComm.Event[] events) - { - if (use_queueing_) - { - queue_.enqueue_tail (events); - } - else - { - for (int i = 0; i < events.length; ++i) - { - if(events[i].header.type == - PushConsumer.ACE_ES_EVENT_NOTIFICATION) - { - dataHandler_.update (events[i]); - } - } - } - } - - // Process enqueued event sets in a separate thread. - public void run () - { - // Loop forever, handling events. - for (;;) - { - try - { - // Pull an event set from the head of the queue - RtecEventComm.Event[] events = - (RtecEventComm.Event[]) queue_.dequeue_head (); - - for (int i = 0; i < events.length; ++i) - { - if(events[i].header.type == - PushConsumer.ACE_ES_EVENT_NOTIFICATION) - { - dataHandler_.update (events[i]); - } - } - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } - } -} - - diff --git a/TAO/examples/Simulator/DOVEBrowser/MTQueue.java b/TAO/examples/Simulator/DOVEBrowser/MTQueue.java deleted file mode 100644 index 357c872c4dc..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/MTQueue.java +++ /dev/null @@ -1,200 +0,0 @@ -// $Id$ - -// This is a queue class for use by multiple threads, with at least one -// thread enqueueing objects and another dequeueing them. The dequeue_* -// methods block the thread if there are no more objects in the queue, -// while the try_dequeue_* methods do not block but rather return a -// null reference if there is nothing in the queue. -public class MTQueue -{ - // Initially, the head and tail of the queue are null - MTQueue_Node head_ = null; - MTQueue_Node tail_ = null; - - // Constructor - does nothing. - public MTQueue () - { - } - - // Places a passed Object at the end of the queue. - public synchronized void enqueue_tail (Object new_data) - { - // Create a new node to hold the object. - MTQueue_Node new_node = new MTQueue_Node(new_data); - - // Insert the node into the queue. - if (tail_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.prev_ = tail_; - tail_.next_ = new_node; - tail_ = new_node; - } - - // Wake up any waiting threads - notifyAll (); - } - - // Places a passed Object at the front of the queue. - public synchronized void enqueue_head(Object new_data) - { - // Create a new node to hold the object. - MTQueue_Node new_node = new MTQueue_Node(new_data); - - // Insert the node into the queue. - if (head_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.next_ = head_; - head_.prev_ = new_node; - head_ = new_node; - } - - // Wake up any waiting threads - notifyAll (); - } - - // Try to remove an object from the head of the queue - nonblocking. - public synchronized Object try_dequeue_head() - { - // Start with a null reference. - Object return_value = null; - - // If there's anything there, dequeue it. - if (head_ != null) - { - return_value = dequeue_head (); - } - - // Return what we found, if anything. - return return_value; - } - - // Remove an object from the head of the queue - blocking. - public synchronized Object dequeue_head() - { - // Start with a null reference. - Object return_value = null; - - // Wait until there's something to dequeue. - while (head_ == null) - { - try - { - wait (); - } - catch (InterruptedException e) - { - return return_value; - } - } - - // Dequeue the object at the head of the queue. Make sure - // to null out references within dequeued nodes to prevent - // out of memory errors. - if (tail_ == head_) - { - return_value = head_.data_; - head_.next_ = null; - head_.prev_ = null; - head_.data_ = null; - tail_ = null; - head_ = null; - } - else - { - return_value = head_.data_; - head_ = head_.next_; - head_.prev_.next_ = null; - head_.prev_.prev_ = null; - head_.prev_.data_ = null; - head_.prev_ = null; - } - - // Return the object we dequeued. - return return_value; - } - - // Try to remove an object from the tail of the queue - nonblocking. - public synchronized Object try_dequeue_tail () - { - // Start with a null reference. - Object return_value = null; - - // If there's anything there, dequeue it. - if (tail_ != null) - { - return_value = dequeue_tail (); - } - - // Return what we found, if anything. - return return_value; - } - - // Remove an object from the tail of the queue - blocking. - public synchronized Object dequeue_tail () - { - // Start with a null reference. - Object return_value = null; - - // Wait until there's something to dequeue. - while (tail_ == null) - { - try - { - wait (); - } - catch (InterruptedException e) - { - return return_value; - } - } - - // Dequeue the object at the back of the queue. Make sure - // to null out references within dequeued nodes to prevent - // out of memory errors. - if (tail_ == head_) - { - return_value = tail_.data_; - tail_.data_ = null; - tail_.next_ = null; - tail_.prev_ = null; - tail_ = null; - head_ = null; - } - else - { - return_value = tail_.data_; - tail_ = tail_.prev_; - tail_.next_.data_ = null; - tail_.next_.next_ = null; - tail_.next_.prev_ = null; - tail_.next_ = null; - } - - // Return the object we dequeued. - return return_value; - } -} - -class MTQueue_Node -{ - public MTQueue_Node prev_ = null; - public MTQueue_Node next_ = null;; - public Object data_; - - public MTQueue_Node(Object data) - { - data_ = data; - } -} - - diff --git a/TAO/examples/Simulator/DOVEBrowser/Makefile b/TAO/examples/Simulator/DOVEBrowser/Makefile deleted file mode 100644 index e05d9411af7..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/Makefile +++ /dev/null @@ -1,109 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -#### VisiBroker 3.3 -JAVA_DIR = /project/doc/pkg/VisiJava3.4/bin/ -IDL2JAVA = $(JAVA_DIR)idl2java -JAVAC = $(JAVA_DIR)vbjc - -#### JDK 1.2 -#### JAVA_DIR = /pkg/java_1.2b4/bin/ -#### IDL2JAVA = $(JAVA_DIR)idltojava -#### JAVAC = $(JAVA_DIR)javac - -DOVE_BROWSER_JAVA = \ - CosNaming.java \ - CosTimeBase.java \ - RtecEventComm.java \ - RtecScheduler.java \ - RtecEventChannelAdmin.java \ - Navigation.java \ - Weapons.java - -DOVE_BROWSER_CLASS = Navigation.class - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU - -BUILD = $(DOVE_BROWSER_JAVA) $(DOVE_BROWSER_CLASS) - -ifeq ($(CROSS-COMPILE),) - include $(ACE_ROOT)/include/makeinclude/macros.GNU - include $(TAO_ROOT)/rules.tao.GNU - include $(ACE_ROOT)/include/makeinclude/rules.common.GNU - include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU - include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - include $(TAO_ROOT)/taoconfig.mk - - realclean: clean - -$(RM) $(DOVE_BROWSER_JAVA) \ - $(patsubst %.java,%.idl,$(DOVE_BROWSER_JAVA)) NavWeap.idl \ - Navigation.java NavigationH*.java \ - Weapons.java WeaponsH*.java *.class CosNaming \ - RtecEventChannelAdmin RtecEventComm RtecScheduler TimeBase - -else - all default_embedded: - @echo This module is not built on CROSS-COMPILE platforms. - - clean realclean: - @echo Nothing to clean on CROSS-COMPILE platforms. -endif # ! CROSS-COMPILE - -#### No need to create object directories. -OBJDIRS = - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -.SUFFIXES: -.SUFFIXES: .class .idl .java - -#### Don't remove the .idl and .java files after building the .class files. -.PRECIOUS: $(DOVE_BROWSER_JAVA) $(patsubst %.java,%.idl,$(DOVE_BROWSER_JAVA)) - -%.java: %.idl - @$(IDL2JAVA) $< - - -#### VisiBroker 3.2 idl2java creates references to a _long type, -#### but never defines it. Just change it to long if it's present. -files=$(find . -name '*.java' | xargs egrep -l ' _long') -ifneq (,$(files)) - %.class: %.java - perl -pi -e 's/\b_long\b/long/g' $(files) -else # ! vbjc - %.class: %.java -endif # vbjc - @$(JAVAC) *.java - -NavWeap.idl: ../NavWeap.idl - @cp -p $< . - -Navigation.java Weapons.java: NavWeap.idl - @$(IDL2JAVA) $< - -%.idl: $(TAO_ROOT)/orbsvcs/orbsvcs/%.idl - @cp -p $< . - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java b/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java deleted file mode 100644 index 737edeaf5ac..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java +++ /dev/null @@ -1,120 +0,0 @@ -// $Id$ -// ============================================================================ -// -// -// = FILENAME -// NS_Resolve.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// Modified for new protocol by Hans Ridder <ridder@veritas.com> -// -// = DESCRIPTION -// Resolves the initial reference to the Naming service, -// the orb has to be given as a parameter to the -// resolve_name_service call. -// -// -// ============================================================================ - - - - -import org.omg.CORBA.*; -import java.net.*; -import java.io.*; - - -public class NS_Resolve -{ - private static final String ACE_DEFAULT_MULTICAST_ADDR = "224.9.9.2"; - private static final int TAO_DEFAULT_NAME_SERVER_REQUEST_PORT = 10013; - private static final String TAO_SERVICEID_NAMESERVICE = "NameService"; - - int nameServicePort_; - - public NS_Resolve (String nameServicePort) - { - if (nameServicePort != null) - { - // If a name service port string was given, parse it - nameServicePort_ = Integer.parseInt (nameServicePort); - } - else - { - // Otherwise, just use the default TAO name service port - nameServicePort_ = TAO_DEFAULT_NAME_SERVER_REQUEST_PORT; - } - } - - public org.omg.CORBA.Object resolve_name_service (org.omg.CORBA.ORB orb) - { - try - { - // Create the multicast socket at any port - MulticastSocket sendSocket = new MulticastSocket(0); - - // Create a socket at any port for the Naming Service answer - ServerSocket listenSocket = new ServerSocket(0); - - // Create a message with the port and service name in it, - // length and port number are in network byte order - ByteArrayOutputStream msg = new ByteArrayOutputStream(); - int dataLength = TAO_SERVICEID_NAMESERVICE.length() + 2; - msg.write((dataLength >> 8) & 0xff); - msg.write(dataLength & 0xff); - msg.write((listenSocket.getLocalPort() >> 8) & 0xff); - msg.write(listenSocket.getLocalPort() & 0xff); - msg.write(TAO_SERVICEID_NAMESERVICE.getBytes()); - - // Define the group for the multicast - InetAddress group = InetAddress.getByName(ACE_DEFAULT_MULTICAST_ADDR); - // Create a datagram with the message and send it - sendSocket.send(new DatagramPacket(msg.toByteArray(), - msg.size(), - group, nameServicePort_)); - - // Wait 3 seconds for the Naming Service to connect - listenSocket.setSoTimeout(3000); - Socket replySocket = listenSocket.accept(); - - // @@ The restriction right now is that the length of the IOR cannot be longer than 4096 - byte[] reply = new byte[4096]; - - // Receive the reply (0 terminated string) or time out - replySocket.setSoTimeout(3000); - InputStream in = replySocket.getInputStream(); - int length; - for (length = 0; length < reply.length; length++) { - if ((reply[length] = (byte) in.read()) == 0) { - break; - } - } - - // Close all the sockets - sendSocket.close(); - listenSocket.close(); - replySocket.close(); - - // Convert the String into ?? - return orb.string_to_object(new String(reply, 0, length)); - } - catch (SocketException e) - { - System.err.println (e); - } - catch (java.io.InterruptedIOException e) - { - System.err.println ("NS_Resolve: The receive lasted too long"); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - catch (java.io.IOException e) - { - System.err.println (e); - } - return null; - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java b/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java deleted file mode 100644 index 1ce57c686e4..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java +++ /dev/null @@ -1,305 +0,0 @@ -// $Id$ -// -// = FILENAME -// NavWeapDataHandler.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is an implementation of the interface Data Handler, -// it handles Navigation and Weapons data, where statistic data is -// part of it. Several Observables are declared, they can be accessed by -// any number of Observers, which could reside in a Java Bean for example. -// -// ============================================================================ - -import org.omg.CORBA.*; - -public class NavWeapDataHandler implements DataHandler { - - java.util.Hashtable ObservablesTable; - int received_events_; - - - // Observable for Navigation data - class NavigationObservable extends DemoObservable { - - // to ask which kind of viewer is needed to display data - public int getProperty () { - return Properties.NAVIGATION; - } - - public void updateNavigation (Navigation navigation) { - setChanged (); - notifyObservers (navigation); - } - - } - - class WeaponsObservable extends DemoObservable { - - // to ask which kind of viewer is needed to display data - public int getProperty () { - return Properties.WEAPONS; - } - - public void updateWeapons (Weapons weapons) { - setChanged (); - notifyObservers (weapons); - } - } - - class Cpu_UsageObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateCpu_Usage (double utilization) { - setChanged (); - Double temp_ = new Double (utilization); - notifyObservers (temp_); - } - } - class OverheadObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateOverhead (double overhead) { - setChanged (); - Double temp_ = new Double (overhead); - notifyObservers (temp_); - } - } - class JitterObservable extends DemoObservable { - double latency = 0.0; - double avg_latency = 0.0; - double sample_count = 0.0; - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateJitter (long completion_time, - long computation_time, - long arrival_time) { - - latency = (double)(completion_time) - - (double)(computation_time) - - (double)(arrival_time); - latency = latency > 0 ? latency : 0; - - sample_count = sample_count + 1.0; - avg_latency = (avg_latency * (sample_count - 1.0) + latency) / - (sample_count); - - double jitter_ = (double)Math.abs(latency - avg_latency); - - setChanged (); - Double temp_ = new Double (jitter_); - notifyObservers (temp_); - } - } - class DeadlinesObservable extends DemoObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateDeadlines (long deadline_time, - long completion_time) { - - double missed_ = (deadline_time < completion_time) ? 1.0 : 0.0; - Double temp_ = new Double (missed_); - setChanged (); - notifyObservers (temp_); - } - } - class CriticalDeadlinesObservable extends DeadlinesObservable { - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateDeadlines (long deadline_time, - long completion_time, - long criticality) { - - double missed_ = ((criticality > 0) && - (deadline_time < completion_time)) ? 1.0 : 0.0; - Double temp_ = new Double (missed_); - setChanged (); - notifyObservers (temp_); - } - } - - class LatencyObservable extends DemoObservable { - double latency = 0.0; - double last_latency = 0.0; - - public int getProperty () { - return Properties.DOUBLE; - } - - public void updateLatency (long completion_time, - long computation_time, - long arrival_time) { - last_latency = latency; - latency = (double)(completion_time) - - (double)(computation_time) - - (double)(arrival_time); - latency = latency > 0 ? latency : 0; - - setChanged (); - Double temp_ = new Double(latency); - notifyObservers (temp_); - } - } - - - public synchronized void update (RtecEventComm.Event event) { - - Any any_value = event.data.any_value; - - if (any_value.type().equal (NavigationHelper.type())) - { - Navigation navigation_ = NavigationHelper.extract (any_value); - - // if the navigation data structure's update data flag is set, - // update its scheduling data with actual values from the EC - if (navigation_.update_data > 0) - { - navigation_.arrival_time = event.header.creation_time; - navigation_.completion_time = event.header.ec_send_time; - navigation_.deadline_time += event.header.creation_time; - } - - NavigationObservable nobs = (NavigationObservable)ObservablesTable.get ("Navigation"); - nobs.updateNavigation (navigation_); - Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("CPU Usage"); - cobs.updateCpu_Usage (navigation_.utilization); - OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("Overhead"); - oobs.updateOverhead (navigation_.overhead); - JitterObservable jobs = (JitterObservable)ObservablesTable.get ("Latency Jitter (100 ns)"); - jobs.updateJitter (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - JitterObservable njobs = (JitterObservable)ObservablesTable.get ("Navigation Latency Jitter (100 ns)"); - njobs.updateJitter (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("Missed Deadlines"); - dobs.updateDeadlines (navigation_.deadline_time, - navigation_.completion_time); - CriticalDeadlinesObservable cdobs = - (CriticalDeadlinesObservable)ObservablesTable.get ("Missed Critical Deadlines"); - cdobs.updateDeadlines (navigation_.deadline_time, - navigation_.completion_time, - navigation_.criticality); - LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("Latency (100 ns)"); - lobs.updateLatency (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - LatencyObservable nlobs = (LatencyObservable)ObservablesTable.get ("Navigation Latency (100 ns)"); - nlobs.updateLatency (navigation_.completion_time, - navigation_.computation_time, - navigation_.arrival_time); - received_events_++; - } - else if (any_value.type().equal (WeaponsHelper.type())) - { - Weapons weapons_ = WeaponsHelper.extract (any_value); - - // if the weapons structure's update data flag is set, update - // itss scheduling data with actual values from the EC - if (weapons_.update_data > 0) - { - weapons_.arrival_time = event.header.creation_time; - weapons_.completion_time = event.header.ec_send_time; - weapons_.deadline_time += event.header.creation_time; - } - - WeaponsObservable wobs = (WeaponsObservable)ObservablesTable.get ("Weapons");; - wobs.updateWeapons (weapons_); - Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("CPU Usage"); - cobs.updateCpu_Usage (weapons_.utilization); - OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("Overhead"); - oobs.updateOverhead (weapons_.overhead); - JitterObservable jobs = (JitterObservable)ObservablesTable.get ("Latency Jitter (100 ns)"); - jobs.updateJitter (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - JitterObservable wjobs = (JitterObservable)ObservablesTable.get ("Weapons Latency Jitter (100 ns)"); - wjobs.updateJitter (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("Missed Deadlines"); - dobs.updateDeadlines (weapons_.deadline_time, - weapons_.completion_time); - CriticalDeadlinesObservable cdobs = (CriticalDeadlinesObservable)ObservablesTable.get ("Missed Critical Deadlines"); - cdobs.updateDeadlines (weapons_.deadline_time, - weapons_.completion_time, - weapons_.criticality); - LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("Latency (100 ns)"); - lobs.updateLatency (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - LatencyObservable wlobs = (LatencyObservable)ObservablesTable.get ("Weapons Latency (100 ns)"); - wlobs.updateLatency (weapons_.completion_time, - weapons_.computation_time, - weapons_.arrival_time); - received_events_++; - } - else - { - System.out.println ("Received wrong type information"); - - System.out.println ("Received any_value.type (): [" + - any_value.type() + "]"); - - System.out.println ("Expected NavigationHelper.type (): [" + - NavigationHelper.type() + "]"); - - System.out.println ("OR WeaponsHelper.type (): [" + - WeaponsHelper.type() + "]"); - } - } - - NavWeapDataHandler () { - ObservablesTable = new java.util.Hashtable(); - - ObservablesTable.put ("Navigation", new NavigationObservable()); - ObservablesTable.put ("Weapons", new WeaponsObservable()); - ObservablesTable.put ("CPU Usage", new Cpu_UsageObservable()); - ObservablesTable.put ("Overhead", new OverheadObservable()); - ObservablesTable.put ("Latency Jitter (100 ns)", new JitterObservable()); - ObservablesTable.put ("Navigation Latency Jitter (100 ns)", new JitterObservable()); - ObservablesTable.put ("Weapons Latency Jitter (100 ns)", new JitterObservable()); - ObservablesTable.put ("Missed Deadlines", new DeadlinesObservable()); - ObservablesTable.put ("Missed Critical Deadlines", new CriticalDeadlinesObservable()); - ObservablesTable.put ("Latency (100 ns)", new LatencyObservable()); - ObservablesTable.put ("Weapons Latency (100 ns)", new LatencyObservable()); - ObservablesTable.put ("Navigation Latency (100 ns)", new LatencyObservable()); - } - - public java.util.Enumeration getObservablesList () { - return ObservablesTable.keys (); - } - - public DemoObservable getObservable(String name) { - return (DemoObservable)ObservablesTable.get (name); - } - - public int getObservableProperty (String name) { - DemoObservable obs = (DemoObservable)ObservablesTable.get (name); - return obs.getProperty (); - } -} - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java b/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java deleted file mode 100644 index 3d7a217389b..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java +++ /dev/null @@ -1,350 +0,0 @@ -// $Id$ -// -// = FILENAME -// NavigationVisComp.java -// -// = AUTHOR -// Seth Widoff (core functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying navigation. -// -// ============================================================================ - - - -import java.awt.*; -import java.io.*; - -public class NavigationVisComp extends Panel implements VisComp -{ - private Alt_Horizon alt_hor_ = new Alt_Horizon (); - private Position pos_ = new Position (); - - public NavigationVisComp () - { - setLayout (new BorderLayout (0, 2)); - add ("Center", alt_hor_); - add ("South", pos_); - } - - public void setName (String title) { - } - - public int getProperty () { - return Properties.NAVIGATION; - } - - public void update (java.util.Observable observable, java.lang.Object obj) { - Navigation navigation_ = null; - try { - navigation_ = (Navigation) obj; - } - catch (Exception excp) { - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - if (navigation_ != null) { - // make sure all the values are in the proper range. - navigation_.roll = (navigation_.roll > 180 || navigation_.roll < -180) ? - 0 : navigation_.roll; - navigation_.pitch = (navigation_.pitch > 90 || navigation_.pitch < -90) ? - 0 : navigation_.pitch; - - // update the artificial horizon - alt_hor_.update_display (navigation_.roll, navigation_.pitch); - - navigation_.pitch = (navigation_.position_latitude > 90 || navigation_.position_latitude < -90) ? - 0 : navigation_.position_latitude; - navigation_.pitch = (navigation_.position_longitude > 100 || navigation_.position_longitude < 00) ? - 0 : navigation_.position_longitude; - navigation_.pitch = (navigation_.altitude > 90 || navigation_.altitude < -90) ? - 0 : navigation_.altitude; - navigation_.pitch = (navigation_.heading > 180 || navigation_.heading < -180) ? - 0 : navigation_.heading; - - // update the position display - pos_.update_display (navigation_.position_latitude, - navigation_.position_longitude, - navigation_.altitude, - navigation_.heading); - } - } -} - -class Alt_Horizon -extends Canvas -{ - private final static Color GREEN = new Color (0, 100, 0), - BLUE = new Color (30, 144, 255); - - private Graphics offgraphics_; - private Image offscreen_; - private Dimension offscreensize_; - - private int roll_ = 0, pitch_ = 0; - - public void update_display (int roll, int pitch) - { - roll_ = roll; - pitch_ = pitch; - - repaint (); - } - - public Dimension getPreferredSize () - { - return new Dimension (180, 180); - } - - public Dimension getMinimumSize () - { - return new Dimension (80, 80); - } - - public void paint (Graphics g) - { - update (g); - } - - public void update (Graphics g) - { - Dimension d = getSize (); - int rad, angles[] = { 180, 0 }; - Point center; - - if ((offscreen_ == null) || (d.width != offscreensize_.width) || - (d.height != offscreensize_.height)) - { - offscreen_ = createImage (d.width, d.height); - offscreensize_ = new Dimension (d.width, d.height); - offgraphics_ = offscreen_.getGraphics (); - offgraphics_.setFont (getFont()); - - // g.setColor (Color.lightGray); - // g.draw3DRect (0, 0, d.width - 1, d.height - 1, true); - // g.draw3DRect (1, 1, d.width - 3, d.height - 3, true); - // g.draw3DRect (2, 2, d.width - 5, d.height - 5, true); - } - - offgraphics_.setColor (getBackground()); - offgraphics_.fillRect (0, 0, d.width, d.height); - offgraphics_.setColor (BLUE); - - // Calculate from the dimensions, the largest square. - center = new Point (d.width / 2, d.height / 2); - rad = ((center.x < center.y) ? center.x : center.y); - - // Draw a circle of blue - offgraphics_.fillOval (center.x - rad, center.y - rad, - 2*rad, 2*rad); - - // Roll the horizon based on the roll angle - if (roll_ != 0) - roll_horizon (rad, angles); - - // Pitch the horizon based on the pitch angle - if (pitch_ != 0) - pitch_horizon (rad, angles); - - // Draw the resulting terrain - draw_horizon (rad, center, angles); - - // Draw the plotted Image. - g.drawImage (offscreen_, 0, 0, null); - } - - private void draw_horizon (int rad, Point center, int[] angles) - { - // Draw an arc - int arc_angle = - ((angles[0] > angles[1]) ? - (360 - angles[0]) + angles[1] : - (angles[1] - angles[0])); - - Polygon remainder = new Polygon (); - - offgraphics_.setColor (GREEN); - offgraphics_.fillArc (center.x - rad, center.y - rad, - 2*rad, 2*rad, - angles[0], arc_angle); - - if (pitch_ != 0) - { - if ((pitch_ > 0 && Math.abs (roll_) < 90) || - (pitch_ < 0 && Math.abs (roll_) >= 90)) - offgraphics_.setColor (BLUE); - - int cover_angle = (angles[0] + arc_angle/2 + ((arc_angle < 180) ? 180 : 0)) % 360; - - // System.out.println (points[0] + " " + points[1]); - - // System.out.println (accepted_point); - - remainder.addPoint (center.x + polar_to_rect_x (rad, cover_angle), - center.y - polar_to_rect_y (rad, cover_angle)); - remainder.addPoint (center.x + polar_to_rect_x (rad, angles[0]), - center.y - polar_to_rect_y (rad, angles[0])); - remainder.addPoint (center.x + polar_to_rect_x (rad, angles[1]), - center.y - polar_to_rect_y (rad, angles[1])); - offgraphics_.fillPolygon (remainder); - //offgraphics_.setColor (getBackground ()); - //offgraphics_.drawPolygon (remainder); - } - } - - private void pitch_horizon (int rad, int[] angles) - { - boolean upside_down = Math.abs (roll_) >= 90; - int angle_shift = (int) Math.round ((double)(90 - (Math.abs (roll_) % 180)) / 90.0 * pitch_); - - // System.out.println ("angle_shift " + angle_shift); - - angles[0] += angle_shift; - angles[1] -= angle_shift; - - - } - - private void roll_horizon (int rad, int[] angles) - { - // Roll the left and right points of the terrain. - angles[0] += roll_; - angles[1] += roll_; - - if (angles[0] < 0) - angles[0] += 360; - - if (angles[1] < 0) - angles[1] += 360; - } - - private int polar_to_rect_x (int rad, int angle) - { - return (int) Math.round (rad * Math.cos ((double)angle * Math.PI/180.0)); - } - - private int polar_to_rect_y (int rad, int angle) - { - return (int) Math.round (rad * Math.sin ((double)angle * Math.PI/180.0)); - } - - private double caclulate_slope (int rad, int[] angles) - { - int x1 = polar_to_rect_x (rad, angles[0]), - x2 = polar_to_rect_x (rad, angles[1]), - y1 = polar_to_rect_y (rad, angles[0]), - y2 = polar_to_rect_y (rad, angles[1]); - - return ((double) (y2 - y1)) / ((double) (x2 - x1)); - } - - private Point[] line_circle_intesect (int rad, double y_intercept, double slope) - { - double r_2 = (double)(rad * rad), - s_2 = slope * slope, - a_x = s_2 + 1, - b_x = 2.0 * slope * y_intercept, - c_x = y_intercept * y_intercept - r_2; - int[] x_roots = quad_eq (a_x, b_x, c_x), - y_roots = { (int) Math.round ((double)((double) x_roots[0])*slope + y_intercept), - (int) Math.round ((double)((double) x_roots[1])*slope + y_intercept) }; - Point[] points = new Point [2]; - - points[0] = new Point (x_roots[0], y_roots[0]); - points[1] = new Point (x_roots[1], y_roots[1]); - - return points; - } - - private int calculate_angle (int rad, int x, int y) - { - /* - double angle = 0, - sin_value = Math.asin ((double)y / (double)rad), - tan_value = Math.atan ((double)y / (double)x); - - if (x >= 0) - angle = (x != 0) ? tan_value : sin_value + - ((y < 0) ? 2*Math.PI : 0); - else - angle = Math.PI + tan_value; - - return (int) Math.round (angle * 180.0 / Math.PI); - */ - - double angle = 0.0, - sin_value = Math.asin ((double)Math.abs (y) / (double)rad); - - if (x >= 0 && y >= 0) - angle = sin_value; - else if (x < 0 && y >= 0) - angle = sin_value + Math.PI/2.0; - else if (x < 0 && y < 0) - angle = sin_value + Math.PI; - else if (x >= 0 && y < 0) - angle = sin_value + 3.0*Math.PI/2.0; - - return (int) Math.round (angle * 180.0 / Math.PI); - } - - private int[] quad_eq (double a, double b, double c) - { - int[] roots = new int [2]; - double body = Math.sqrt (b*b - 4.0*a*c); - - roots[0] = (int) Math.round ((-b + body) / (2.0 * a)); - roots[1] = (int) Math.round ((-b - body) / (2.0 * a)); - - return roots; - } - - private int distance (Point point1, Point point2) - { - double xdiff = point1.x - point2.x, - ydiff = point1.y - point2.y; - - return (int) Math.round (Math.sqrt (xdiff*xdiff + ydiff*ydiff)); - } -} - -class Position extends Panel -{ - private final static Font FONT = new Font ("Dialog", Font.BOLD, 12); - private final static char DEGREE = '\u00B0'; - - private Label lat_ = new Label ("0" + DEGREE + " N", Label.RIGHT), - long_ = new Label ("0" + DEGREE + " S", Label.RIGHT), - alt_ = new Label ("0 Kft", Label.RIGHT), - heading_ = new Label ("0" + DEGREE + " ", Label.RIGHT); - - public Position () - { - Panel grid_panel = new Panel (); - - lat_.setFont (FONT); - long_.setFont (FONT); - alt_.setFont (FONT); - heading_.setFont (FONT); - - setLayout (new GridLayout (1, 4)); - add (lat_); - add (long_); - add (heading_); - add (alt_); - } - - public void update_display (int lat, int lon, int alt, int heading) - { - String lat_str = - Math.abs (lat) + "" + DEGREE + ((lat > 0) ? " N" : " S"); - String long_str = - Math.abs (lon) + "" + DEGREE + ((lon > 0) ? " E" : " W"); - - lat_.setText (lat_str); - long_.setText (long_str); - alt_.setText (alt + " Kft"); - heading_.setText (heading + "" + DEGREE + " "); - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java b/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java deleted file mode 100644 index 2ea856c24e2..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java +++ /dev/null @@ -1,90 +0,0 @@ -// $Id$ -// -// = FILENAME -// ObservablesDialog.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// Dialog for selecting Observables. -// -// ============================================================================ - -import java.awt.*; -import java.awt.event.*; - -public class ObservablesDialog extends Dialog { - - List list_; - DemoCore parent_; - AnswerListener listener_; - - ObservablesDialog (DemoCore parent,java.util.Enumeration enumeration) { - - super ((Frame)parent, "Select Observables", true); - parent_ = parent; - this.setSize(400, 300); - setBounds (new Rectangle (50,50,400,300)); - - list_ = new List (); - list_.setFont ( new Font ("Helvetica", Font.PLAIN, 10)); - list_.setSize (200,200); - - for (; enumeration.hasMoreElements();) { - list_.add ((String)enumeration.nextElement()); - } - - - Button ok_button_ = new Button ("OK"); - ok_button_.setFont ( new Font ("DialogHelvetica", Font.PLAIN, 10)); - Button cancel_button_ = new Button ("Cancel"); - cancel_button_.setFont ( new Font ("DialogHelvetica", Font.PLAIN, 10)); - - GridBagLayout gridbag_ = new GridBagLayout (); - GridBagConstraints constraints_ = new GridBagConstraints (); - - constraints_.fill = GridBagConstraints.BOTH; - this.setLayout (gridbag_); - - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - constraints_.gridwidth = GridBagConstraints.REMAINDER; - gridbag_.setConstraints (list_, constraints_); - this.add (list_); - - constraints_.weightx = 1.0; - constraints_.weighty = 1.0; - constraints_.gridwidth = GridBagConstraints.RELATIVE; - constraints_.fill = GridBagConstraints.NONE; - gridbag_.setConstraints (ok_button_, constraints_); - gridbag_.setConstraints (cancel_button_, constraints_); - this.add (ok_button_); - this.add (cancel_button_); - - ok_button_.addActionListener (new ActionListener () { - public void actionPerformed (ActionEvent e) { - - String selected_ = ObservablesDialog.this.list_.getSelectedItem (); - if (selected_ != null) { - System.out.println (">>>>> " + selected_); - if (listener_ != null) { - AnswerEvent ev = new AnswerEvent (ObservablesDialog.this, selected_); - listener_.ok (ev); - } - ObservablesDialog.this.setVisible (false); - } - } - }); - - cancel_button_.addActionListener (new ActionListener () { - public void actionPerformed (ActionEvent e) { - ObservablesDialog.this.setVisible (false); - } - }); - } - - public void addAnswerListener (AnswerListener al) { - listener_ = al; - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/Properties.java b/TAO/examples/Simulator/DOVEBrowser/Properties.java deleted file mode 100644 index 3bab887561b..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/Properties.java +++ /dev/null @@ -1,20 +0,0 @@ -// $Id$ -// -// = FILENAME -// Properties.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class defines the possible data type values carried by events -// -// ============================================================================ - - -public class Properties { - public static final int DOUBLE = 0; - public static final int NAVIGATION = 1; - public static final int WEAPONS = 2; -} - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java b/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java deleted file mode 100644 index 7e17de6fc0e..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java +++ /dev/null @@ -1,185 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// -// = FILENAME -// PushConsumer.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Push Consumer which takes the data field of the -// event and updates with it a Data Handler. -// -// -// ============================================================================ - - - -// The Consumer has to implement the Skeleton Consumer - -public class PushConsumer extends RtecEventComm._PushConsumerImplBase -{ - - public static final int ACE_ES_EVENT_ANY = 0; - public static final int ACE_ES_EVENT_SHUTDOWN = 1; - public static final int ACE_ES_EVENT_ACT = 2; - public static final int ACE_ES_EVENT_NOTIFICATION = 3; - public static final int ACE_ES_EVENT_TIMEOUT = 4; - public static final int ACE_ES_EVENT_INTERVAL_TIMEOUT = 5; - public static final int ACE_ES_EVENT_DEADLINE_TIMEOUT = 6; - public static final int ACE_ES_GLOBAL_DESIGNATOR = 7; - public static final int ACE_ES_CONJUNCTION_DESIGNATOR = 8; - public static final int ACE_ES_DISJUNCTION_DESIGNATOR = 9; - public static final int ACE_ES_EVENT_UNDEFINED = 16; - public static final int TOTAL_MESSAGES = 30; - - // Store the number of received events - private int total_received_ = 0; - private org.omg.CORBA.ORB orb_; - private MTDataHandlerAdapter dataHandlerAdapter_; - // private RtecScheduler.RT_InfoHolder rt_info_; - private RtecScheduler.handle_tHolder rt_info_; - private RtecEventChannelAdmin.EventChannel channel_admin_; - private RtecEventChannelAdmin.ConsumerAdmin consumer_admin_; - private RtecEventChannelAdmin.ProxyPushSupplier suppliers_; - - public PushConsumer (org.omg.CORBA.ORB orb, - DataHandler dataHandler, - boolean use_queueing) - { - orb_ = orb; - dataHandlerAdapter_ = - new MTDataHandlerAdapter (dataHandler, use_queueing); - if (use_queueing) - { - dataHandlerAdapter_.start (); - } - } - - - public void push (RtecEventComm.Event[] events) - { - if (total_received_ < 5) - System.out.println ("Demo Consumer: Received an event set! ->Number: " - + total_received_); - else if (total_received_ == 5) - System.out.println ("Demo Consumer: Everything is fine. " + - "Going to be mute."); - - if (events.length == 0) - { - System.err.println ("No events"); - } - else - { - total_received_++; - dataHandlerAdapter_.push (events); - } - } - - public void disconnect_push_consumer() - { - System.out.println ("Demo Consumer: Have to disconnect!"); - } - - public void open_consumer (RtecEventChannelAdmin.EventChannel event_channel_, - RtecScheduler.Scheduler scheduler_, - String name) - { - try { - - // Define Real-time information - - rt_info_ = new RtecScheduler.handle_tHolder (scheduler_.create (name)); - - scheduler_.set (rt_info_.value, - RtecScheduler.Criticality_t.VERY_LOW_CRITICALITY, - 0L, - 0L, - 0L, - 2500000, // period - RtecScheduler.Importance_t.VERY_LOW_IMPORTANCE, - 0L, - 1, - RtecScheduler.Info_Type_t.OPERATION); - - - // Register for Notification and Shutdown events - - byte payload[] = new byte[1]; - payload[0] = 0; - RtecEventComm.Event notification_event_ = new RtecEventComm.Event (); - notification_event_.header = - new RtecEventComm.EventHeader (ACE_ES_EVENT_NOTIFICATION, - 0, 1, 0, 0, 0); - - notification_event_.data = - new RtecEventComm.EventData (0, 0, 0.0, 0, - payload, orb_.create_any()); - - RtecEventChannelAdmin.Dependency dependencies_[] = new RtecEventChannelAdmin.Dependency[1]; - dependencies_[0] = new RtecEventChannelAdmin.Dependency (notification_event_, rt_info_.value); - - - // @@ Carlos please help me to set the right boolean value - RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies_, false); - - - // The channel administrator is the event channel we got from the invocation - // of this routine - - channel_admin_ = event_channel_; - - // Connect as a consumer - - consumer_admin_ = channel_admin_.for_consumers (); - - // Obtain a reference to the proxy push supplier - - suppliers_ = consumer_admin_.obtain_push_supplier (); - - suppliers_.connect_push_consumer (this, qos); - - System.out.println ("Registered the consumer successfully."); - - - } - catch (RtecEventChannelAdmin.TypeError e) - { - System.err.println ("Demo_Consumer.open_consumer: RtecEventChannelAdmin.TypeError"); - System.err.println (e); - } - catch (RtecEventChannelAdmin.AlreadyConnected e) - { - System.err.println ("Demo_Consumer.open_consumer: RtecEventChannelAdmin.AlreadyConnected"); - System.err.println (e); - } - catch (RtecScheduler.UNKNOWN_TASK e) - { - System.err.println ("Demo_Consumer.open_consumer: Unknown task"); - System.err.println (e); - } - catch (RtecScheduler.DUPLICATE_NAME e) - { - System.err.println ("Demo_Consumer.open_consumer: Duplicate names"); - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } -} - - - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 b/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 deleted file mode 100644 index 49a665569c3..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java.JDK1.2 +++ /dev/null @@ -1,179 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// -// = FILENAME -// PushConsumer.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Push Consumer which takes the data field of the -// event and updates with it a Data Handler. -// -// -// ============================================================================ - - -public class PushConsumer extends RtecEventComm._PushConsumerImplBase -{ - - public static final int ACE_ES_EVENT_ANY = 0; - public static final int ACE_ES_EVENT_SHUTDOWN = 1; - public static final int ACE_ES_EVENT_ACT = 2; - public static final int ACE_ES_EVENT_NOTIFICATION = 3; - public static final int ACE_ES_EVENT_TIMEOUT = 4; - public static final int ACE_ES_EVENT_INTERVAL_TIMEOUT = 5; - public static final int ACE_ES_EVENT_DEADLINE_TIMEOUT = 6; - public static final int ACE_ES_GLOBAL_DESIGNATOR = 7; - public static final int ACE_ES_CONJUNCTION_DESIGNATOR = 8; - public static final int ACE_ES_DISJUNCTION_DESIGNATOR = 9; - public static final int ACE_ES_EVENT_UNDEFINED = 16; - public static final int TOTAL_MESSAGES = 30; - - // Store the number of received events - private int total_received_ = 0; - private org.omg.CORBA.ORB orb_; - private DataHandler dataHandler_; - private int rt_info_; - private RtecEventChannelAdmin.EventChannel channel_admin_; - private RtecEventChannelAdmin.ConsumerAdmin consumer_admin_; - private RtecEventChannelAdmin.ProxyPushSupplier suppliers_; - - public PushConsumer (org.omg.CORBA.ORB orb, DataHandler dataHandler) - { - orb_ = orb; - dataHandler_ = dataHandler; - } - - - public void push (RtecEventComm.Event[] events) - { - if (total_received_ < 5) - System.out.println ("Demo Consumer: Received an event! ->Number: " + total_received_); - else if (total_received_ == 5) - System.out.println ("Demo Consumer: Everything is fine. Going to be mute."); - - - if (events.length == 0) - { - System.err.println ("No events"); - } - else - { - total_received_++; - - for (int i = 0; i < events.length; ++i) - { - if(events[i].type_ == ACE_ES_EVENT_NOTIFICATION) - { - try - { - dataHandler_.update (events[i].data_.any_value); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } - } - } - } - - public void disconnect_push_consumer() - { - System.out.println ("Demo Consumer: Have to disconnect!"); - } - - public void open_consumer (RtecEventChannelAdmin.EventChannel event_channel, - RtecScheduler.Scheduler scheduler, - String name) - { - - try - { - - // Define Real-time information - - rt_info_ = scheduler.create (name); - - scheduler.set (rt_info_, - RtecScheduler.Criticality.VERY_LOW_CRITICALITY, - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - 2500000, // period - RtecScheduler.Importance.VERY_LOW_IMPORTANCE, - new TimeBase.ulonglong (0,0), - 1, - RtecScheduler.Info_Type.OPERATION); - - // Register for Notification and Shutdown events - RtecEventComm.Event notification_event = - new RtecEventComm.Event (ACE_ES_EVENT_NOTIFICATION, 0, - 1, // ttl - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new TimeBase.ulonglong (0,0), - new RtecEventComm.EventData (orb_.create_any ())); - - RtecEventChannelAdmin.Dependency dependencies[] = new RtecEventChannelAdmin.Dependency[1]; - dependencies[0] = new RtecEventChannelAdmin.Dependency (notification_event, rt_info_); - - RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies, - false); - - // The channel administrator is the event channel we got from the invocation - // of this routine - channel_admin_ = event_channel; - - // Connect as a consumer - consumer_admin_ = channel_admin_.for_consumers (); - - // Obtain a reference to the proxy push supplier - suppliers_ = consumer_admin_.obtain_push_supplier (); - - suppliers_.connect_push_consumer (this, qos); - - System.out.println ("Registered the consumer successfully."); - - } - catch (RtecEventChannelAdmin.TypeError e) - { - System.err.println ("Demo_Consumer.open_consumer: Type error"); - System.err.println (e); - } - catch (RtecEventChannelAdmin.AlreadyConnected e) - { - System.err.println ("Demo_Consumer.open_consumer: Already connected"); - System.err.println (e); - } - - catch (RtecScheduler.UNKNOWN_TASK e) - { - System.err.println ("Demo_Consumer.open_consumer: Unknown task"); - System.err.println (e); - } - catch (RtecScheduler.DUPLICATE_NAME e) - { - System.err.println ("Demo_Consumer.open_consumer: Duplicate names"); - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println(e); - } - } -} - - - - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java deleted file mode 100644 index f3632cd43fa..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java +++ /dev/null @@ -1,351 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = FILENAME -// PushConsumerFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the administor/factory for a PushConsumer. -// -// ============================================================================ - - - - -public class PushConsumerFactory { - - private org.omg.CORBA.ORB orb_; - private org.omg.CORBA.BOA boa_; - private org.omg.CORBA.Object naming_service_object_; - - private DataHandler dataHandler_; - private Navigation navigation_; - private Weapons weapons_; - - private String[] ec_names_ = null; - private int ec_names_count_ = 0; - - private String[] ss_names_ = null; - private int ss_names_count_ = 0; - - private boolean use_queueing_ = false; - - public PushConsumerFactory (DataHandler dataHandler, - String nameServiceIOR, - String nameServicePort, - String[] args, - boolean use_queueing, - java.applet.Applet applet) - { - try - { - use_queueing_ = use_queueing; - dataHandler_ = dataHandler; - - // if the DOVE Browser is running as an Applet - if (applet != null) { - orb_ = org.omg.CORBA.ORB.init (applet, null); - } - else { // not running as an Applet, but as an normal Application - orb_ = org.omg.CORBA.ORB.init (); - } - boa_ = orb_.BOA_init (); - - // Get the Naming Service initial reference - - // Name Service Lookup cannot be used when running as an Applet - if (nameServiceIOR == null && applet != null) { - System.out.println (" Name Service Lookup cannot be used when running as an Applet! Quit!"); - System.exit (1); - } - - if (nameServiceIOR == null) { // only used when running via "java" or "vbj" - System.out.println ("Using the lookup protocol!"); - NS_Resolve ns_resolve_ = new NS_Resolve (nameServicePort); - naming_service_object_ = ns_resolve_.resolve_name_service (orb_); - } - else { - System.out.println ("Using the following IOR: " + nameServiceIOR); - naming_service_object_ = orb_.string_to_object (nameServiceIOR); - } - - // Walk through args and count EC and Scheduling Service names. - int arg_index = 0; - while (args.length > arg_index) - { - // Count an event service name - if ((args[arg_index].equals ("-ORBeventservicename")) && - (args.length > arg_index + 1)) - { - System.out.println ("switch [" + args[arg_index] + "]"); - System.out.println ("value [" + args[arg_index + 1] + "]"); - arg_index += 2; - ++ec_names_count_; - } - // Count a scheduling service name - else if ((args[arg_index].equals ("-ORBscheduleservicename")) && - (args.length > arg_index + 1)) - { - System.out.println ("switch [" + args[arg_index] + "]"); - System.out.println ("value [" + args[arg_index + 1] + "]"); - arg_index += 2; - ++ss_names_count_; - } - else if (args[arg_index].equals ("-dualECdemo")) - { - System.out.println ("switch [" + args[arg_index] + "]"); - ++arg_index; - ec_names_count_ += 2; - ss_names_count_ += 2; - } - else if ((args[arg_index].equals ("-dualECdemo1")) || - (args[arg_index].equals ("-dualECdemo2"))) - { - System.out.println ("switch [" + args[arg_index] + "]"); - ++arg_index; - ++ec_names_count_; - ++ss_names_count_; - } - // Skip over anything else - else - { - arg_index ++; - } - } - - // Allocate arrays for the event and schedule service names (if any) - if (ec_names_count_ > 0) - { - ec_names_ = new String [ec_names_count_]; - } - if (ss_names_count_ > 0) - { - ss_names_ = new String [ss_names_count_]; - } - - // Then traverse the args again to allocate and fill in a list - // of EC and Scheduling Service names. - arg_index = 0; - ec_names_count_ = 0; - ss_names_count_ = 0; - while (args.length > arg_index) - { - // Set an event service name. - if ((args[arg_index].equals ("-ORBeventservicename")) && - (args.length > arg_index + 1)) - { - ec_names_[ec_names_count_] = args[arg_index + 1]; - ++ec_names_count_; - arg_index += 2; - } - // Set a schedule service name. - else if ((args[arg_index].equals ("-ORBscheduleservicename")) && - (args.length > arg_index + 1)) - { - ss_names_[ss_names_count_] = args[arg_index + 1]; - ++ss_names_count_; - arg_index += 2; - } - else if (args[arg_index].equals ("-dualECdemo")) - { - ss_names_[ss_names_count_] = "DUAL_SCHED_HI"; - ss_names_[ss_names_count_ + 1] = "DUAL_SCHED_LO"; - ec_names_[ec_names_count_] = "DUAL_EC_HI"; - ec_names_[ec_names_count_ + 1] = "DUAL_EC_LO"; - ++arg_index; - ec_names_count_ += 2; - ss_names_count_ += 2; - } - else if (args[arg_index].equals ("-dualECdemo1")) - { - ss_names_[ss_names_count_] = "DUAL_SCHED_HI"; - ec_names_[ec_names_count_] = "DUAL_EC_HI"; - ++arg_index; - ++ec_names_count_; - ++ss_names_count_; - } - else if (args[arg_index].equals ("-dualECdemo2")) - { - ss_names_[ss_names_count_] = "DUAL_SCHED_LO"; - ec_names_[ec_names_count_] = "DUAL_EC_LO"; - ++arg_index; - ++ec_names_count_; - ++ss_names_count_; - } - // Skip over anything else. - else - { - arg_index ++; - } - } - - // If names for event or scheduling services have not been provided - // already, provide the default names used by the service executables. - if (ec_names_count_ == 0) - { - ec_names_count_ = 1; - ec_names_ = new String [1]; - ec_names_ [0] = "EventService"; - } - if (ss_names_count_ == 0) - { - ss_names_count_ = 1; - ss_names_ = new String [1]; - ss_names_ [0] = "ScheduleService"; - } - } - catch(org.omg.CORBA.SystemException e) { - System.err.println ("PushConsumerFactory constructor: ORB and Name Service initialization"); - System.err.println(e); - } - - } - - public class Object_is_null_exception extends Exception - { - Object_is_null_exception (String s) - { - super (s); - } - } - - public void run () - { - try - { - - // Get the Naming Context to allow resolving the EventService and - // ScheduleService - CosNaming.NamingContext naming_context_ = - CosNaming.NamingContextHelper.narrow (naming_service_object_); - - if (naming_context_ == null) - { - System.err.println ("The Naming Context is null"); - System.exit (1); - } - System.out.println ("Reference to the Naming Service is ok."); - - // Create Consumers connected to the EventService - int ss_number = 0; - RtecScheduler.Scheduler scheduler_ = null; - for (int ec_number = 0; ec_number < ec_names_count_; ++ec_number) - { - // Get a reference for the next Scheduling Service if there is one. - // Invariant: we will always execute this code at least once. - if (ss_number < ss_names_count_) - { - CosNaming.NameComponent[] ss_name_components_ = new CosNaming.NameComponent[1]; - ss_name_components_[0] = new CosNaming.NameComponent (ss_names_[ss_number],""); - org.omg.CORBA.Object scheduler_object_ = naming_context_.resolve (ss_name_components_); - - if (scheduler_object_ == null) - { - throw new Object_is_null_exception(ss_names_[ss_number] + - " Object is null"); - } - - scheduler_ = RtecScheduler.SchedulerHelper.narrow (scheduler_object_); - - if (scheduler_ == null) - { - throw new Object_is_null_exception(ss_names_[ss_number] + - " narrowed ref is null"); - } - - System.out.println ("Reference to " + - ss_names_[ss_number] + " is ok."); - - ++ss_number; - } - - // Get a reference for the next Event Service - - CosNaming.NameComponent[] ec_name_components_ = new CosNaming.NameComponent[1]; - ec_name_components_[0] = new CosNaming.NameComponent (ec_names_[ec_number],""); - org.omg.CORBA.Object event_channel_object_ = naming_context_.resolve (ec_name_components_); - - if (event_channel_object_ == null) - { - throw new Object_is_null_exception(ec_names_[ec_number] + - " Object is null"); - } - - RtecEventChannelAdmin.EventChannel event_channel_ = - RtecEventChannelAdmin.EventChannelHelper.narrow (event_channel_object_); - - if (event_channel_ == null) - { - throw new Object_is_null_exception(ec_names_[ec_number] + - " narrowed ref is null"); - } - - System.out.println ("Reference to " + - ec_names_[ec_number] + " is ok."); - - // Start the consumer - System.out.println ("Instantiating the Push Consumer for " + - ec_names_[ec_number] + ": demo_consumer_" + - ec_number + "."); - - PushConsumer pushConsumer_ = new PushConsumer (orb_, - dataHandler_, - use_queueing_); - System.out.println ("Initializing the Push Consumer for " + - ec_names_[ec_number] + ": demo_consumer_" + - ec_number + "."); - - pushConsumer_.open_consumer (event_channel_, scheduler_, - "demo_consumer_" + ec_number); - - boa_.obj_is_ready (pushConsumer_); - - } - - - // Tell the CORBA environment that we are ready - - System.out.println ("boa.obj_is_ready succeeded"); - - boa_.impl_is_ready (); - } - catch (CosNaming.NamingContextPackage.CannotProceed e) - { - System.err.println ("CosNaming.NamingContextPackage.CannotProceed"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.InvalidName e) - { - System.err.println ("CosNaming.NamingContextPackage.InvalidName"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.NotFound e) - { - System.err.println ("CosNaming.NamingContextPackage.NotFound"); - System.err.println (e); - - } - catch (Object_is_null_exception e) - { - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println ("PushConsumerFactory.run: Failure"); - System.err.println(e); - } - } - - -} // public class PushConsumerFactory - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 deleted file mode 100644 index b6039ee72d9..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java.JDK1.2 +++ /dev/null @@ -1,180 +0,0 @@ -// $Id$ -// -// ============================================================================ -// -// = FILENAME -// PushConsumerFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the administor/factory for a PushConsumer. -// -// ============================================================================ - - -public class PushConsumerFactory -{ - - private org.omg.CORBA.ORB orb_; - private org.omg.CORBA.Object naming_service_object_; - private DataHandler dataHandler_; - private Navigation navigation_; - private Weapons weapons_; - - - public PushConsumerFactory (DataHandler dataHandler, - String nameServiceIOR, - String[] args, - java.applet.Applet applet) - { - try { - dataHandler_ = dataHandler; - - // if the DOVE Browser is running as an Applet - if (applet != null) { - orb_ = org.omg.CORBA.ORB.init (applet, null); - } - else { // not running as an Applet, but as an normal Application - orb_ = org.omg.CORBA.ORB.init (args, null); - } - - // Get the Naming Service initial reference - - // Name Service Lookup cannot be used when running as an Applet - if (nameServiceIOR == null && applet != null) { - System.out.println (" Name Service Lookup cannot be used when running as an Applet! Quit!"); - System.exit (1); - } - - if (nameServiceIOR == null) { // only used when running via "java" or "vbj" - System.out.println ("Using the lookup protocol!"); - NS_Resolve ns_resolve = new NS_Resolve (); - naming_service_object_ = ns_resolve.resolve_name_service (orb_); - } - else { - System.out.println ("Using the following IOR: " + nameServiceIOR); - naming_service_object_ = orb_.string_to_object (nameServiceIOR); - } - - } - catch(org.omg.CORBA.SystemException e) { - System.err.println ("PushConsumerFactory constructor: ORB and Name Service initialization"); - System.err.println(e); - } - - } - - public class Object_is_null_exception extends Exception - { - Object_is_null_exception (String s) - { - super (s); - } - } - - public void run () - { - try - { - - // Get the Naming Context to allow resolving the EventService and - // ScheduleService - CosNaming.NamingContext naming_context = - CosNaming.NamingContextHelper.narrow (naming_service_object_); - - if (naming_context == null) - { - System.err.println ("The Naming Context is null"); - System.exit (1); - } - System.out.println ("Reference to the Naming Service is ok."); - - // Get a reference for the EventService - - CosNaming.NameComponent[] ec_name_components = new CosNaming.NameComponent[1]; - ec_name_components[0] = new CosNaming.NameComponent ("EventService",""); - org.omg.CORBA.Object event_channel_object = naming_context.resolve (ec_name_components); - - if (event_channel_object == null) - { - throw new Object_is_null_exception("EventService Object is null"); - } - - RtecEventChannelAdmin.EventChannel event_channel = - RtecEventChannelAdmin.EventChannelHelper.narrow (event_channel_object); - - System.out.println ("Reference to the Event Service is ok."); - - // Get a reference for the ScheduleService - - CosNaming.NameComponent[] s_name_components = new CosNaming.NameComponent[1]; - s_name_components[0] = new CosNaming.NameComponent ("ScheduleService",""); - org.omg.CORBA.Object scheduler_object = naming_context.resolve (s_name_components); - - if (scheduler_object == null) - { - throw new Object_is_null_exception("ScheduleService Object is null"); - } - - RtecScheduler.Scheduler scheduler = - RtecScheduler.SchedulerHelper.narrow (scheduler_object); - - System.out.println ("Reference to the Naming Service is ok."); - - - // Start the consumer - System.out.println ("Instantiating the Push Consumer."); - PushConsumer pushConsumer = new PushConsumer (orb_, dataHandler_); - System.out.println ("Initializing the Push Consumer."); - pushConsumer.open_consumer (event_channel, scheduler, "demo_consumer"); - - // Tell the CORBA environment that we are ready - - orb_.connect (pushConsumer); - - System.out.println ("Going into the event dispatching loop."); - - - java.lang.Object sync = new java.lang.Object(); - synchronized (sync) { - sync.wait(); - } - } - catch (java.lang.InterruptedException e) - { - } - catch (CosNaming.NamingContextPackage.CannotProceed e) - { - System.err.println ("CosNaming.NamingContextPackage.CannotProceed"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.InvalidName e) - { - System.err.println ("CosNaming.NamingContextPackage.InvalidName"); - System.err.println (e); - } - catch (CosNaming.NamingContextPackage.NotFound e) - { - System.err.println ("CosNaming.NamingContextPackage.NotFound"); - System.err.println (e); - } - catch (Object_is_null_exception e) - { - System.err.println (e); - } - catch(org.omg.CORBA.SystemException e) - { - System.err.println ("PushConsumerFactory.run: Failure"); - System.err.println(e); - } - } -} // public class PushConsumerFactory - - - - - - - diff --git a/TAO/examples/Simulator/DOVEBrowser/Queue.java b/TAO/examples/Simulator/DOVEBrowser/Queue.java deleted file mode 100644 index 7ffaba15c52..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/Queue.java +++ /dev/null @@ -1,190 +0,0 @@ -// $Id$ - - -import java.util.Enumeration; - -public class Queue -{ - // Friendly? - Queue_Node head_ = null; - Queue_Node tail_ = null; - - private int length_ = 0; - - public Queue() - { - } - - public Enumeration forward_iterator() - { - return new Queue_Iterator(this, Queue_Iterator.FORWARD); - } - - public Enumeration reverse_iterator() - { - return new Queue_Iterator(this, Queue_Iterator.REVERSE); - } - - public void enqueue_tail(Object new_data) - { - Queue_Node new_node = new Queue_Node(new_data); - - if (tail_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.prev_ = tail_; - tail_.next_ = new_node; - tail_ = new_node; - } - - length_++; - } - - public void enqueue_head(Object new_data) - { - Queue_Node new_node = new Queue_Node(new_data); - - if (head_ == null) - { - tail_ = new_node; - head_ = new_node; - } - else - { - new_node.next_ = head_; - head_.prev_ = new_node; - head_ = new_node; - } - - length_++; - } - - public Object dequeue_head() - { - Object return_value = null; - - if (head_ == null) - return_value = null; - else if (tail_ == head_) - { - return_value = head_.data_; - tail_ = null; - head_ = null; - } - else - { - return_value = head_.data_; - head_ = head_.next_; - head_.prev_ = null; - } - - length_--; - - return return_value; - } - - public Object dequeue_tail() - { - Object return_value = null; - - if (tail_ == null) - return_value = null; - else if (tail_ == head_) - { - return_value = tail_.data_; - tail_ = null; - head_ = null; - } - else - { - return_value = tail_.data_; - tail_ = tail_.prev_; - tail_.next_ = null; - } - - length_--; - - return return_value; - } - - public int length() - { - return length_; - } - - public Object head() - { - if (head_ != null) - return head_.data_; - else - return null; - } - - public Object tail() - { - if (tail_ != null) - return tail_.data_; - else - return null; - } -} - -class Queue_Node -{ - public Queue_Node prev_ = null; - public Queue_Node next_ = null;; - public Object data_; - - public Queue_Node(Object data) - { - data_ = data; - } -} - -class Queue_Iterator implements Enumeration -{ - public static final boolean FORWARD = true; - public static final boolean REVERSE = false; - - private Queue queue_; - private Queue_Node queue_ptr_; - private boolean direction_ = FORWARD; - - public Queue_Iterator(Queue queue) - { - queue_ = queue; - queue_ptr_ = queue.head_; - } - - public Queue_Iterator(Queue queue, boolean direction) - { - queue_ = queue; - direction_ = direction; - - if (direction_) - queue_ptr_ = queue_.head_; - else - queue_ptr_ = queue_.tail_; - } - - public Object nextElement() - { - Object data = queue_ptr_.data_; - - if (direction_) - queue_ptr_ = queue_ptr_.next_; - else - queue_ptr_ = queue_ptr_.prev_; - - return data; - } - - public boolean hasMoreElements() - { - return queue_ptr_ != null; - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/VisComp.java b/TAO/examples/Simulator/DOVEBrowser/VisComp.java deleted file mode 100644 index 53294f33ea2..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/VisComp.java +++ /dev/null @@ -1,19 +0,0 @@ -// $Id$ -// -// = FILENAME -// VisComp.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is the interface for Java Beans. -// -// ============================================================================ - - -public interface VisComp extends java.util.Observer { - - public void setName (String title); - public int getProperty (); -} diff --git a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java b/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java deleted file mode 100644 index 288fcccceec..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java +++ /dev/null @@ -1,48 +0,0 @@ -// $Id$ -// -// = FILENAME -// VisCompFactory.java -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This class serves as factory for Visualization Components -// -// ============================================================================ - -import java.beans.*; - -class VisCompFactory { - - VisComp getNewVisComp (int property, String name) { - - ClassLoader classLoader_ = this.getClass().getClassLoader(); - - VisComp visComp_ = null; - String visCompName_ = "VisComp"; - switch (property) { - case Properties.DOUBLE: - visCompName_ = "Double"+visCompName_; - break; - case Properties.NAVIGATION: - visCompName_ = "Navigation"+visCompName_; - break; - case Properties.WEAPONS: - visCompName_ = "Weapons"+visCompName_; - break; - default: return null; - } - try { - System.out.println ("Trying to connect: " + visCompName_+ " .. "); - visComp_ = (VisComp) Beans.instantiate (classLoader_, visCompName_); - visComp_.setName (name); - System.out.println ("Connected: " + visCompName_); - return visComp_; - } - catch (Exception e) { - System.out.println ("Unable to load JavaBean: " + e); - return null; - } - } -}
\ No newline at end of file diff --git a/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java b/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java deleted file mode 100644 index 8c81bfc9c11..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java +++ /dev/null @@ -1,144 +0,0 @@ -// $Id$ -// -// = FILENAME -// WeaponsVisComp.java -// -// = AUTHOR -// Seth Widoff (core functionality) -// Michael Kircher (mk1@cs.wustl.edu) -// -// = DESCRIPTION -// This is a Visualization Component for displaying weapons. -// -// ============================================================================ - - -import java.io.*; -import java.util.*; -import java.awt.*; - - -public class WeaponsVisComp extends Panel implements VisComp -{ - private final static String ONLINE = "Online"; - private final static String OFFLINE = "Offline"; - private final static Font FONT_BIG = new Font ("Dialog", Font.BOLD, 14); - private final static Font FONT_SMALL = new Font ("Dialog", Font.BOLD, 10); - private final static Color BLUE = new Color (30, 144, 255); - - private int count_ = 0; - private Hashtable weapons_table_ = new Hashtable (); - private GridBagLayout gbl_= new GridBagLayout (); - private GridBagConstraints gbc_ = new GridBagConstraints (); - - Label default_label_ = new Label ("No weapons available", Label.CENTER); - - public WeaponsVisComp () - { - default_label_.setFont (FONT_BIG); - default_label_.setForeground (BLUE); - - setLayout (gbl_); - gbc_.gridx = 0; - gbc_.gridy = 0; - gbc_.gridheight = 1; - gbc_.gridwidth = 1; - gbc_.anchor = GridBagConstraints.NORTH; - gbc_.fill = GridBagConstraints.NONE; - setBackground (Color.black); - - gbl_.setConstraints (default_label_, gbc_); - add (default_label_); - } - - public void setName (String title) { - } - - public int getProperty () { - return Properties.WEAPONS; - } - - public Dimension getPreferredSize () { - return new Dimension (250, 200); - } - - public Dimension getMinimumSize () { - return new Dimension (80, 80); - } - - public void update (java.util.Observable observable, java.lang.Object obj) { - Weapons weapons_ = null; - try { - weapons_ = (Weapons) obj; - } - catch (Exception excp) { - System.out.println (excp); - System.out.println ("Visualization Component received wrong data type!"); - } - if (weapons_ != null) - { - for (int i = 0; i < weapons_.number_of_weapons && i < 5; i++) - { - String weapon = ""; - int status = 0; - switch (i) - { - default: - break; - case 0: weapon = weapons_.weapon1_identifier; - status = weapons_.weapon1_status; - break; - case 1: weapon = weapons_.weapon2_identifier; - status = weapons_.weapon2_status; - break; - case 2: weapon = weapons_.weapon3_identifier; - status = weapons_.weapon3_status; - break; - case 3: weapon = weapons_.weapon4_identifier; - status = weapons_.weapon4_status; - break; - case 4: weapon = weapons_.weapon5_identifier; - status = weapons_.weapon5_status; - break; - } - - - Label status_label_ = (Label)weapons_table_.get (weapon); - - if (status_label_ != null) - status_label_.setText ((status == 1) ? ONLINE : OFFLINE); - else - { - if (count_ == 0) - this.removeAll (); - - count_++; - Label weapon_label_ = new Label (count_ + ". " + weapon, Label.LEFT); - status_label_ = new Label ((status == 1) ? ONLINE : OFFLINE, Label.RIGHT); - - status_label_.setFont (FONT_SMALL); - weapon_label_.setFont (FONT_SMALL); - weapon_label_.setForeground (BLUE); - - gbc_.gridx = 0; - gbc_.anchor = GridBagConstraints.WEST; - gbl_.setConstraints (weapon_label_, gbc_); - add (weapon_label_); - gbc_.gridx = 1; - gbc_.anchor = GridBagConstraints.EAST; - gbl_.setConstraints (status_label_, gbc_); - add (status_label_); - - gbc_.gridy++; - weapons_table_.put (weapon, status_label_); - } - - status_label_.setForeground ((status == 1) ? - Color.lightGray : - Color.darkGray); - } - - validate (); - } - } -} diff --git a/TAO/examples/Simulator/DOVEBrowser/make.bat b/TAO/examples/Simulator/DOVEBrowser/make.bat deleted file mode 100755 index 49677db37bb..00000000000 --- a/TAO/examples/Simulator/DOVEBrowser/make.bat +++ /dev/null @@ -1,150 +0,0 @@ -@REM This File generates the necessary classes for Visibroker and JDK1.2 -@REM call it like: -@REM -@REM make VB (makes all VB classes) -@REM make JDK (makes all JDK classes) -@REM make clean (removes classes, IDL generated files) -@REM make realclean (updates IDL files, does make clean) -@REM - -@if %1. == VB. goto VB -@if %1. == vB. goto VB -@if %1. == Vb. goto VB -@if %1. == vb. goto VB -@if %1. == JDK. goto JDK -@if %1. == jDK. goto JDK -@if %1. == JdK. goto JDK -@if %1. == JDk. goto JDK -@if %1. == jdK. goto JDK -@if %1. == jDk. goto JDK -@if %1. == Jdk. goto JDK -@if %1. == jdk. goto JDK -@if %1. == setup. goto setup -@if %1. == realclean. goto realclean -@if %1. == clean. goto clean -@if %1. == vbjava. goto VBJAVA - - -@echo Usage: -@echo make setup (sets up IDL files) -@echo make vb (makes all VB classes) -@echo make jdk (makes all JDK classes) -@echo make clean (removes old classes, IDL generated files) -@echo make realclean (updates IDL files, calls make clean) -@goto end - -REM This part build with JDK -:JDK -@echo JDK1.2 -idltojava NavWeap.idl -idltojava RtecEventComm.idl -idltojava RtecEventChannelAdmin.idl -idltojava RtecScheduler.idl -idltojava CosNaming.idl -idltojava CosTimeBase.idl -javac CosNaming\NamingContextPackage\*.java -javac CosNaming\*.java -javac CosTimeBase\*.java -javac RtecScheduler\*.java -javac RtecEventComm\*.java -javac RtecEventComm\EventChannelPackage\*.java -javac RtecEventChannelAdmin\*.java -javac *.java - -@goto end - -:setup - -@REM This part updates IDL files - -@del *.idl -@xcopy ..\NavWeap.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\CosTimeBase.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\CosNaming.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecEventComm.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecEventChannelAdmin.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecScheduler.idl - -@goto end - -@REM This part cleans up everything, and updates IDL files - -:realclean - -@del *.idl -@xcopy ..\NavWeap.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\CosTimeBase.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\CosNaming.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecEventComm.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecEventChannelAdmin.idl -@xcopy ..\..\..\orbsvcs\orbsvcs\RtecScheduler.idl - -:clean - -@del *.class -@del Weapons.java -@del WeaponsHelper.java -@del WeaponsHolder.java -@del *NavWeapTerminator*.java -@del Navigation.java -@del NavigationHelper.java -@del NavigationHolder.java -@del RtecEventComm\*.java -@del RtecEventComm\*.class -@REM del RtecEventComm\EventChannelPackage\*.java -@REM del RtecEventComm\EventChannelPackage\*.class -@REM rd RtecEventComm\EventChannelPackage -@rd RtecEventComm - -@del RtecEventChannelAdmin\*.java -@del RtecEventChannelAdmin\*.class -@del RtecEventChannelAdmin\EventChannelPackage\*.java -@del RtecEventChannelAdmin\EventChannelPackage\*.class -@rd RtecEventChannelAdmin\EventChannelPackage -@rd RtecEventChannelAdmin - -@del RtecScheduler\*.java -@del RtecScheduler\*.class -@rd RtecScheduler - -@del CosNaming\*.java -@del CosNaming\*.class -@del CosNaming\NamingContextPackage\*.java -@del CosNaming\NamingContextPackage\*.class -@rd CosNaming\NamingContextPackage -@rd CosNaming - -@REM del CosTimeBase\*.java -@REM del CosTimeBase\*.class -@REM rd CosTimeBase - -@del TimeBase\*.java -@del TimeBase\*.class -@rd TimeBase - -@goto end - - -REM This part build with VB -:VB -@echo Visibroker -@echo idl2java NavWeap.idl -@idl2java NavWeap.idl -@echo idl2java RtecEventComm.idl -@idl2java RtecEventComm.idl -@echo idl2java RtecEventChannelAdmin.idl -@idl2java RtecEventChannelAdmin.idl -@echo idl2java RtecScheduler.idl -@idl2java RtecScheduler.idl -@echo idl2java CosNaming.idl -@idl2java CosNaming.idl -@echo idl2java CosTimeBase.idl -@idl2java CosTimeBase.idl - -:VBJAVA - -@echo vbjc *.java -@vbjc *.java - -:end - diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp deleted file mode 100644 index d8413060366..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp +++ /dev/null @@ -1,216 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// AnyAnalyser.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Accepts an CORBA::Any, traverses it, copies it into a tree structure -// and prints out the tree. -// -// ============================================================================ - -#include "AnyAnalyser.h" - -ACE_RCSID(DOVEMIB, AnyAnalyser, "$Id$") - -AnyAnalyser::AnyAnalyser (const char *file_name) - : printVisitor_ptr_(new PrintVisitor (file_name)) { -} - -AnyAnalyser::~AnyAnalyser () { - delete this->printVisitor_ptr_; -} - -void -AnyAnalyser::close () { - this->printVisitor_ptr_->close(); -} - -void -AnyAnalyser::printTimeStamp (ACE_hrtime_t creation, - ACE_hrtime_t ec_recv, - ACE_hrtime_t ec_send) -{ - this->printVisitor_ptr_->printTimeStamp (creation, - ec_recv, - ec_send); -} - - -void -AnyAnalyser::printAny (CORBA::TypeCode_ptr any_type, const void *any_value) { - - // Analyse the any and store the results in a tree structure - RecurseInfo recurseInfo_ = {PARENT_IS_NO_STRUCT,// identifies parent - 0, // parent typecode - 0, // member count - 0}; // recursion level - - // have a variable with can be incremented by all - // recursive analyse calls - const unsigned char *value_ptr_ = (const unsigned char *)any_value; - - // analyse the any - Node *node_ptr_ = analyse (any_type, // typecode information - value_ptr_, // pointer to the memory - recurseInfo_); // recurse information - - // print the results - node_ptr_->Accept ((NodeVisitor *)printVisitor_ptr_); -} - -Node * -AnyAnalyser::analyse (CORBA::TypeCode_ptr tc_ptr, - const unsigned char *&value_ptr, - RecurseInfo ri) -{ - CORBA::Long alignment, align_offset; - CORBA::TypeCode_ptr param; - const unsigned char *start_addr = value_ptr; - - ACE_TRY_NEW_ENV - { - Node *node_ptr_ = 0; - - if (tc_ptr != 0) { - - switch (tc_ptr->kind(ACE_TRY_ENV)) { - - case CORBA::tk_struct: - { - // to hold a pointer to the start of the struct - start_addr = value_ptr; - - // create a new Node - StructNode *structNode_ptr_ = new StructNode (tc_ptr->name (ACE_TRY_ENV), - ri.recursion_level); - - for (unsigned int i = 0; i < tc_ptr->member_count (ACE_TRY_ENV); i++) { - - // get the TypeCode pointer to the ith parameter - // and analyse it recursively - RecurseInfo recurseInfo_ = {PARENT_IS_STRUCT, // identifies parent - tc_ptr, // parent typecode - i, // member count - ri.recursion_level+1}; - - - // get the type code of the child i - param = tc_ptr->member_type (i, ACE_TRY_ENV); - ACE_TRY_CHECK; - - // get the size - /* size = */ param->size (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // get the alignment - alignment = param->alignment (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // calculate - align_offset = - (ptr_arith_t) ptr_align_binary (value_ptr, alignment) - - (ptr_arith_t) value_ptr - + (ptr_arith_t) ptr_align_binary (start_addr, alignment) - - (ptr_arith_t) start_addr; - ACE_TRY_CHECK; - - // if both the start_addr and data are not aligned as per - // the alignment, we do not add the offset - value_ptr = (unsigned char *) ((ptr_arith_t) value_ptr + - ((align_offset == alignment) ? - 0 : align_offset)); - - structNode_ptr_->addChild (analyse (param, - value_ptr, - recurseInfo_)); - } - node_ptr_ = (Node *)structNode_ptr_; - } - break; - - case CORBA::tk_double: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new DoubleNode ((CORBA::Double *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - ACE_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new DoubleNode ((CORBA::Double *)value_ptr, - tc_ptr->name(ACE_TRY_ENV), - ri.recursion_level); - } - value_ptr += 8; - break; - - case CORBA::tk_long: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new LongNode ((CORBA::Long *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - ACE_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new LongNode ((CORBA::Long *)value_ptr, - tc_ptr->name(ACE_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - case CORBA::tk_ulong: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new ULongNode ((CORBA::ULong *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - ACE_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new ULongNode ((CORBA::ULong *)value_ptr, - tc_ptr->name(ACE_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - case CORBA::tk_string: - if (ri.kind == PARENT_IS_STRUCT) { - node_ptr_ = (Node *) new StringNode (*(CORBA::String_var *)value_ptr, - ri.parent_tc_ptr->member_name(ri.member_number, - ACE_TRY_ENV), - ri.recursion_level); - } - else { - node_ptr_ = (Node *) new StringNode (*(CORBA::String_var *)value_ptr, - tc_ptr->name(ACE_TRY_ENV), - ri.recursion_level); - } - value_ptr += 4; - break; - - default: ACE_ERROR ((LM_ERROR, "AnyAnalyser::analyse: No known kind of type detected!\n")); - exit (1); - break; - } - ACE_TRY_CHECK; - return node_ptr_; - } - else { - ACE_DEBUG ((LM_ERROR, "AnyAnalyser::analyse: TypeCode pointer to member was Null!\n")); - } - } - ACE_CATCHANY { - ACE_ERROR ((LM_ERROR, "(%t)AnyAnalyser::analyse: Error in analysing the any.\n")); - } - ACE_ENDTRY; - return 0; -} - - diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h deleted file mode 100644 index d3a9bb3ccf4..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h +++ /dev/null @@ -1,63 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// AnyAnalyser.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Accepts an CORBA::Any, traverses it, copies it into a tree structure -// and prints out the tree. -// -// ============================================================================ - - -#include "PrintVisitor.h" -#include "tao/corba.h" - -#ifndef ANYANALYSER_H -#define ANYANALYSER_H - -typedef enum {PARENT_IS_STRUCT, PARENT_IS_NO_STRUCT} KIND; - -typedef struct { - KIND kind; - CORBA::TypeCode_ptr parent_tc_ptr; - unsigned int member_number; - unsigned int recursion_level; -} RecurseInfo; - - -class AnyAnalyser { - -public: - AnyAnalyser (const char *filename); - - ~AnyAnalyser (); - - // cause the PrintViewer to be deleted to close the file - void close (); - - // main starting point includes analysing and printing - void printAny (CORBA::TypeCode_ptr any_type, const void *any_value); - - void printTimeStamp (ACE_hrtime_t creation, - ACE_hrtime_t ec_recv, - ACE_hrtime_t ec_send); - // Print the time stamp, which means forward this - // call to the PrintVisitor - -private: - Node *analyse (CORBA::TypeCode_ptr tc_ptr, - const unsigned char *&value_ptr, - RecurseInfo recurseInfo); - - PrintVisitor *printVisitor_ptr_; -}; - -#endif - diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp deleted file mode 100644 index 726228024cc..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp +++ /dev/null @@ -1,422 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// DOVEMIB.cpp -// -// = DESCRIPTION -// The MIB listens to the Event Channel, analyses the CORBA::Any -// and prints the result into a file. -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include <limits.h> - -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -#include "ace/Profile_Timer.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "DOVEMIB.h" - -ACE_RCSID(DOVEMIB, DOVEMIB, "$Id$") - -static const char usage [] = -"[-? |\n" -" [-O[RBport] ORB port number]" -" [-m <count> of messages to receive [100]]" -" [-f filename for the repository [event_repository]]]"; - -static int events_received_ = 0; -static char *input_file_name = 0; -static int events_to_receive_ = 100; -RtecEventChannelAdmin::EventChannel_var ec; - -// ************************************************************ - -MIB_Consumer::MIB_Consumer (void) -: anyAnalyser_ (input_file_name) { -} - -int -MIB_Consumer::open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name) { - ACE_TRY_NEW_ENV - { - // Get a Scheduler. - - RtecScheduler::Scheduler_ptr server = - ACE_Scheduler_Factory::server (); - - // Define Real-time information. - - rt_info_ = server->create (my_name, ACE_TRY_ENV); - - server->set (rt_info_, - RtecScheduler::VERY_LOW_CRITICALITY, - ORBSVCS_Time::zero (), - ORBSVCS_Time::zero (), - ORBSVCS_Time::zero (), - 2500000, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero (), - 1, - RtecScheduler::OPERATION, - ACE_TRY_ENV); - - // Create the event that we're registering for. - - ACE_ConsumerQOS_Factory dependencies; - dependencies.start_disjunction_group (); - dependencies.insert_type (ACE_ES_EVENT_NOTIFICATION, rt_info_); - dependencies.insert_type (ACE_ES_EVENT_SHUTDOWN, rt_info_); - - // The channel administrator is the event channel we got from - // the invocation of this routine. - - this->channel_admin_ = ec; - - // = Connect as a consumer. - - this->consumer_admin_ = channel_admin_->for_consumers (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Obtain a pointer to a push supplier. "suppliers" is - // inherited from a base class. - - this->suppliers_ = consumer_admin_->obtain_push_supplier (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // The _this function returns an object pointer. This is needed - // because a consumer inherits from a Servant class that is no - // CORBA::Object. - - RtecEventComm::PushConsumer_var objref = this->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->suppliers_->connect_push_consumer (objref.in (), - dependencies.get_ConsumerQOS (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se) { - ACE_ERROR_RETURN ((LM_ERROR, - "MIB_Consumer::open: subscribe failed.\n"), - -1); - } - ACE_CATCHANY { - ACE_ERROR_RETURN ((LM_ERROR, - "MIB_Consumer::open: unexpected exception.\n"), - -1); - } - ACE_ENDTRY; - - return 0; -} - -void -MIB_Consumer::disconnect_push_consumer (CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - ACE_DEBUG ((LM_DEBUG, - "Consumer received disconnect from channel.\n")); -} - - -// This method is called when the Event Service pushes a new -// event to us - -void -MIB_Consumer::push (const RtecEventComm::EventSet &events, - CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - - if (events.length () == 0) { - ACE_DEBUG ((LM_DEBUG, "no events\n")); - return; - } - - // count the number of events - events_received_++; - - // if we have enough we quit - if (events_received_ > events_to_receive_) { - this->shutdown (); - } - - // Several events could be sent at once - for (CORBA::ULong i = 0; i < events.length (); ++i) { - - if (events[i].header.type == ACE_ES_EVENT_SHUTDOWN) { - - ACE_DEBUG ((LM_DEBUG, "MIB Consumer: received shutdown event\n")); - this->shutdown (); - } - else { - - if (events_received_ == 1) { - ACE_DEBUG ((LM_DEBUG, "MIB Consumer: received an event, going to be mute.\n")); - } - - ACE_TRY - { - // print the time stamps - ACE_hrtime_t creation; - ORBSVCS_Time::TimeT_to_hrtime (creation, - events[i].header.creation_time); - - ACE_hrtime_t ec_recv; - ORBSVCS_Time::TimeT_to_hrtime (ec_recv, - events[i].header.ec_recv_time); - - ACE_hrtime_t ec_send; - ORBSVCS_Time::TimeT_to_hrtime (ec_send, - events[i].header.ec_send_time); - - anyAnalyser_.printTimeStamp (creation, ec_recv, ec_send); - - if (events[i].data.any_value.any_owns_data ()) - { - void * void_ptr = ACE_OS::malloc (events[i].data.any_value.type()->size(ACE_TRY_ENV)); - - TAO_InputCDR stream ((ACE_Message_Block *)events[i].data.any_value.value ()); - if (stream.decode (events[i].data.any_value.type(), void_ptr, 0, ACE_TRY_ENV) - != CORBA::TypeCode::TRAVERSE_CONTINUE) - { - cout << "MIB_Consumer::push: " - << "Something went wrong when decoding the Message Block (Any value)!" - << endl; - // something went wrong - ACE_OS::free(void_ptr); - return; - } - ACE_TRY_CHECK; - - // invoke the AnyAnalyser - anyAnalyser_.printAny (events[i].data.any_value.type(), void_ptr); - ACE_OS::free(void_ptr); - } - else - { - // invoke the AnyAnalyser - anyAnalyser_.printAny (events[i].data.any_value.type(), events[i].data.any_value.value()); - } - - } - ACE_CATCHANY { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n")); - } - ACE_ENDTRY; - } - } -} - -void -MIB_Consumer::shutdown (void) -{ - ACE_TRY_NEW_ENV - { - // cause the AnyAnalyser to close the file - anyAnalyser_.close(); - - // Disconnect from the push supplier. - this->suppliers_->disconnect_push_supplier (ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n")); - ACE_TRY_CHECK; - - ec = 0; - - TAO_ORB_Core_instance ()->orb ()->shutdown (); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t) MIB_Consumer::shutdown: unexpected exception.\n")); - } - ACE_ENDTRY; -} - -// function get_options - -static unsigned int -get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "O?f:m:"); - int opt; - unsigned int temp; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - - case 'f': - input_file_name = get_opt.optarg; - - if (!input_file_name || ACE_OS::strlen (input_file_name) == 0) { - input_file_name = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - - case 'm': - temp = (unsigned int) ACE_OS::atoi (get_opt.optarg); - if (temp > 0) { - events_to_receive_ = temp; - ACE_DEBUG ((LM_DEBUG,"Messages to receive: %d\n", events_to_receive_)); - } - else { - ACE_ERROR_RETURN ((LM_ERROR, "%s: count must be > 0", argv[0]), 1); - } - break; - - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - argv[0], char(opt), - argv[0], usage), 1); - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - return 0; -} - -// function main. - -int -main (int argc, char *argv []) -{ - ACE_TRY_NEW_ENV - { - // Initialize ORB. - - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - if (get_options (argc, argv)) - ACE_OS::exit (-1); - - // Get the Event Channel. - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup ("EventService"); - - CORBA::Object_var ec_obj = - naming_context->resolve (channel_name, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - ec = - RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), ACE_TRY_ENV); - ACE_TRY_CHECK; - - if (ec.ptr() == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Not able to get the Event Service reference.\n"), - -1); - - // Create consumer. - - MIB_Consumer *mIB_Consumer; - ACE_NEW_RETURN (mIB_Consumer, - MIB_Consumer (), - -1); - - if (mIB_Consumer->open_consumer (ec.ptr (), - "MIB_Consumer") == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Someone was feeling introverted.\n"), - -1); - - poa_manager->activate (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Run the ORB - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - ACE_TRY_CHECK; - - ec = 0; - - root_poa->destroy (1, - 1, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp deleted file mode 100644 index 87e4d81839c..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp +++ /dev/null @@ -1,103 +0,0 @@ -# Microsoft Developer Studio Project File - Name="DOVEMIB" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=DOVEMIB - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "DOVEMIB.MAK".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "DOVEMIB.MAK" CFG="DOVEMIB - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "DOVEMIB - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "DOVEMIB - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "DOVEMIB - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "DOVEMIB - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FR /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /pdb:"DOVEMIB.pdb" /debug /machine:I386 /out:"DOVEMIB.exe" /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF
-
-# Begin Target
-
-# Name "DOVEMIB - Win32 Release"
-# Name "DOVEMIB - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\AnyAnalyser.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\DOVEMIB.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Node.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\PrintVisitor.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw deleted file mode 100644 index 72065dca75b..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "DOVEMIB"=.\DOVEMIB.DSP - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "DOVEMIBx"=.\DOVEMIBx.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "TestClient"=.\TestClient.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h deleted file mode 100644 index f15847160d1..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h +++ /dev/null @@ -1,64 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = FILENAME -// DOVEMIB.h -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#ifndef DOVE_MIB_H -#define DOVE_MIB_H - -//#include "ace/SString.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" -#include "AnyAnalyser.h" - -class MIB_Consumer : public POA_RtecEventComm::PushConsumer -{ - // = TITLE - // Demo Consumer - // - // = DESCRIPTION - // Simple example of a consumer that registers for supplier - // notifications. -public: - MIB_Consumer (void); - - int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); - // Uses the name server to obtain a reference to the <supplier_name> - // and registers with channel to receive notifications from the - // supplier. Also registers to receive shutdown messages from the - // supplier. Stores <my_name> for printing out messages. Returns 0 - // on success, -1 on failure. - - virtual void disconnect_push_consumer (CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // The channel is disconnecting. - - // = (not protected to allow short-circuiting) protected: - virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)); - // If the <events>[0] is a notification, prints out the data from - // the supplier. If its a shutdown message, the consumer - // disconnects from the channel. - -protected: - void shutdown (void); - // Disconnect from the Event Service. - - // = Event channel adminstration references. - RtecEventChannelAdmin::EventChannel_var channel_admin_; - RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_; - RtecEventChannelAdmin::ProxyPushSupplier_var suppliers_; - AnyAnalyser anyAnalyser_; -private: - RtecScheduler::handle_t rt_info_; -}; - -#endif /* DOVE_MIB_H */ diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp b/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp deleted file mode 100644 index 9feb18625d8..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp +++ /dev/null @@ -1,183 +0,0 @@ -# Microsoft Developer Studio Project File - Name="DOVEMIBx" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=DOVEMIBx - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "DOVEMIBx.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "DOVEMIBx.mak" CFG="DOVEMIBx - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "DOVEMIBx - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "DOVEMIBx - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "DOVEMIBx - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "DOVEMIB0"
-# PROP BASE Intermediate_Dir "DOVEMIB0"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "DOVEMIB0"
-# PROP Intermediate_Dir "DOVEMIB0"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /pdb:"DOVEMIBx.pdb" /debug /machine:I386 /out:"DOVEMIBx.exe" /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-# SUBTRACT LINK32 /pdb:none
-
-!ENDIF
-
-# Begin Target
-
-# Name "DOVEMIBx - Win32 Release"
-# Name "DOVEMIBx - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\any_test.idl
-
-!IF "$(CFG)" == "DOVEMIBx - Win32 Release"
-
-!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug"
-
-# Begin Custom Build - Invoking TAO_IDL compiler
-InputPath=.\any_test.idl
-InputName=any_test
-
-BuildCmds= \
- ..\..\..\..\bin\tao_idl -Ge 1 $(InputName).idl
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\any_test_i.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\any_testC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\any_testS.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\AnyAnalyser.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "DOVEMIBx - Win32 Release"
-
-!ELSEIF "$(CFG)" == "DOVEMIBx - Win32 Debug"
-
-# Begin Custom Build - Invoking TAO_IDL compiler
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- xcopy ..\$(InputName).idl . \
- ..\..\..\..\bin\tao_idl -Ge 1 $(InputName).idl \
-
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Node.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\PrintVisitor.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\svr.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/DOVEMIB/Makefile b/TAO/examples/Simulator/DOVEMIB/Makefile deleted file mode 100644 index 92b4fc9299f..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Makefile +++ /dev/null @@ -1,915 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -TAO_IDLFLAGS += -I$(TAO_ROOT)/orbsvcs/orbsvcs -IDL_SRC= NavWeapC.cpp -PROG_SRCS = $(IDL_SRC) DOVEMIB.cpp Node.cpp PrintVisitor.cpp AnyAnalyser.cpp - -LSRC = $(PROG_SRCS) - -MIB_OBJS = DOVEMIB.o NavWeapC.o Node.o PrintVisitor.o AnyAnalyser.o - -LDLIBS = -lorbsvcs -lTAO -VLDLIBS = $(LDLIBS:%=%$(VAR)) - -BIN2 = DOVEMIB - -#### If the TAO orbsvcs library wasn't built with sufficient components, -#### don't try to build here. -TAO_ORBSVCS := $(shell sh $(ACE_ROOT)/bin/ace_components --orbsvcs) -ifeq (Event,$(findstring Event,$(TAO_ORBSVCS))) - ifeq (Sched,$(findstring Sched,$(TAO_ORBSVCS))) - ifeq (Time,$(findstring Time,$(TAO_ORBSVCS))) - ifeq (Naming,$(findstring Naming,$(TAO_ORBSVCS))) - BIN = $(BIN2) - endif # Naming - endif # Time - endif # Sched -endif # Event - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(TAO_ROOT)/rules.tao.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -include $(TAO_ROOT)/taoconfig.mk - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) \ - -I$(TAO_ROOT)/orbsvcs/orbsvcs $(TSS_ORB_FLAG)#-H - -$(IDL_SRC): NavWeap.idl - $(TAO_IDL) $(TAO_IDLFLAGS) $< - -NavWeap.idl: ../NavWeap.idl - @cp -p $< . - -DOVEMIB: $(addprefix $(VDIR),$(MIB_OBJS)) - -realclean: clean - -$(RM) NavWeap.idl NavWeap[CS].* NavWeap[CS]_T.* - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/DOVEMIB.o .obj/DOVEMIB.so .shobj/DOVEMIB.o .shobj/DOVEMIB.so: DOVEMIB.cpp \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/corbafwd.h \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/IOR_LookupTable.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Context.h \ - $(TAO_ROOT)/tao/Context.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Key_Adapters.h \ - $(ACE_ROOT)/ace/Map.h \ - $(ACE_ROOT)/ace/Map.i \ - $(ACE_ROOT)/ace/Map_T.h \ - $(ACE_ROOT)/ace/Pair.h \ - $(ACE_ROOT)/ace/Pair.i \ - $(ACE_ROOT)/ace/Pair_T.h \ - $(ACE_ROOT)/ace/Pair_T.i \ - $(ACE_ROOT)/ace/Pair_T.cpp \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Active_Map_Manager.h \ - $(ACE_ROOT)/ace/Active_Map_Manager.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Map_T.i \ - $(ACE_ROOT)/ace/Map_T.cpp \ - $(TAO_ROOT)/tao/Key_Adapters.i \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POAManager.h \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/POAManager.i \ - $(TAO_ROOT)/tao/Object_Adapter.h \ - $(TAO_ROOT)/tao/Object_Adapter.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/MProfile.i \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/Policy_Manager.h \ - $(TAO_ROOT)/tao/Resource_Factory.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/tao/TimeBaseC.h \ - $(TAO_ROOT)/tao/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - DOVEMIB.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/tao/TimeBaseS.h \ - $(TAO_ROOT)/tao/TimeBaseS_T.h \ - $(TAO_ROOT)/tao/TimeBaseS_T.i \ - $(TAO_ROOT)/tao/TimeBaseS_T.cpp \ - $(TAO_ROOT)/tao/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i \ - AnyAnalyser.h PrintVisitor.h NodeVisitor.h Node.h -.obj/Node.o .obj/Node.so .shobj/Node.o .shobj/Node.so: Node.cpp Node.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(TAO_ROOT)/tao/corbafwd.h \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/IOR_LookupTable.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Context.h \ - $(TAO_ROOT)/tao/Context.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Key_Adapters.h \ - $(ACE_ROOT)/ace/Map.h \ - $(ACE_ROOT)/ace/Map.i \ - $(ACE_ROOT)/ace/Map_T.h \ - $(ACE_ROOT)/ace/Pair.h \ - $(ACE_ROOT)/ace/Pair.i \ - $(ACE_ROOT)/ace/Pair_T.h \ - $(ACE_ROOT)/ace/Pair_T.i \ - $(ACE_ROOT)/ace/Pair_T.cpp \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Active_Map_Manager.h \ - $(ACE_ROOT)/ace/Active_Map_Manager.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Map_T.i \ - $(ACE_ROOT)/ace/Map_T.cpp \ - $(TAO_ROOT)/tao/Key_Adapters.i \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POAManager.h \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/POAManager.i \ - $(TAO_ROOT)/tao/Object_Adapter.h \ - $(TAO_ROOT)/tao/Object_Adapter.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/MProfile.i \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/Policy_Manager.h \ - $(TAO_ROOT)/tao/Resource_Factory.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/Union.h NodeVisitor.h -.obj/PrintVisitor.o .obj/PrintVisitor.so .shobj/PrintVisitor.o .shobj/PrintVisitor.so: PrintVisitor.cpp PrintVisitor.h \ - $(TAO_ROOT)/tao/corba.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(TAO_ROOT)/tao/corbafwd.h \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/IOR_LookupTable.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/GIOP.h \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/GIOP.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/Context.h \ - $(TAO_ROOT)/tao/Context.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Key_Adapters.h \ - $(ACE_ROOT)/ace/Map.h \ - $(ACE_ROOT)/ace/Map.i \ - $(ACE_ROOT)/ace/Map_T.h \ - $(ACE_ROOT)/ace/Pair.h \ - $(ACE_ROOT)/ace/Pair.i \ - $(ACE_ROOT)/ace/Pair_T.h \ - $(ACE_ROOT)/ace/Pair_T.i \ - $(ACE_ROOT)/ace/Pair_T.cpp \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Active_Map_Manager.h \ - $(ACE_ROOT)/ace/Active_Map_Manager.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Active_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Map_T.i \ - $(ACE_ROOT)/ace/Map_T.cpp \ - $(TAO_ROOT)/tao/Key_Adapters.i \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(TAO_ROOT)/tao/Connect.h \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(TAO_ROOT)/tao/Connect.i \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POAManager.h \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/POAManager.i \ - $(TAO_ROOT)/tao/Object_Adapter.h \ - $(TAO_ROOT)/tao/Object_Adapter.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/MProfile.i \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/Policy_Manager.h \ - $(TAO_ROOT)/tao/Resource_Factory.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/Union.h NodeVisitor.h \ - Node.h - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Simulator/DOVEMIB/Node.cpp b/TAO/examples/Simulator/DOVEMIB/Node.cpp deleted file mode 100644 index 20da755adef..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Node.cpp +++ /dev/null @@ -1,219 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Implementation of the Nodes for the any evaluator. -// -// ============================================================================ - -#include "Node.h" - -ACE_RCSID(DOVEMIB, Node, "$Id$") - -StructNode::StructNode (const char *Name_ptr, - unsigned int recursion_level) { - Name_ptr_ = Name_ptr; - queue_ptr_ = new ACE_Unbounded_Queue<Node *>; - recursion_level_ = recursion_level; - queue_iterator_ptr_ = 0; -} - - -StructNode::~StructNode () { - for (unsigned int i = 0; i < getChildNumber (); i++) { - delete getChild (i); - } - delete queue_ptr_; - delete queue_iterator_ptr_; -} - - -unsigned int -StructNode::getChildNumber () { - return (unsigned int) queue_ptr_->size (); -} - -Node * -StructNode::getChild (unsigned int n) { - - // create new iterator if some things have changed - if (queue_iterator_ptr_ == 0) { - queue_iterator_ptr_ = new ACE_Unbounded_Queue_Iterator<Node *> (*queue_ptr_); - queue_position_ = 0; - } - - // check if we have such a Zebra - if (n < queue_ptr_->size ()) { - // if we are already to far in the queue - if (queue_position_ > n) { - queue_position_ = 0; - queue_iterator_ptr_->first (); - } - - Node **node_ptr_ptr_; - for (; - !queue_iterator_ptr_->done() && queue_position_ <= n; - queue_iterator_ptr_->advance (), queue_position_++) { - queue_iterator_ptr_->next (node_ptr_ptr_); - } - return (*node_ptr_ptr_); - } - else { - return 0; - } -} - -int -StructNode::addChild (Node *node) { - delete queue_iterator_ptr_; - queue_iterator_ptr_ = 0; - return queue_ptr_->enqueue_tail (node); -} - -const char * -StructNode::getName () { - return Name_ptr_; -} - -void -StructNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitStructNode (this); -} - -unsigned int -StructNode::getRecursionLevel () { - return recursion_level_; -} - -DoubleNode::DoubleNode (CORBA::Double *Double_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - Double_ptr_ = Double_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -DoubleNode::getName () { - return Name_ptr_; -} - - - -CORBA::Double -DoubleNode::getValue () { - return *Double_ptr_; -} - -void -DoubleNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitDoubleNode (this); -} - -unsigned int -DoubleNode::getRecursionLevel () { - return recursion_level_; -} - -LongNode::LongNode (CORBA::Long *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - Long_ptr_ = Long_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -LongNode::getName () { - return Name_ptr_; -} - -CORBA::Long -LongNode::getValue () { - return *Long_ptr_; -} - -void -LongNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitLongNode (this); -} - -unsigned int -LongNode::getRecursionLevel () { - return recursion_level_; -} - -ULongNode::ULongNode (CORBA::ULong *ULong_ptr, - const char *Name_ptr, - unsigned int recursion_level) { - ULong_ptr_ = ULong_ptr; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char * -ULongNode::getName () { - return Name_ptr_; -} - -CORBA::ULong -ULongNode::getValue () { - return *ULong_ptr_; -} - -void -ULongNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitULongNode (this); -} - -unsigned int -ULongNode::getRecursionLevel () { - return recursion_level_; -} - - -StringNode::StringNode (CORBA::String_var String_var, - const char *Name_ptr, - unsigned int recursion_level) { - String_var_ = String_var; - Name_ptr_ = Name_ptr; - recursion_level_ = recursion_level; -} - -const char* -StringNode::getName () { - return Name_ptr_; -} - -CORBA::String_var -StringNode::getValue () { - return String_var_; -} - -void -StringNode::Accept (NodeVisitor *nodeVisitor) { - nodeVisitor->visitStringNode (this); -} - -unsigned int -StringNode::getRecursionLevel () { - return recursion_level_; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node<Node *>; -template class ACE_Unbounded_Queue<Node *>; -template class ACE_Unbounded_Queue_Iterator<Node *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node<Node *> -#pragma instantiate ACE_Unbounded_Queue<Node *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Node *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/Simulator/DOVEMIB/Node.h b/TAO/examples/Simulator/DOVEMIB/Node.h deleted file mode 100644 index 90823bb26cc..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/Node.h +++ /dev/null @@ -1,190 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// Node.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the various node types for analysing -// an CORBA::Any. It is no memory allocated, that means -// The values are not really contained by the nodes, but the -// nodes refer to the values via pointers. -// -// ============================================================================ - -#include "tao/corba.h" -#include "ace/Containers.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "NodeVisitor.h" - -#ifndef NODE_H -#define NODE_H - - -// base class for nodes -class Node { -public: - virtual ~Node () {} - virtual void Accept (NodeVisitor *NodeVisitor) = 0; - virtual unsigned int getRecursionLevel () = 0; - -protected: - Node () {} -}; - - - -// Node to store information about a Struct -class StructNode : public Node { -public: - StructNode (const char *Name_ptr, - unsigned int recursion_level); - ~StructNode (); - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // add a new child - int addChild (Node *node); - - // retrieve the nth Child starting at 0 - Node *getChild (unsigned int n); - - // get the number of children - unsigned int getChildNumber (); - - // get the name of the struct - const char *getName (); - - // get recursion level - unsigned int getRecursionLevel (); - - -private: - ACE_Unbounded_Queue<Node *> *queue_ptr_; - ACE_Unbounded_Queue_Iterator<Node *> *queue_iterator_ptr_; - unsigned int queue_position_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a Double -class DoubleNode : public Node { -public: - DoubleNode (CORBA::Double *Double_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~DoubleNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name of the double node - const char *getName (); - - // get the value - CORBA::Double getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::Double *Double_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a Long -class LongNode : public Node { -public: - LongNode (CORBA::Long *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~LongNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - //get the name of the long node - const char *getName (); - - // get the value - CORBA::Long getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::Long *Long_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a ULong -class ULongNode : public Node { -public: - ULongNode (CORBA::ULong *Long_ptr, - const char *Name_ptr, - unsigned int recursion_level); - ~ULongNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name of the ulong node - const char *getName (); - - // get the value - CORBA::ULong getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::ULong *ULong_ptr_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - - -// Node to store information about a String -class StringNode : public Node { -public: - StringNode (CORBA::String_var String_var, - const char *Name_ptr, - unsigned int recursion_level); - ~StringNode () {} - - // accpet a visitor - void Accept (NodeVisitor *nodeVisitor); - - // get the name - const char *getName (); - - // get the value - CORBA::String_var getValue (); - - // get recursion level - unsigned int getRecursionLevel (); - -private: - CORBA::String_var String_var_; - const char *Name_ptr_; - unsigned int recursion_level_; -}; - -#endif // NODE_H - - diff --git a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h b/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h deleted file mode 100644 index f1a0d5d4050..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// NodeVisitor.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the Visitor used by the any evaluator. -// -// ============================================================================ - -#ifndef NODE_VISITOR_H -#define NODE_VISITOR_H - -class StructNode; -class DoubleNode; -class LongNode; -class ULongNode; -class StringNode; - -// base class for all the specialized visitors - -class NodeVisitor { -public: - virtual void visitStructNode (StructNode *structNode) = 0; - virtual void visitDoubleNode (DoubleNode *doubleNode) = 0; - virtual void visitLongNode (LongNode *longNode) = 0; - virtual void visitULongNode (ULongNode *uLongNode) = 0; - virtual void visitStringNode (StringNode *stringNode) = 0; -protected: - NodeVisitor () {} -}; - -#endif // NODE_VISITOR_H diff --git a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp deleted file mode 100644 index c350f05783d..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp +++ /dev/null @@ -1,159 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// Visitor for the Nodes of the any analyser. -// -// ============================================================================ - -#include "PrintVisitor.h" -#include <stdio.h> - -ACE_RCSID(DOVEMIB, PrintVisitor, "$Id$") - -PrintVisitor::PrintVisitor (const char *file_name) { - - ACE_TRY { - if (file_name != 0) { - output_ = ACE_OS::fopen(file_name, "w"); - ACE_TRY_CHECK; - - // print it on the screen if file could be opened - if (output_ == 0) { - - output_ = stdout; - - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Use stdout for output.\n")); - } - - // everything is ok - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Opened file <%s> successfully.\n", - file_name)); - } - else { - output_ = stdout; - ACE_DEBUG ((LM_DEBUG,"PrintVisitor: Use stdout for output.\n")); - - } - - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, "Failing when trying to open the output file.\n")); - } - ACE_ENDTRY; -} - - -PrintVisitor::~PrintVisitor () { - this->close (); -} - -void -PrintVisitor::close () { - if (output_ != stdout && output_ != 0) { - ACE_OS::fclose (output_); - } -} - - -void -PrintVisitor::printSecNanoSec (ACE_hrtime_t total_nanoseconds) -{ - // Separate to seconds and nanoseconds. - u_long total_secs = (u_long) (total_nanoseconds / (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS); - ACE_UINT32 extra_nsecs = (ACE_UINT32) (total_nanoseconds % (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS); - - ACE_OS::fprintf (output_, - "%3lu.%06lu secs\n", - total_secs, - (extra_nsecs +500u) / 1000u); -} - -void -PrintVisitor::printTimeStamp (ACE_hrtime_t creation, - ACE_hrtime_t ec_recv, - ACE_hrtime_t ec_send) -{ - ACE_OS::fprintf (output_, - "\nTimeStamp\ncreation time: "); - this->printSecNanoSec (creation); - ACE_OS::fprintf (output_, - "event channel received time: "); - this->printSecNanoSec (ec_recv); - ACE_OS::fprintf (output_, - "event_channel sent time: "); - this->printSecNanoSec (ec_send); -} - - -// Visit a struct node -void -PrintVisitor::visitStructNode (StructNode *structNode) { - - // print the padding in front of the line - printPadding (structNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "struct %s {\n", structNode->getName ()); - - for (unsigned int i = 0; i < structNode->getChildNumber (); i++) { - printPadding (structNode->getChild (i)->getRecursionLevel()); - structNode->getChild (i)->Accept((NodeVisitor *)this); - ACE_OS::fprintf (output_, "\n"); - } - - printPadding (structNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "}\n"); -} - -void -PrintVisitor::visitDoubleNode (DoubleNode *doubleNode) { - printPadding (doubleNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::double %s = %f;", doubleNode->getName(), doubleNode->getValue()); -} - -void -PrintVisitor::visitLongNode (LongNode *longNode) { - printPadding (longNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::Long %s = %d;", longNode->getName(), longNode->getValue()); -} - -void -PrintVisitor::visitULongNode (ULongNode *uLongNode) { - printPadding (uLongNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::ULong %s = %d;", uLongNode->getName(), uLongNode->getValue()); -} - -void -PrintVisitor::visitStringNode (StringNode *stringNode) { - printPadding (stringNode->getRecursionLevel()); - ACE_OS::fprintf (output_, "CORBA::String %s = \"%s\";", stringNode->getName(), (char *)stringNode->getValue()); -} - -void -PrintVisitor::printPadding (unsigned int recursion_level) { - switch (recursion_level) { - case 0: break; - case 1: ACE_OS::fprintf (output_, " "); - break; - case 2: ACE_OS::fprintf (output_, " "); - break; - case 3: ACE_OS::fprintf (output_, " "); - break; - case 4: ACE_OS::fprintf (output_, " "); - break; - default: for (unsigned int i = 0; i < recursion_level; i++) - { - ACE_OS::fprintf (output_, " "); - } - break; - } -} - diff --git a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h b/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h deleted file mode 100644 index b2b2a6f28a0..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// PrintVisitor.h -// -// = AUTHOR -// Michael Kircher -// -// = DESCRIPTION -// This file descibes the PrintVisitor used by the any evaluator. -// -// ============================================================================ - -#include "tao/corba.h" -#include "NodeVisitor.h" -#include "Node.h" - -#ifndef PRINT_VISITOR_H -#define PRINT_VISITOR_H - - -// This is a concrete Visitor using the Visitor design pattern -class PrintVisitor : public NodeVisitor { -public: - - PrintVisitor (const char *file_name); - virtual ~PrintVisitor (); - - void printTimeStamp (ACE_hrtime_t creation, - ACE_hrtime_t ec_recv, - ACE_hrtime_t ec_send); - // Print the time stamp - - void close (); - - void visitStructNode (StructNode *structNode); - void visitDoubleNode (DoubleNode *doubleNode); - void visitLongNode (LongNode *longNode); - void visitULongNode (ULongNode *uLongNode); - void visitStringNode (StringNode *stringNode); -private: - void printPadding (unsigned int recursion_level); - void printSecNanoSec (ACE_hrtime_t total_nanoseconds); - - FILE *output_; -}; - -#endif // PRINT_VISITOR_H diff --git a/TAO/examples/Simulator/DOVEMIB/TestClient.dsp b/TAO/examples/Simulator/DOVEMIB/TestClient.dsp deleted file mode 100644 index 6f6162f43d9..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/TestClient.dsp +++ /dev/null @@ -1,172 +0,0 @@ -# Microsoft Developer Studio Project File - Name="TestClient" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=TestClient - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "TestClient.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "TestClient.mak" CFG="TestClient - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "TestClient - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "TestClient - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "TestClient - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "TestClient - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "TestClie"
-# PROP BASE Intermediate_Dir "TestClie"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "TestClie"
-# PROP Intermediate_Dir "TestClie"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\tao" /I "..\..\..\orbsvcs" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /out:"TestClient.exe" /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "TestClient - Win32 Release"
-# Name "TestClient - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\any_test.idl
-
-!IF "$(CFG)" == "TestClient - Win32 Release"
-
-!ELSEIF "$(CFG)" == "TestClient - Win32 Debug"
-
-# Begin Custom Build - Invoking TAO_IDL compiler
-InputPath=.\any_test.idl
-InputName=any_test
-
-BuildCmds= \
- ..\..\..\..\bin\tao_idl -Ge 1 $(InputName).idl
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\any_testC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\any_testS.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\clnt.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "TestClient - Win32 Release"
-
-!ELSEIF "$(CFG)" == "TestClient - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- xcopy ..\$(InputName).idl . \
- ..\..\..\..\bin\tao_idl -Ge 1 $(InputName).idl \
-
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/DOVEMIB/any_test.idl b/TAO/examples/Simulator/DOVEMIB/any_test.idl deleted file mode 100644 index 80bf048a2d2..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test.idl +++ /dev/null @@ -1,11 +0,0 @@ -// $Id$ - -interface Any_Test - // = TITLE - // - // = DESCRIPTION - -{ - void try_an_any (in any a); -}; - diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp b/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp deleted file mode 100644 index d33b6f8c888..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "tao/corba.h" -#include "ace/Containers.h" -#include "any_test_i.h" -#include "NavWeapC.h" -#include "AnyAnalyser.h" - -ACE_RCSID(DOVEMIB, any_test_i, "$Id$") - -// Constructor -Any_Test_i::Any_Test_i (const char *obj_name) -{ -} - -// Destructor -Any_Test_i::~Any_Test_i (void) -{ -} - - -void -Any_Test_i::try_an_any (const CORBA::Any &a, CORBA::Environment &env) -{ - ACE_TRY_NEW_ENV - { - ACE_DEBUG ((LM_DEBUG, "Call to try_an_any succeeded!\n")); - - AnyAnalyser anyAnalyser_ = AnyAnalyser ("stdout"); - ACE_TRY_CHECK; - - Weapons *weapons_ = 0; - if (a.type()->equal(_tc_Weapons, ACE_TRY_ENV)) { - - CORBA::Any b; - b = a; - weapons_ = (Weapons *)b.value(); - - ACE_DEBUG ((LM_DEBUG, - "ID: %d\n" "CompTime: %d\n" - "Adr number of weapons: %d\n" - "Adr CompTime: %d\n", - a.type()->id(ACE_TRY_ENV), - weapons_->computation_time, - (u_long)(void *) &(weapons_->number_of_weapons), - (u_long)(void *) &(weapons_->computation_time))); - } - - anyAnalyser_.printAny (a.type(), a.value()); - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the data.\n")); - } - ACE_ENDTRY; -} - - diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.h b/TAO/examples/Simulator/DOVEMIB/any_test_i.h deleted file mode 100644 index 673b892fb19..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.h +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.h -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#ifndef _ANY_TEST_I_HH -#define _ANY_TEST_I_HH - -#include "any_testS.h" - -// Forward declarations -class Any_Test_i; - -// Typedefs. -typedef Any_Test_i *Any_Test_i_ptr; -typedef Any_Test_i_ptr Any_Test_i_ref; - -class Any_Test_i : public POA_Any_Test - // = TITLE - // = DESCRIPTION -{ -public: - Any_Test_i (const char *obj_name = 0); - // Constructor - - ~Any_Test_i (void); - // Destructor - - virtual void try_an_any (const CORBA::Any &a, - CORBA::Environment &env); -}; - -#endif /* _ANY_TEST_I_HH */ diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.cpp b/TAO/examples/Simulator/DOVEMIB/clnt.cpp deleted file mode 100644 index 95fe3d7e5c7..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/clnt.cpp +++ /dev/null @@ -1,183 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// -// = FILENAME -// clnt.cpp -// -// = DESCRIPTION -// -// = AUTHORS -// Michael Kircher -// -// ============================================================================ - -#include "tao/corba.h" -#include "clnt.h" -#include "NavWeapC.h" - -ACE_RCSID(DOVEMIB, clnt, "$Id$") - -Any_Test_Client::Any_Test_Client () -{ - -} - -Any_Test_Client::~Any_Test_Client () -{ - CORBA::release(this->any_test_ptr_); -} - -int -Any_Test_Client::init (int argc, char *argv []) -{ - - ACE_TRY_NEW_ENV - { - this->argc_ = argc; - this->argv_ = argv; - - // Retrieve the ORB. - this->orb_ = CORBA::ORB_init (this->argc_, - this->argv_, - "internet", - ACE_TRY_ENV); - ACE_TRY_CHECK; - - if (this->argc_ != 2) - { - ACE_ERROR_RETURN ((LM_ERROR, "Expected an IOR as parameter\n"),-1); - } - - CORBA::Object_var any_test_object_ = this->orb_->string_to_object (argv_[1], ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->any_test_ptr_ = Any_Test::_narrow (any_test_object_.in(), ACE_TRY_ENV); - ACE_TRY_CHECK; - - if (CORBA::is_nil (this->any_test_ptr_)) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Invalid IOR specified.\n"), - -1); - } - return 0; - } - ACE_CATCHANY { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - return 0; - } - ACE_ENDTRY; - return 0; -} - -int -Any_Test_Client::run () -{ - ACE_TRY_NEW_ENV - { - CORBA::Any data; - - navigation_.position_latitude = 1; - navigation_.position_longitude = 2; - navigation_.altitude = 3; - navigation_.heading = 4; - navigation_.roll = 5; - navigation_.pitch = 6; - - navigation_.utilization = 1; - navigation_.overhead = 2; - navigation_.arrival_time = 3; - navigation_.deadline_time = 4; - navigation_.completion_time = 5; - navigation_.computation_time = 6; - - data.replace (_tc_Navigation, &navigation_, 0, ACE_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Navigation\n")); - //any_test_ptr_->try_an_any (data, TAO_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Navigation\n")); - - -/* CORBA::Short x_ = 8; - data <<= x_; - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Navigation\n")); - any_test_ptr_->try_an_any (data, TAO_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Navigation\n")); -*/ - - weapons_.number_of_weapons = 5; - weapons_.weapon1_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon1_identifier.out (), "A"); - weapons_.weapon1_status = 1; - weapons_.weapon2_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon2_identifier.out (), "B"); - weapons_.weapon2_status = 2; - weapons_.weapon3_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon3_identifier.out (), "C"); - weapons_.weapon3_status = 4; - weapons_.weapon4_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon4_identifier.out (), "D"); - weapons_.weapon4_status = 8; - weapons_.weapon5_identifier = CORBA::string_alloc (20); - strcpy (weapons_.weapon5_identifier.out (), "E"); - weapons_.weapon5_status = 16; - - weapons_.utilization = 1; - weapons_.overhead = 2; - weapons_.arrival_time = 3; - weapons_.deadline_time = 4; - weapons_.completion_time = 5; - weapons_.computation_time = 6; - - data.replace (_tc_Weapons, &weapons_, 0, ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Weapons\n")); - any_test_ptr_->try_an_any (data, ACE_TRY_ENV); - ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Weapons\n")); - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Error in Any_Test_Client::run"); - } - ACE_ENDTRY; - - - return 0; -} - - - -// function main - -int -main (int argc, char *argv []) -{ - - ACE_TRY_NEW_ENV - { - Any_Test_Client any_test_client_; - ACE_TRY_CHECK; - - if (any_test_client_.init (argc, argv) == -1) - return 1; - ACE_TRY_CHECK; - - return any_test_client_.run (); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - - return 0; -} - diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.h b/TAO/examples/Simulator/DOVEMIB/clnt.h deleted file mode 100644 index c5582c2dd9b..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/clnt.h +++ /dev/null @@ -1,68 +0,0 @@ -// -*- c++ -*- -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// clnt.h -// -// = DESCRIPTION -// -// = AUTHORS -// Michael Kircher -// -// ============================================================================ - -#include "ace/Get_Opt.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "tao/corba.h" -#include "any_testC.h" -#include "NavWeapC.h" - -class Any_Test_Client - // = TITLE - // - // = DESCRIPTION -{ -public: - // = Constructor and destructor. - Any_Test_Client (void); - ~Any_Test_Client (void); - - int run (void); - // Execute client example code. - - int init (int argc, char **argv); - // Initialize the client communication endpoint with server. - -private: - - CORBA::ORB_var orb_; - // Remember our orb: this needs to be declared before any member that - // depends on it so it is constructed before and destroyed after them. - - Navigation navigation_; - // Navigation data structure. - - Weapons weapons_; - // Weapons data structure. - - Any_Test_ptr any_test_ptr_; - // Reverse_ptr reverse_ptr_; - - int argc_; - // # of arguments on the command line. - - char **argv_; - // arguments from command line. - - CORBA::Environment env_; - // Environment variable - -}; diff --git a/TAO/examples/Simulator/DOVEMIB/svc.conf b/TAO/examples/Simulator/DOVEMIB/svc.conf deleted file mode 100644 index e5af6a64d09..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/svc.conf +++ /dev/null @@ -1,4 +0,0 @@ -# $Id$ -# - -static Server_Strategy_Factory "-ORBdemuxstrategy dynamic -ORBtablesize 128" diff --git a/TAO/examples/Simulator/DOVEMIB/svr.cpp b/TAO/examples/Simulator/DOVEMIB/svr.cpp deleted file mode 100644 index 650b0f12954..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/svr.cpp +++ /dev/null @@ -1,168 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// svr.cpp -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "ace/Get_Opt.h" -#include "tao/corba.h" -#include "any_test_i.h" -//#include "Node.h" - -ACE_RCSID(DOVEMIB, svr, "$Id$") - -// Global Variables -static int num_of_objs = 1; - -// Parses the command line arguments and returns an error status - -static int -parse_args (int argc, char *argv[]) -{ - ACE_Get_Opt get_opts (argc, argv, ""); - int c; - - while ((c = get_opts ()) != -1) - switch (c) - { - case '?': - default: - ACE_ERROR_RETURN ((LM_ERROR, - "usage: %s" - " [-d]" - " [-n] <num of cubit objects>" - "\n", argv [0]), 1); - } - - return 0; // Indicates successful parsing of command line -} - -// Standard command line parsing utilities used. - -int -main (int argc, char *argv[]) -{ - /* - CORBA::Long long_ = 4; - CORBA::Double double_ = 5.0; - StructNode *structNode_ptr_ = new StructNode ("ABC"); - - structNode_ptr_->addChild ((Node *)new DoubleNode (&double_, "My_Double")); - structNode_ptr_->addChild ((Node *)new LongNode (&long_, "My_Long")); - - structNode_ptr_->print (); - */ - - ACE_TRY_NEW_ENV - { - CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_DEBUG ((LM_DEBUG, "Having the ORB\n")); - - // Initialize the Object Adapter - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - if (CORBA::is_nil(poa_object.in())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::PolicyList policies (2); - policies.length (2); - policies[0] = - root_poa->create_id_assignment_policy (PortableServer::USER_ID, - ACE_TRY_ENV); - policies[1] = - root_poa->create_lifespan_policy (PortableServer::PERSISTENT, - ACE_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, "Having the rootPOA\n")); - - // We use a different POA, otherwise the user would have to - // change the object key each time it invokes the server. - PortableServer::POA_var good_poa = - root_poa->create_POA ("child_poa", - poa_manager.in (), - policies, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Parse remaining command line and verify parameters. - parse_args (argc, argv); - - ACE_DEBUG ((LM_DEBUG, "Starting the implementation\n")); - - // create a factory implementation - Any_Test_i_ptr any_test_i_ptr_ = new Any_Test_i (); - ACE_TRY_CHECK; - - ACE_DEBUG ((LM_DEBUG, "Started the implementation\n")); - - PortableServer::ObjectId_var id = - PortableServer::string_to_ObjectId ("Any_Test"); - good_poa->activate_object_with_id (id.in (), - any_test_i_ptr_, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Stringify the objref we'll be implementing, and print it to - // stdout. Someone will take that string and give it to a - // client. Then release the object. - CORBA::Object_var obj = - good_poa->id_to_reference (id.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::String_var str = - orb->object_to_string (obj.in (), - ACE_TRY_ENV); - - ACE_DEBUG ((LM_DEBUG, - "The IOR is: <%s>\n", str.in ())); - - - poa_manager->activate (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Handle requests for this object until we're killed, or one of - // the methods asks us to exit. - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), -1); - - root_poa->destroy (1, - 1, - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCH (CORBA::SystemException, sysex) - { - ACE_UNUSED_ARG(sysex); - ACE_PRINT_EXCEPTION (sysex, "System Exception"); - return -1; - } - ACE_CATCH (CORBA::UserException, userex) - { - ACE_UNUSED_ARG(userex); - ACE_PRINT_EXCEPTION (userex, "User Exception"); - return -1; - } - ACE_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.cpp b/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.cpp deleted file mode 100644 index de2ba4e47c2..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.cpp +++ /dev/null @@ -1,522 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// DOVE_Supplier.cpp -// -// = DESCRIPTION -// A wrapper around the event service initialization and -// marshalling -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include "DOVE_Supplier.h" - -ACE_RCSID(Event_Supplier, DOVE_Supplier, "$Id$") - -// Static pointer member initialization for Singleton. - -ACE_Scheduler_Factory::POD_RT_Info * -DOVE_Supplier::pod_rt_info_instance_ = 0; - -// Constructor. - -DOVE_Supplier::DOVE_Supplier () - : initialized_ (0), - connected_ (0), - connection_params_list_ (0), - current_connection_params_ (0), - connection_count_ (0), - current_connection_index_ (0), - internal_DOVE_Supplier_ptr_ (0), - MIB_name_ (0) -{ - ACE_NEW (internal_DOVE_Supplier_ptr_, - Internal_DOVE_Supplier (this)); - - if (internal_DOVE_Supplier_ptr_ == 0) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::DOVE_Supplier internal " - "supplier not allocated.")); - } -} - -// Destructor. - -DOVE_Supplier::~DOVE_Supplier () -{ - for (int i = 0; i < this->connection_count_; ++i) - { - delete (this->connection_params_list_ [i]); - } - - delete [] this->connection_params_list_; - - delete internal_DOVE_Supplier_ptr_; - -} - -// Initialize the ORB and the connection to the Name Service - -int -DOVE_Supplier::init (void) -{ - ACE_TRY_NEW_ENV - { - // Connect to the RootPOA. - CORBA::Object_var poaObject_var = - TAO_ORB_Core_instance()->orb()->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poaObject_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - -1); - - this->root_POA_var_ = - PortableServer::POA::_narrow (poaObject_var.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->poa_manager_ = - root_POA_var_->the_POAManager (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - TAO_ORB_Core_instance()->orb()->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to get the Naming Service.\n"), - -1); - - this->namingContext_var_ = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DOVE_Supplier::init"); - return -1; - } - ACE_ENDTRY; - - initialized_ = 1; - return 0; -} - -int -DOVE_Supplier::connect (const char* MIB_name, - const char* es_name, - const char * ss_name, - ACE_Scheduler_Factory::POD_RT_Info * pod_rt_info) -{ - // Initialize the supplier if this has not already been done. - if ((initialized_ == 0) && (this->init () == -1)) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the DOVE_Supplier.\n"), - -1); - } - - - // Grab the default RT_Info settings if others were not provided. - if (pod_rt_info == 0) - { - // Get the default singleton if we were not passed the data - pod_rt_info = DOVE_Supplier::pod_rt_info_instance (); - if (pod_rt_info == 0) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to obtain" - " the default RT_Info data.\n"), - -1); - } - } - - // Save the passed MIB name - MIB_name_ = (MIB_name == 0) ? "MIB_unknown" : MIB_name; - - // Create a new connection parameters structure. - Connection_Params * cp_temp = 0; - ACE_NEW_RETURN (cp_temp, Connection_Params, -1); - - // Populate the known fields of the new connection params struct. - cp_temp->pod_rt_info_ = *pod_rt_info; - cp_temp->es_name_ = (es_name == 0) ? "EventService" : es_name; - cp_temp->ss_name_ = (ss_name == 0) ? "ScheduleService" : ss_name; - - // Allocate a new connection parameters pointer array. - // Cannot use ACE_NEW_RETURN here, as we need to clean up - // cp_temp if we fail here, and we need what cp_temp points - // to after the current scope if we succeed here. - Connection_Params ** cp_list_temp; - cp_list_temp = - new Connection_Params * [this->connection_count_ + 1]; - if (cp_list_temp == 0) - { - // Avoid a memory leak if we failed to allocate. - delete cp_temp; - - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) DOVE_Supplier::connect could not " - "reallocate connection params list"), - -1); - } - - // Copy the connection struct pointers from - // the old list (if any) to the new one. - for (int i = 0; i < this->connection_count_; ++i) - { - cp_list_temp [i] = - this->connection_params_list_ [i]; - } - - // Put a pointer to the new connection params structure - // in the new list, increment the connection params count, - // and point to the latest connection parameters. - cp_list_temp [this->connection_count_] = cp_temp; - this->current_connection_params_ = cp_temp; - current_connection_index_ = connection_count_; - ++ (this->connection_count_); - - // Replace the old list of pointers with the new one - delete [] this->connection_params_list_; - this->connection_params_list_ = cp_list_temp; - - // Resolve the event service reference. - if (this->get_EventChannel () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to resolve the event service.\n"), - -1); - } - - // Resolve the scheduling service reference. - if (this->get_Scheduler () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to resolve the scheduler.\n"), - -1); - } - - // Connect to the event service as a supplier. - if (this->connect_Supplier () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to connect to the event service.\n"), - -1); - } - - return 0; - -} - - -// This method is invoked after all connect calls are done. - -void -DOVE_Supplier::connected () -{ - if (! connected_) - { - // Code to do post-connection-establishment - // one-time logic goes here. - - connected_ = 1; - } -} - - -void -DOVE_Supplier::disconnect () -{ -} - - -void -DOVE_Supplier::notify (CORBA::Any &message) -{ - // Finalize connection establishment no later than the first event notification - if (! connected_) - { - this->connected (); - } - - ACE_TRY_NEW_ENV - { - RtecEventComm::Event event; - event.header.source = SOURCE_ID; - event.header.type = ACE_ES_EVENT_NOTIFICATION; - event.header.ttl = 1; - ACE_hrtime_t creation_time = ACE_OS::gethrtime (); - ORBSVCS_Time::hrtime_to_TimeT (event.header.creation_time, creation_time); - event.header.ec_recv_time = ORBSVCS_Time::zero (); - event.header.ec_send_time = ORBSVCS_Time::zero (); - event.data.any_value = message; - - RtecEventComm::EventSet events; - events.length (1); - events[0] = event; - - // Now we invoke a RPC - this->current_connection_params_->proxyPushConsumer_var_->push (events, - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::notify: " - "unexpected exception.\n")); - } - ACE_ENDTRY; -} - - -// Use the next connection in the list of established connections. - -void -DOVE_Supplier::use_next_connection () -{ - if (connection_count_ > 0) - { - current_connection_index_ = - (current_connection_index_ == connection_count_ - 1) - ? 0 : current_connection_index_ + 1; - - current_connection_params_ = - connection_params_list_ [current_connection_index_]; - } -} - - -// Use the previous connection in the list of established connections. - -void -DOVE_Supplier::use_prev_connection () -{ - if (connection_count_ > 0) - { - current_connection_index_ = - (current_connection_index_ == 0) - ? connection_count_ - 1 - : current_connection_index_ - 1; - - current_connection_params_ = - connection_params_list_ [current_connection_index_]; - } -} - - - -// -------------------- Internal Demo Supplier ----------------------------- - -DOVE_Supplier::Internal_DOVE_Supplier::Internal_DOVE_Supplier (DOVE_Supplier *impl_ptr) - : impl_ptr_ (impl_ptr) -{ -} - -// ---------------------------------------------------------------------------- - -int -DOVE_Supplier::get_Scheduler () -{ - ACE_TRY_NEW_ENV - { - CosNaming::Name schedule_name (1); - schedule_name.length (1); - schedule_name[0].id = - CORBA::string_dup (this->current_connection_params_->ss_name_); - - CORBA::Object_var objref = - namingContext_var_->resolve (schedule_name, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->current_connection_params_->scheduler_var_ = - RtecScheduler::Scheduler::_narrow(objref.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - current_connection_params_->scheduler_var_ = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "DOVE_Supplier::get_Scheduler: " - "error while resolving scheduler %s\n", - this->current_connection_params_->ss_name_), - -1); - } - ACE_ENDTRY; - - return 0; -} - - -int -DOVE_Supplier::get_EventChannel () -{ - ACE_TRY_NEW_ENV - { - // Get a reference to the Event Service - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = - CORBA::string_dup (this->current_connection_params_->es_name_); - - CORBA::Object_var eventServiceObj_var = - this->namingContext_var_->resolve (channel_name, ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->current_connection_params_->eventChannel_var_ = - RtecEventChannelAdmin::EventChannel::_narrow (eventServiceObj_var.in(), - ACE_TRY_ENV); - ACE_TRY_CHECK; - - if (CORBA::is_nil (this->current_connection_params_->eventChannel_var_.in())) - ACE_ERROR_RETURN ((LM_ERROR, - "The reference to the event channel is nil!"), - 1); - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DOVE_Supplier::get_EventChannel"); - return -1; - } - ACE_ENDTRY; - - return 0; -} - - -int -DOVE_Supplier::connect_Supplier () -{ - ACE_TRY_NEW_ENV - { - // Generate the Real-time information descriptor. - this->current_connection_params_->rt_info_ = - this->current_connection_params_-> - scheduler_var_-> - create (this->current_connection_params_->pod_rt_info_.entry_point, - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->current_connection_params_->scheduler_var_-> - set (this->current_connection_params_->rt_info_, - ACE_static_cast (RtecScheduler::Criticality_t, - this->current_connection_params_->pod_rt_info_.criticality), - this->current_connection_params_->pod_rt_info_.worst_case_execution_time, - this->current_connection_params_->pod_rt_info_.typical_execution_time, - this->current_connection_params_->pod_rt_info_.cached_execution_time, - this->current_connection_params_->pod_rt_info_.period, - ACE_static_cast (RtecScheduler::Importance_t, - this->current_connection_params_->pod_rt_info_.importance), - this->current_connection_params_->pod_rt_info_.quantum, - this->current_connection_params_->pod_rt_info_.threads, - ACE_static_cast (RtecScheduler::Info_Type_t, - this->current_connection_params_->pod_rt_info_.info_type), - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - - // Set the publications to report them to the event channel. - - CORBA::Short x = 0; - RtecEventChannelAdmin::SupplierQOS qos; - qos.publications.length (1); - qos.publications[0].event.header.source = SOURCE_ID; - qos.publications[0].event.header.type = ACE_ES_EVENT_NOTIFICATION; - qos.publications[0].event.header.ttl = 1; - qos.publications[0].event.header.creation_time = ORBSVCS_Time::zero (); - qos.publications[0].event.header.ec_recv_time = ORBSVCS_Time::zero (); - qos.publications[0].event.header.ec_send_time = ORBSVCS_Time::zero (); - qos.publications[0].event.data.any_value.replace (CORBA::_tc_short, - &x, - 0, - ACE_TRY_ENV); - ACE_TRY_CHECK; - qos.publications[0].dependency_info.number_of_calls = 1; - qos.publications[0].dependency_info.rt_info = - this->current_connection_params_->rt_info_; - - // = Connect as a supplier. - this->current_connection_params_->supplierAdmin_var_ = - this->current_connection_params_->eventChannel_var_->for_suppliers (ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->current_connection_params_->proxyPushConsumer_var_ = - this->current_connection_params_->supplierAdmin_var_->obtain_push_consumer (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // In calling _this we get back an object reference and register - // the servant with the POA. - RtecEventComm::PushSupplier_var pushSupplier_var = - this->internal_DOVE_Supplier_ptr_->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Connect the supplier to the proxy consumer. - ACE_SupplierQOS_Factory::debug (qos); - this->current_connection_params_-> - proxyPushConsumer_var_->connect_push_supplier (pushSupplier_var.in (), - qos, - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DOVE_Supplier::connect_supplier"); - return -1; - } - ACE_ENDTRY; - - return 0; - -} - - -// Access the default rt_info singleton. - -ACE_Scheduler_Factory::POD_RT_Info * -DOVE_Supplier::pod_rt_info_instance () -{ - if (DOVE_Supplier::pod_rt_info_instance_ == 0) - { - ACE_NEW_RETURN (DOVE_Supplier::pod_rt_info_instance_, - ACE_Scheduler_Factory::POD_RT_Info, - 0); - - // Set up the default data. - DOVE_Supplier::pod_rt_info_instance_->entry_point = "ABC"; - DOVE_Supplier::pod_rt_info_instance_->criticality = - RtecScheduler::VERY_LOW_CRITICALITY; - DOVE_Supplier::pod_rt_info_instance_->worst_case_execution_time = - ORBSVCS_Time::zero (); - DOVE_Supplier::pod_rt_info_instance_->typical_execution_time = - ORBSVCS_Time::zero (); - DOVE_Supplier::pod_rt_info_instance_->cached_execution_time = - ORBSVCS_Time::zero (); - DOVE_Supplier::pod_rt_info_instance_->period = 10000000; - DOVE_Supplier::pod_rt_info_instance_->importance = - RtecScheduler::VERY_LOW_IMPORTANCE; - DOVE_Supplier::pod_rt_info_instance_->quantum = ORBSVCS_Time::zero (); - DOVE_Supplier::pod_rt_info_instance_->threads = 1; - DOVE_Supplier::pod_rt_info_instance_->info_type = - RtecScheduler::OPERATION; - } - - return DOVE_Supplier::pod_rt_info_instance_; -} - - diff --git a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h b/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h deleted file mode 100644 index 1e65742113d..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/DOVE_Supplier.h +++ /dev/null @@ -1,141 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// DOVE_Supplier.h -// -// = DESCRIPTION -// A wrapper around the event service initialization and marshalling. -// -// = AUTHORS -// Michael Kircher (mk1@cs.wustl.edu) -// Chris Gill (cdgill@cs.wustl.edu) -// ============================================================================ - -#include "ace/OS.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "tao/corba.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" - - -#ifndef DOVE_SUPPLIER_H -#define DOVE_SUPPLIER_H - -#define SOURCE_ID 123 - -class DOVE_Supplier -{ -public: - - DOVE_Supplier (); - // Constructor. - - ~DOVE_Supplier (void); - // Destructor. - - int init (void); - // Initialize the ORB and the connection to the Name Service - - int connect (const char * MIB_name = 0, - const char* es_name = 0, - const char * ss_name = 0, - ACE_Scheduler_Factory::POD_RT_Info * pod_rt_info = 0); - // Connect to the event service. - - void connected (); - // Perform all post-connection-establishment processing. - - void disconnect (); - // Disconnect from the event service. - - void notify (CORBA::Any& message); - // Notify the consumer proxy that we have events - - void use_next_connection (); - // Use the next connection in the list of established connections. - - void use_prev_connection (); - // Use the previous connection in the list of established connections. - -private: - - // The following Supplier is needed because DOVE_Supplier has not - // inherited from PushSupplier. - - class Internal_DOVE_Supplier : public POA_RtecEventComm::PushSupplier - { - friend class DOVE_Supplier; - - public: - - virtual void disconnect_push_supplier (CORBA::Environment &) - ACE_THROW_SPEC ((CORBA::SystemException)) - { - } - - private: - - Internal_DOVE_Supplier (DOVE_Supplier* impl_ptr); - - DOVE_Supplier* impl_ptr_; - }; - -private: - - struct Connection_Params - { - const char * es_name_; - const char * ss_name_; - RtecEventChannelAdmin::EventChannel_var eventChannel_var_; - RtecEventChannelAdmin::SupplierAdmin_var supplierAdmin_var_; - RtecEventChannelAdmin::ProxyPushConsumer_var proxyPushConsumer_var_; - RtecScheduler::Scheduler_var scheduler_var_; - RtecScheduler::handle_t rt_info_; - ACE_Scheduler_Factory::POD_RT_Info pod_rt_info_; - }; - - int get_EventChannel (); - // Get the event channel reference. - - int get_Scheduler (); - // Get the scheduler reference. - - int connect_Supplier (); - // Connect the the supplier with the event channel. - - static ACE_Scheduler_Factory::POD_RT_Info * pod_rt_info_instance (); - // Access the default rt_info singleton. - - static ACE_Scheduler_Factory::POD_RT_Info * pod_rt_info_instance_; - - // Object initialization flags - int initialized_; - int connected_; - - Connection_Params ** connection_params_list_; - Connection_Params * current_connection_params_; - int connection_count_; - int current_connection_index_; - - // = ORB, ORB Services adminstration references. - CosNaming::NamingContext_var namingContext_var_; - PortableServer::POA_var root_POA_var_; - PortableServer::POAManager_var poa_manager_; - - Internal_DOVE_Supplier* internal_DOVE_Supplier_ptr_; - - const char * MIB_name_; - // Keep the name of the MIB around. -}; - -#endif /* DOVE_SUPPLIER_H */ - diff --git a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp deleted file mode 100644 index feed16d3360..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp +++ /dev/null @@ -1,1207 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// DualEC_Sup.cpp -// -// = DESCRIPTION -// Event Supplier for visualizing scheduling behavior, using arrival -// and dispatch data logged by an event channel dispatch command object -// -// = AUTHOR -// Chris Gill (cdgill@cs.wustl.edu) -// -// Adapted from the DOVE simulation event supplier -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include <limits.h> - -#include "tao/corba.h" -#include "tao/TAO.h" -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -//#include "ace/Profile_Timer.h" -#include "ace/OS.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/orbsvcs/Sched/Config_Scheduler.h" -#include "orbsvcs/orbsvcs/Runtime_Scheduler.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "DualEC_Sup.h" -#include "NavWeapC.h" - -ACE_RCSID(Event_Supplier, DualEC_Sup, "$Id$") - -static const char usage [] = -"[[-?]\n" -" -f <name of input data file>\n" -" [-O[RBport] ORB port number]\n" -" [-m <count> of messages to send (2000)]\n" -" [-b <count> at which to break navigation event\n" -" stream out onto its own channel (1000)]\n" -" [-n <usec> pause between navigation events (100000)]\n" -" [-w <usec> pause between weapons events (100000)]\n" -" [-d to dump scheduler header files]\n" -" [-s to suppress data updates by EC]\n" -" [-r to use runtime schedulers]\n" -" [-p to suppress prioritization of operations]\n"; - -DualEC_Supplier::DualEC_Supplier (int argc, char** argv) -: nav_pause_ (0, 100000), - weap_pause_ (0, 100000), - channel_hi_name_ (1), - channel_lo_name_ (1), - sched_hi_name_ (1), - sched_lo_name_ (1), - sched_hi_impl_ (0), - sched_lo_impl_ (0), - ec_hi_impl_ (0), - ec_lo_impl_ (0), - argc_(argc), - argv_(argv), - total_messages_ (2000), - break_count_(-1), - input_file_name_(0), - update_data_ (1), - dump_schedule_headers_ (0), - use_runtime_schedulers_ (0), - suppress_priority_ (0), - hi_schedule_file_name_ ("DualEC_Runtime_Hi.h"), - lo_schedule_file_name_ ("DualEC_Runtime_Lo.h"), - nav_roll_ (0), - nav_pitch_ (0) -{ - ACE_TRY_NEW_ENV - { - this->sched_hi_name_.length (1); - this->sched_hi_name_[0].id = CORBA::string_dup ("DUAL_SCHED_HI"); - ACE_TRY_CHECK; - - this->sched_lo_name_.length (1); - this->sched_lo_name_[0].id = CORBA::string_dup ("DUAL_SCHED_LO"); - ACE_TRY_CHECK; - - this->channel_hi_name_.length (1); - this->channel_hi_name_[0].id = CORBA::string_dup ("DUAL_EC_HI"); - ACE_TRY_CHECK; - - this->channel_lo_name_.length (1); - this->channel_lo_name_[0].id = CORBA::string_dup ("DUAL_EC_LO"); - ACE_TRY_CHECK; - - this->terminator_ = terminator_impl_._this (ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DualEC_Supplier::DualEC_Supplier : could " - "not resolve reference to terminator"); - } - ACE_ENDTRY; - - // Initialize the high priority RT_Info data - rt_info_nav_hi_.entry_point = "DUALEC_NAV_HI"; - rt_info_nav_hi_.criticality = RtecScheduler::VERY_HIGH_CRITICALITY; - rt_info_nav_hi_.worst_case_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_hi_.typical_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_hi_.cached_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_hi_.period = 2500000; - rt_info_nav_hi_.importance = RtecScheduler::VERY_HIGH_IMPORTANCE; - rt_info_nav_hi_.quantum = ORBSVCS_Time::zero (); - rt_info_nav_hi_.threads = 1; - rt_info_nav_hi_.info_type = RtecScheduler::OPERATION; - rt_info_weap_hi_ = rt_info_nav_hi_; - rt_info_weap_hi_.entry_point = "DUALEC_WEAP_HI"; - rt_info_dummy_hi_ = rt_info_nav_hi_; - rt_info_dummy_hi_.entry_point = "DUALEC_DUMMY_HI"; - - // Initialize the low priority RT_Info data - rt_info_nav_lo_.entry_point = "DUALEC_NAV_LO"; - rt_info_nav_lo_.criticality = RtecScheduler::VERY_LOW_CRITICALITY; - rt_info_nav_lo_.worst_case_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_lo_.typical_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_lo_.cached_execution_time = ORBSVCS_Time::zero (); - rt_info_nav_lo_.period = 10000000; - rt_info_nav_lo_.importance = RtecScheduler::VERY_LOW_IMPORTANCE; - rt_info_nav_lo_.quantum = ORBSVCS_Time::zero (); - rt_info_nav_lo_.threads = 1; - rt_info_nav_lo_.info_type = RtecScheduler::OPERATION; - rt_info_weap_lo_ = rt_info_nav_lo_; - rt_info_weap_lo_.entry_point = "DUALEC_WEAP_LO"; - rt_info_dummy_lo_ = rt_info_nav_lo_; - rt_info_dummy_lo_.entry_point = "DUALEC_DUMMY_LO"; -} - -DualEC_Supplier::~DualEC_Supplier () -{ - ACE_TRY_NEW_ENV - { - this->navigation_Supplier_.disconnect (); - this->weapons_Supplier_.disconnect (); - - // Unbind the schedulers from the NS. - this->naming_context_->unbind (this->sched_hi_name_, ACE_TRY_ENV); - ACE_TRY_CHECK; - this->naming_context_->unbind (this->sched_lo_name_, ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Unbind the ECs from the NS. - this->naming_context_->unbind (this->channel_hi_name_, ACE_TRY_ENV); - ACE_TRY_CHECK; - this->naming_context_->unbind (this->channel_lo_name_, ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DualEC_Supplier::~DualEC_Supplier"); - } - ACE_ENDTRY; - - // @@TBD - destroy the ECs - // @@TBD - destroy the schedulers -} - -int -DualEC_Supplier::init () -{ - this->get_options (argc_, argv_); - - ACE_TRY_NEW_ENV - { - // Connect to the RootPOA. - CORBA::Object_var poaObject_var = - TAO_ORB_Core_instance()->orb()->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poaObject_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - this->root_POA_var_ = - PortableServer::POA::_narrow (poaObject_var.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->poa_manager_ = - root_POA_var_->the_POAManager (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Get the Naming Service object reference. - CORBA::Object_var namingObj_var = - TAO_ORB_Core_instance()->orb()->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (namingObj_var.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to get the Naming Service.\n"), - -1); - - this->naming_context_ = - CosNaming::NamingContext::_narrow (namingObj_var.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DualEC_Supplier::init"); - return -1; - } - ACE_ENDTRY; - - // Create two scheduling service instances. - if (this->create_schedulers () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not create schedulers"), - -1); - } - - // Create two event channels. - if (this->create_event_channels () == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not create event channels"), - -1); - } - - // Connect suppliers to the respective event channels. - ACE_Scheduler_Factory::POD_RT_Info * rt_info_nav_hi = - (suppress_priority_) ? 0 : &rt_info_nav_hi_; - ACE_Scheduler_Factory::POD_RT_Info * rt_info_weap_hi = - (suppress_priority_) ? 0 : &rt_info_weap_hi_; - ACE_Scheduler_Factory::POD_RT_Info * rt_info_nav_lo = - (suppress_priority_) ? 0 : &rt_info_nav_lo_; - ACE_Scheduler_Factory::POD_RT_Info * rt_info_weap_lo = - (suppress_priority_) ? 0 : &rt_info_weap_lo_; - - if (this->navigation_Supplier_.connect ("MIB_unknown", - "DUAL_EC_HI", - "DUAL_SCHED_HI", - rt_info_nav_hi) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not connect navigation supplier to DUAL_EC_HI"), - -1); - } - - if (this->navigation_Supplier_.connect ("MIB_unknown", - "DUAL_EC_LO", - "DUAL_SCHED_LO", - rt_info_nav_lo) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not connect navigation supplier to DUAL_EC_LO"), - -1); - } - - if (this->weapons_Supplier_.connect ("MIB_unknown", - "DUAL_EC_HI", - "DUAL_SCHED_HI", - rt_info_weap_hi) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not connect weapons supplier to DUAL_EC_HI"), - -1); - } - - if (this->weapons_Supplier_.connect ("MIB_unknown", - "DUAL_EC_LO", - "DUAL_SCHED_LO", - rt_info_weap_lo) == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Could not connect weapons supplier to DUAL_EC_LO"), - -1); - } - - return 0; -} - -// Private class that implements a termination servant. - -void -DualEC_Supplier::Terminator::shutdown (CORBA::Environment &ACE_TRY_ENV) -{ - ACE_TRY - { - TAO_ORB_Core_instance ()->orb ()->shutdown (); - } - ACE_CATCHANY - { - } - ACE_ENDTRY; -} - - -// Run the ORB event loop. - -void * -DualEC_Supplier::run_orb (void *) -{ - ACE_TRY - { - TAO_ORB_Core_instance ()->orb ()->run (); - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// Run navigation event generation thread. - -void * -DualEC_Supplier::run_nav_thread (void *arg) -{ - DualEC_Supplier * sup = - ACE_static_cast (DualEC_Supplier *, arg); - - ACE_TRY_NEW_ENV - { - ACE_Unbounded_Queue_Iterator<Navigation *> - nav_iter (sup->navigation_data_); - - if (nav_iter.done ()) - { - ACE_ERROR_RETURN ((LM_ERROR, - "DualEC_Supplier::run_event_thread: " - "there is no navigation data\n"), 0); - } - - CORBA::Any any; - - long total_sent = 0; - - do - { - // Insert the event data - Navigation **nav; - - if ((nav_iter.next (nav)) && (nav) && (*nav)) - { - any.replace (_tc_Navigation, *nav, 0, ACE_TRY_ENV); - - // Sleep briefly to avoid too much livelock (a little is good). - ACE_OS::sleep (sup->nav_pause_); - - // If the break count has been reached, change the - // channel that is being used by the NAV supplier - if (total_sent == sup->break_count_) - { - ACE_DEBUG ((LM_DEBUG, - "breaking out nav at event: %d\n", - sup->break_count_)); - - sup->navigation_Supplier_.use_next_connection (); - } - - sup->navigation_Supplier_.notify (any); - } - else - { - ACE_ERROR ((LM_ERROR, - "DualEC_Supplier::run_nav_thread:" - "Could Not access navigation data")); - } - - if (total_sent < 5) - ACE_DEBUG ((LM_DEBUG, - "Pushing event data.\n")); - else if (total_sent == 5) - ACE_DEBUG ((LM_DEBUG, - "Everything is running. Going to be mute.\n")); - - nav_iter.advance (); - - if (nav_iter.done ()) - nav_iter.first (); - - } - while (++total_sent < sup->total_messages_); - - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - -// Run weapons event generation thread. - -void * -DualEC_Supplier::run_weap_thread (void *arg) -{ - DualEC_Supplier * sup = - ACE_static_cast (DualEC_Supplier *, arg); - - ACE_TRY_NEW_ENV - { - ACE_Unbounded_Queue_Iterator<Weapons *> - weap_iter (sup->weapons_data_); - - if (weap_iter.done ()) - { - ACE_ERROR_RETURN ((LM_ERROR, - "DualEC_Supplier::run_event_thread: " - "there is no navigation data\n"), 0); - } - - CORBA::Any any; - - long total_sent = 0; - - do - { - // Insert the event data - Weapons **weap; - - if ((weap_iter.next (weap)) && (weap) && (*weap)) - { - any.replace (_tc_Weapons, *weap, 0, ACE_TRY_ENV); - - // Sleep briefly to avoid too much livelock (a little is good). - ACE_OS::sleep (sup->weap_pause_); - - sup->weapons_Supplier_.notify (any); - } - else - { - ACE_ERROR ((LM_ERROR, - "DualEC_Supplier::run_weap_thread:" - "Could Not access weapons data")); - } - - if (total_sent < 5) - ACE_DEBUG ((LM_DEBUG, - "Pushing event data.\n")); - else if (total_sent == 5) - ACE_DEBUG ((LM_DEBUG, - "Everything is running. Going to be mute.\n")); - - weap_iter.advance (); - - if (weap_iter.done ()) - weap_iter.first (); - - } - while (++total_sent < sup->total_messages_); - - } - ACE_CATCHANY - { - } - ACE_ENDTRY; - - return 0; -} - - - -// Create two scheduling service instances, register -// them with the Naming Service. - -int -DualEC_Supplier::create_schedulers (void) -{ - // @@TBD - look at a command line modified setting, - // create either a runtime or a config scheduler for - // each instance - - ACE_TRY_NEW_ENV - { - if (use_runtime_schedulers_) - { - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Runtime Schedulers not implemented\n"), - -1); - } - else - { - // Create Event Service Implementations, passing in the respective - // Scheduling Service Implementations (which must already be created). - - ACE_NEW_RETURN (this->sched_hi_impl_, - ACE_Config_Scheduler, - -1); - - this->sched_hi_ = sched_hi_impl_->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_NEW_RETURN (this->sched_lo_impl_, - ACE_Config_Scheduler, - -1); - - this->sched_lo_ = sched_lo_impl_->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Register Scheduling Service Implementations with Naming Service - - this->naming_context_->bind (this ->sched_hi_name_, - this->sched_hi_.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - naming_context_->bind (this->sched_lo_name_, - this->sched_lo_.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Register high and low priority rt_infos with the - // schedulers to force priority differentiation. - - this->sched_hi_rt_info_hi_ = - this->sched_hi_-> - create (this->rt_info_dummy_hi_.entry_point, - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_hi_-> - set (this->sched_hi_rt_info_hi_, - ACE_static_cast (RtecScheduler::Criticality_t, - this->rt_info_dummy_hi_.criticality), - this->rt_info_dummy_hi_.worst_case_execution_time, - this->rt_info_dummy_hi_.typical_execution_time, - this->rt_info_dummy_hi_.cached_execution_time, - this->rt_info_dummy_hi_.period, - ACE_static_cast (RtecScheduler::Importance_t, - this->rt_info_dummy_hi_.importance), - this->rt_info_dummy_hi_.quantum, - this->rt_info_dummy_hi_.threads, - ACE_static_cast (RtecScheduler::Info_Type_t, - this->rt_info_dummy_hi_.info_type), - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_hi_rt_info_lo_ = - this->sched_hi_-> - create (this->rt_info_dummy_lo_.entry_point, - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_hi_-> - set (this->sched_hi_rt_info_lo_, - ACE_static_cast (RtecScheduler::Criticality_t, - this->rt_info_dummy_lo_.criticality), - this->rt_info_dummy_lo_.worst_case_execution_time, - this->rt_info_dummy_lo_.typical_execution_time, - this->rt_info_dummy_lo_.cached_execution_time, - this->rt_info_dummy_lo_.period, - ACE_static_cast (RtecScheduler::Importance_t, - this->rt_info_dummy_lo_.importance), - this->rt_info_dummy_lo_.quantum, - this->rt_info_dummy_lo_.threads, - ACE_static_cast (RtecScheduler::Info_Type_t, - this->rt_info_dummy_lo_.info_type), - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_hi_rt_info_hi_ = - this->sched_lo_-> - create (this->rt_info_dummy_hi_.entry_point, - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_lo_-> - set (this->sched_hi_rt_info_hi_, - ACE_static_cast (RtecScheduler::Criticality_t, - this->rt_info_dummy_hi_.criticality), - this->rt_info_dummy_hi_.worst_case_execution_time, - this->rt_info_dummy_hi_.typical_execution_time, - this->rt_info_dummy_hi_.cached_execution_time, - this->rt_info_dummy_hi_.period, - ACE_static_cast (RtecScheduler::Importance_t, - this->rt_info_dummy_hi_.importance), - this->rt_info_dummy_hi_.quantum, - this->rt_info_dummy_hi_.threads, - ACE_static_cast (RtecScheduler::Info_Type_t, - this->rt_info_dummy_hi_.info_type), - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_hi_rt_info_lo_ = - this->sched_lo_-> - create (this->rt_info_dummy_lo_.entry_point, - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - this->sched_lo_-> - set (this->sched_hi_rt_info_lo_, - ACE_static_cast (RtecScheduler::Criticality_t, - this->rt_info_dummy_lo_.criticality), - this->rt_info_dummy_lo_.worst_case_execution_time, - this->rt_info_dummy_lo_.typical_execution_time, - this->rt_info_dummy_lo_.cached_execution_time, - this->rt_info_dummy_lo_.period, - ACE_static_cast (RtecScheduler::Importance_t, - this->rt_info_dummy_lo_.importance), - this->rt_info_dummy_lo_.quantum, - this->rt_info_dummy_lo_.threads, - ACE_static_cast (RtecScheduler::Info_Type_t, - this->rt_info_dummy_lo_.info_type), - ACE_TRY_ENV); - - ACE_TRY_CHECK; - - } - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DualEC_Supplier::create_schedulers"); - return -1; - } - ACE_ENDTRY; - - return 0; -} - - -// Create two event service instances, registers -// them with the Naming Service. - -int -DualEC_Supplier::create_event_channels (void) -{ - ACE_TRY_NEW_ENV - { - // Create Event Service Implementations, passing in the respective - // Scheduling Service Implementations (which must already be created). - ACE_NEW_RETURN (this->ec_hi_impl_, - ACE_EventChannel (sched_hi_.in (), - 1, - ACE_DEFAULT_EVENT_CHANNEL_TYPE, - &default_module_factory_), - -1); - - this->ec_hi_ = ec_hi_impl_->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_NEW_RETURN (this->ec_lo_impl_, - ACE_EventChannel (sched_lo_.in (), - 1, - ACE_DEFAULT_EVENT_CHANNEL_TYPE, - &default_module_factory_), - -1); - - this->ec_lo_ = ec_lo_impl_->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Register Event Service Implementations with Naming Service - - naming_context_->bind (this->channel_hi_name_, - this->ec_hi_.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - naming_context_->bind (this->channel_lo_name_, - this->ec_lo_.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "DualEC_Supplier::create_event_channels"); - return -1; - } - ACE_ENDTRY; - - return 0; -} - -void -DualEC_Supplier::compute_schedules (void) -{ - ACE_TRY_NEW_ENV - { -#if defined (__SUNPRO_CC) - // Sun C++ 4.2 warns with the code below: - // Warning (Anachronism): Temporary used for non-const - // reference, now obsolete. - // Note: Type "CC -migration" for more on anachronisms. - // Warning (Anachronism): The copy constructor for argument - // infos of type RtecScheduler::RT_Info_Set_out should take - // const RtecScheduler::RT_Info_Set_out&. - // But, this code is not CORBA conformant, because users should - // not define instances of _out types. - - - RtecScheduler::RT_Info_Set_out infos_out_hi (this->infos_hi_); - RtecScheduler::Config_Info_Set_out configs_out_hi (this->configs_hi_); - RtecScheduler::Scheduling_Anomaly_Set_out anomalies_out_hi (this->anomalies_hi_); - sched_hi_->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - infos_out_hi, configs_out_hi, anomalies_out_hi, ACE_TRY_ENV); - ACE_TRY_CHECK; - - RtecScheduler::RT_Info_Set_out infos_out_lo (this->infos_lo_); - RtecScheduler::Config_Info_Set_out configs_out_lo (this->configs_lo_); - RtecScheduler::Scheduling_Anomaly_Set_out anomalies_out_lo (this->anomalies_lo_); - sched_lo_->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - infos_out_lo, configs_out_lo, anomalies_out_lo, ACE_TRY_ENV); - ACE_TRY_CHECK; - -#else /* ! __SUNPRO_CC */ - - sched_hi_->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - this->infos_hi_.out (), this->configs_hi_.out (), - this->anomalies_hi_.out (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - sched_lo_->compute_scheduling - (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, - ACE_SCOPE_THREAD), - this->infos_lo_.out (), this->configs_lo_.out (), - this->anomalies_lo_.out (), ACE_TRY_ENV); - ACE_TRY_CHECK; - -#endif /* ! __SUNPRO_CC */ - - if (dump_schedule_headers_ && (this->hi_schedule_file_name_ != 0)) - { - ACE_Scheduler_Factory::dump_schedule (infos_hi_.in (), - configs_hi_.in (), - anomalies_hi_.in (), - this->hi_schedule_file_name_); - ACE_TRY_CHECK; - } - - if (dump_schedule_headers_ && (this->lo_schedule_file_name_ != 0)) - { - ACE_Scheduler_Factory::dump_schedule (infos_lo_.in (), - configs_lo_.in (), - anomalies_lo_.in (), - this->lo_schedule_file_name_); - ACE_TRY_CHECK; - } - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; -} - -void -DualEC_Supplier::start_generating_events (void) -{ - ACE_TRY_NEW_ENV - { - // Activate the POA manager. - poa_manager_->activate (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Spawn a thread that runs the orb event loop - ACE_Thread_Manager orb_thread_manager; - orb_thread_manager.spawn (DualEC_Supplier::run_orb); - - // Compute the scheduling information, based on the provided RT_Infos. - this->compute_schedules (); - - - // Load the scheduling data for the simulation. - this->load_schedule_data (); - - // Sleep for 10 seconds to give time for registrations. - ACE_DEBUG ((LM_DEBUG, - "\nDUAL_SCHED_HI, DUAL_SCHED_LO, DUAL_EC_HI and " - "DUAL_EC_LO are registered with the Naming Service.\n" - "Sleeping 10 seconds before generating events\n")); - ACE_Time_Value tv (10, 0); - ACE_OS::sleep (tv); - - // Spawn thread to run over the navigation data and generate events. - ACE_Thread_Manager event_thread_manager; - event_thread_manager.spawn (DualEC_Supplier::run_nav_thread, - this); - - // Spawn thread to run over the weapons data and generate events. - event_thread_manager.spawn (DualEC_Supplier::run_weap_thread, - this); - - // Wait for the threads that are generating events. - event_thread_manager.wait (); - - // Shut down the ORB via the termination servant - this->terminator_->shutdown (); - ACE_TRY_CHECK; - - // Wait for the thread that runs the orb event loop. - orb_thread_manager.wait (); - - // Clean up the navigation data. - ACE_Unbounded_Queue_Iterator<Navigation *> - nav_iter (this->navigation_data_); - Navigation **nav_temp; - for (nav_iter.first (); - nav_iter.done () == 0; - nav_iter.advance ()) - if (nav_iter.next (nav_temp) && nav_temp) - delete (*nav_temp); - - // Clean up the weapons data. - ACE_Unbounded_Queue_Iterator<Weapons *> - weap_iter (this->weapons_data_); - Weapons **weap_temp; - for (weap_iter.first (); - weap_iter.done () == 0; - weap_iter.advance ()) - if (weap_iter.next (weap_temp) && weap_temp) - delete (*weap_temp); - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - -} - -void -DualEC_Supplier::load_schedule_data () -{ - Navigation * nav = 0; - Weapons * weap = 0; - - Schedule_Viewer_Data data; - - // constants for periods (in units of one hundred nanoseconds) - const TimeBase::TimeT ONE_HZ_PERIOD = 10000000; - const TimeBase::TimeT FIVE_HZ_PERIOD = ONE_HZ_PERIOD / 5 ; - const TimeBase::TimeT TEN_HZ_PERIOD = ONE_HZ_PERIOD / 10; - const TimeBase::TimeT TWENTY_HZ_PERIOD = ONE_HZ_PERIOD / 20; - - if (this->input_file_name_) - { - // Open the scheduler data input file and read its contents into - // a queue. - FILE *input_file; - - int scan_count = 0; - input_file = ACE_OS::fopen(this->input_file_name_, "r"); - - if (input_file) - { - // Get a line at a time from the data file and parse it. - char input_buf[BUFSIZ]; - while (ACE_OS::fgets (input_buf, BUFSIZ, input_file)) - { - // Run through leading whitespace. - char *temp = input_buf; - while (*temp && isspace (*temp)) - ++temp; - - // If there is anything besides whitespace in the line - // read, scan its fields into the scheduling data - // structure. - if (ACE_OS::strlen (temp) > 0) - { - scan_count = sscanf (temp, "%s %lf %lf %lu %lu %lu %lu", - data.operation_name, - &data.utilitzation, - &data.overhead, - &data.arrival_time, - &data.deadline_time, - &data.completion_time, - &data.computation_time); - if (scan_count != 7) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::load_schedule_data: " - "scanned incorrect number of data elements: %d\n", scan_count)); - return; - } - - - if ((strcmp(data.operation_name, "high_20") == 0) || - (strcmp(data.operation_name, "low_20") == 0)) - { - ACE_NEW (weap, Weapons); - if (weap == 0) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::load_schedule_data: " - "failed to allocate Weapons\n")); - return; - } - - weap->criticality = 1; - weap->deadline_time = TWENTY_HZ_PERIOD; - weap->number_of_weapons = 2; - weap->weapon1_identifier = CORBA::string_alloc (30); - strcpy (weap->weapon1_identifier.inout (),"Photon Torpedoes"); - weap->weapon1_status =(ACE_OS::rand() % 4) == 0 ? 0 : 1 ; - weap->weapon2_identifier = CORBA::string_alloc (30); - strcpy (weap->weapon2_identifier.inout (),"Quantum Torpedoes"); - weap->weapon2_status = (ACE_OS::rand() % 4) == 0 ? 0 : 1; - weap->weapon3_identifier = CORBA::string_alloc (1); - strcpy (weap->weapon3_identifier.inout (), ""); - weap->weapon3_status = 0; - weap->weapon4_identifier = CORBA::string_alloc (1); - strcpy (weap->weapon4_identifier.inout (), ""); - weap->weapon4_status = 0; - weap->weapon5_identifier = CORBA::string_alloc (1); - strcpy (weap->weapon5_identifier.inout (), ""); - weap->weapon5_status = 0; - weap->utilization = 0.0; - weap->overhead = 0.0; - weap->arrival_time = ORBSVCS_Time::zero (); - weap->completion_time = ORBSVCS_Time::zero (); - weap->computation_time = ORBSVCS_Time::zero (); - weap->update_data = update_data_; - - // Insert the data into the queue. - weapons_data_.enqueue_tail (weap); - } - else - { - ACE_NEW (nav, Navigation); - if (nav == 0) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::load_schedule_data: " - "failed to allocate Navigation\n")); - return; - } - - nav->criticality = 0; - nav->deadline_time = TWENTY_HZ_PERIOD; - nav->position_latitude = ACE_OS::rand() % 90; - nav->position_longitude = ACE_OS::rand() % 180; - nav->altitude = ACE_OS::rand() % 100; - nav->heading = ACE_OS::rand() % 180; - this->nav_roll_ = (this->nav_roll_ >= 180) ? -180 : this->nav_roll_ + 1; - nav->roll = this->nav_roll_; - this->nav_pitch_ = (this->nav_pitch_ >= 90) ? -90 : this->nav_pitch_ + 1; - nav->pitch = this->nav_pitch_; - nav->utilization = 0.0; - nav->overhead = 0.0; - nav->arrival_time = ORBSVCS_Time::zero (); - nav->completion_time = ORBSVCS_Time::zero (); - nav->computation_time = ORBSVCS_Time::zero (); - nav->update_data = this->update_data_; - nav->utilization = (double) (20.0 + ACE_OS::rand() % 10); - nav->overhead = (double) (ACE_OS::rand() % 10); - - // Insert the data into the queue. - navigation_data_.enqueue_tail (nav); - } - } - } - } - else - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::start_generating_events: " - "could not open input file [%s].\n", - this->input_file_name_)); - return; - } - } -} - - -// Get command line options. - -unsigned int -DualEC_Supplier::get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "f:m:b:n:w:dsrp"); - int opt; - int temp; - - while ((opt = get_opt ()) != -1) - { - switch (opt) - { - case 'f': - this->input_file_name_ = get_opt.optarg; - - if (!this->input_file_name_ || ACE_OS::strlen (this->input_file_name_) > 0) - ACE_DEBUG ((LM_DEBUG,"Reading file!\n")); - else - { - this->input_file_name_ = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - - case 'm': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp > 0) - { - this->total_messages_ = (u_int) temp; - ACE_DEBUG ((LM_DEBUG, - "Messages to send: %d\n", - this->total_messages_)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: message count must be > 0", - argv[0]), - 1); - break; - - case 'b': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp > 0) - { - this->break_count_ = (u_int) temp; - ACE_DEBUG ((LM_DEBUG, - "Break count: %d\n", - this->break_count_)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: break count must be > 0", - argv[0]), - 1); - break; - - case 'n': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp >= 0) - { - this->nav_pause_ = - ACE_Time_Value(0, ACE_static_cast (long, temp)); - ACE_DEBUG ((LM_DEBUG, - "Navigation pause: %d usec\n", - temp)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: navigation pause must be >= 0", - argv[0]), - 1); - break; - - - case 'w': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp >= 0) - { - this->weap_pause_ = - ACE_Time_Value(0, ACE_static_cast (long, temp)); - ACE_DEBUG ((LM_DEBUG, - "Weapons pause: %d usec\n", - temp)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: weapons pause must be >= 0", - argv[0]), - 1); - break; - - case 'd': - - this->dump_schedule_headers_ = 1; - break; - - case 's': - update_data_ = 0; - break; - - case 'r': - use_runtime_schedulers_ = 1; - break; - - case 'p': - suppress_priority_ = 1; - break; - - default: - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - // Enable FIFO scheduling, e.g., RT scheduling class on Solaris. - int min_priority = - ACE_Sched_Params::priority_min (ACE_SCHED_FIFO); - - // Set all threads in the process into the RT scheduling class - if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO, - min_priority, - ACE_SCOPE_PROCESS)) != 0) - { - if (ACE_OS::last_error () == EPERM) - ACE_DEBUG ((LM_DEBUG, - "%s: user is not superuser, " - "so remain in time-sharing class\n", argv[0])); - else - ACE_ERROR ((LM_ERROR, - "%s: ACE_OS::sched_params failed\n", argv[0])); - } - - - - ACE_TRY_NEW_ENV - { - // Initialize ORB. - TAO_ORB_Manager orb_Manager; - - orb_Manager.init (argc, - argv, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - - // Create the demo supplier. - DualEC_Supplier *event_Supplier_ptr; - - ACE_NEW_RETURN (event_Supplier_ptr, - DualEC_Supplier(argc, argv), - -1); - - // Initialize everthing - if (event_Supplier_ptr->init () == -1) - exit (1); - - // now we can go ahead - event_Supplier_ptr->start_generating_events (); - - // when done, we clean up - delete event_Supplier_ptr; - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node<Navigation *>; -template class ACE_Unbounded_Queue<Navigation *>; -template class ACE_Unbounded_Queue_Iterator<Navigation *>; -template class ACE_Node<Weapons *>; -template class ACE_Unbounded_Queue<Weapons *>; -template class ACE_Unbounded_Queue_Iterator<Weapons *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node<Navigation *> -#pragma instantiate ACE_Unbounded_Queue<Navigation *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Navigation *> -#pragma instantiate ACE_Node<Weapons *> -#pragma instantiate ACE_Unbounded_Queue<Weapons *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Weapons *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.dsp b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.dsp deleted file mode 100644 index c9445677081..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.dsp +++ /dev/null @@ -1,170 +0,0 @@ -# Microsoft Developer Studio Project File - Name="DualEC_Sup" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=DualEC_Sup - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "DualEC_Sup.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "DualEC_Sup.mak" CFG="DualEC_Sup - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "DualEC_Sup - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "DualEC_Sup - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "DualEC_Sup - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "DualEC_Sup - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "DualEC_S"
-# PROP BASE Intermediate_Dir "DualEC_S"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\orbsvcs\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "DualEC_Sup - Win32 Release"
-# Name "DualEC_Sup - Win32 Debug"
-# Begin Group "Source files"
-
-# PROP Default_Filter "*.cpp"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\DualEC_Sup.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.cpp
-# End Source File
-# End Group
-# Begin Group "Header files"
-
-# PROP Default_Filter "*.h"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\DualEC_Sup.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.h
-# End Source File
-# End Group
-# Begin Group "IDL files"
-
-# PROP Default_Filter "*.idl"
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "DualEC_Sup - Win32 Release"
-
-!ELSEIF "$(CFG)" == "DualEC_Sup - Win32 Debug"
-
-USERDEP__NAVWE="..\$(InputName).idl"
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- xcopy ..\$(InputName).idl \
- ..\..\..\..\bin\tao_idl -Ge 1 -I ..\..\..\ -I ..\..\..\orbsvcs\orbsvcs $(InputName).idl \
-
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.h b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.h deleted file mode 100644 index 1ad5f791034..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.h +++ /dev/null @@ -1,195 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// DualEC_Sup.h -// -// = DESCRIPTION -// Event supplier for visualization of scheduling behavior, using -// arrival and dispatch data logged by an EC dispatch command object -// -// = AUTHOR -// Chris Gill (cdgill@cs.wustl.edu) -// -// Adapted from the orginal DOVE simulation event supplier written by -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#ifndef DUALEC_SUP_H -#define DUALEC_SUP_H - -//#include <ctype.h> -//#include <stdio.h> - -#include "tao/corba.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/Event/Module_Factory.h" -#include "orbsvcs/Event/Event_Channel.h" -#include "NavWeapC.h" -#include "NavWeapS.h" -#include "DOVE_Supplier.h" - -struct Schedule_Viewer_Data -{ - char operation_name [BUFSIZ]; - double utilitzation; - double overhead; - u_long arrival_time; - u_long deadline_time; - u_long completion_time; - u_long computation_time; -}; - - -class DualEC_Supplier -{ - // = TITLE - // Event Supplier. - // - // = DESCRIPTION - // Reads information out of a file and - // feeds it with additional navigation and - // weapon data into the dove_supplier, which - // is connected to the event channel -public: - - DualEC_Supplier (int argc, char** argv); - - ~DualEC_Supplier (void); - - int init (void); - // Initialize: set up, resolve ORB services, - // connect the DOVE_Suppliers. - - void compute_schedules (void); - // Compute schedule priorities, possibly dump - // data into runtime scheduler header files. - - void start_generating_events (void); - // here is really something going on, - // here we deliver the messages - - void load_schedule_data (); - // Load the scheduling information into memory - - -private: - - class Terminator : public POA_NavWeapTerminator - // = DESCRIPTION - // Private class that implements a termination servant. - { - void shutdown (CORBA::Environment &_env); - }; - - static void * run_orb (void *); - // Run the orb event loop. - - static void * run_nav_thread (void *arg); - // Run navigation event generation thread. - - static void * run_weap_thread (void *arg); - // Run weapons event generation thread. - - int create_schedulers (void); - // Create two scheduling service instances, registers - // them with the Naming Service. - - int create_event_channels (void); - // Create two event service instances, registers - // them with the Naming Service. - - unsigned int get_options (int argc, char *argv []); - // Get command line options. - - // Time values to pause before notifying the supplier each time. - ACE_Time_Value nav_pause_; - ACE_Time_Value weap_pause_; - - // POA client references. - PortableServer::POA_var root_POA_var_; - PortableServer::POAManager_var poa_manager_; - - // Naming Service client reference and names to use. - CosNaming::NamingContext_var naming_context_; - CosNaming::Name channel_hi_name_; - CosNaming::Name channel_lo_name_; - CosNaming::Name sched_hi_name_; - CosNaming::Name sched_lo_name_; - - // Scheduling Service servant implementation pointers. - POA_RtecScheduler::Scheduler * sched_hi_impl_; - POA_RtecScheduler::Scheduler * sched_lo_impl_; - - // Scheduling Service client references. - RtecScheduler::Scheduler_var sched_hi_; - RtecScheduler::Scheduler_var sched_lo_; - - // Handles for the dummy rt_infos registered with the - // schedulers in order to force priority differentiation. - RtecScheduler::handle_t sched_hi_rt_info_hi_; - RtecScheduler::handle_t sched_hi_rt_info_lo_; - RtecScheduler::handle_t sched_lo_rt_info_hi_; - RtecScheduler::handle_t sched_lo_rt_info_lo_; - - // Termination servant implementation and client reference - Terminator terminator_impl_; - NavWeapTerminator_var terminator_; - - // Default EC module factory for Event - // Service servant implementations. - TAO_Default_Module_Factory default_module_factory_; - - // Event Service servant implementation pointers. - POA_RtecEventChannelAdmin::EventChannel *ec_hi_impl_; - POA_RtecEventChannelAdmin::EventChannel *ec_lo_impl_; - - // Event Service client references. - RtecEventChannelAdmin::EventChannel_var ec_hi_; - RtecEventChannelAdmin::EventChannel_var ec_lo_; - - DOVE_Supplier weapons_Supplier_; - DOVE_Supplier navigation_Supplier_; - - // Data for registering RT_Infos - ACE_Scheduler_Factory::POD_RT_Info rt_info_nav_hi_; - ACE_Scheduler_Factory::POD_RT_Info rt_info_nav_lo_; - ACE_Scheduler_Factory::POD_RT_Info rt_info_weap_hi_; - ACE_Scheduler_Factory::POD_RT_Info rt_info_weap_lo_; - ACE_Scheduler_Factory::POD_RT_Info rt_info_dummy_hi_; - ACE_Scheduler_Factory::POD_RT_Info rt_info_dummy_lo_; - - // References for CORBA RtecScheduler data structures - RtecScheduler::RT_Info_Set_var infos_hi_; - RtecScheduler::Config_Info_Set_var configs_hi_; - RtecScheduler::Scheduling_Anomaly_Set_var anomalies_hi_; - RtecScheduler::RT_Info_Set_var infos_lo_; - RtecScheduler::Config_Info_Set_var configs_lo_; - RtecScheduler::Scheduling_Anomaly_Set_var anomalies_lo_; - - // Queues to store event carried data structures. - ACE_Unbounded_Queue<Navigation *> navigation_data_; - ACE_Unbounded_Queue<Weapons *> weapons_data_; - - int argc_; - char **argv_; - long total_messages_; - long break_count_; - char *input_file_name_; - unsigned long update_data_; - int dump_schedule_headers_; - int use_runtime_schedulers_; - int suppress_priority_; - const char * hi_schedule_file_name_; - const char * lo_schedule_file_name_; - CORBA::Long nav_roll_; - CORBA::Long nav_pitch_; -}; - -#endif /* DUALEC_SUP_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/EDF.dat b/TAO/examples/Simulator/Event_Supplier/EDF.dat deleted file mode 100644 index 4fbc28d9c0f..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/EDF.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -high_10 1.000000 0.000000 0 1000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -high_10 1.000000 0.000000 1000000 2000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_10 1.000000 0.000000 3000000 4000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 5000000 6000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 7000000 8000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 9000000 10000000 10080000 180000 -low_5 1.000000 0.000000 8000000 10000000 10260000 180000 -high_5 1.000000 0.000000 8000000 10000000 10440000 180000 -low_1 1.000000 0.000000 0 10000000 10620000 180000 -high_1 1.000000 0.000000 0 10000000 10800000 180000 -high_10 1.000000 0.000000 8000000 9000000 10980000 180000 -high_5 1.000000 0.000000 6000000 8000000 11160000 180000 -low_5 1.000000 0.000000 6000000 8000000 11340000 180000 -high_10 1.000000 0.000000 6000000 7000000 11520000 180000 -low_5 1.000000 0.000000 4000000 6000000 11700000 180000 -high_5 1.000000 0.000000 4000000 6000000 11880000 180000 -high_10 1.000000 0.000000 4000000 5000000 12060000 180000 -high_5 1.000000 0.000000 2000000 4000000 12240000 180000 -low_5 1.000000 0.000000 2000000 4000000 12420000 180000 -high_10 1.000000 0.000000 2000000 3000000 12600000 180000 -low_5 1.000000 0.000000 0 2000000 12780000 180000 -high_5 1.000000 0.000000 0 2000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp deleted file mode 100644 index 4bbacabce77..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp +++ /dev/null @@ -1,376 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Con.cpp -// -// = DESCRIPTION -// This demo just tests the basic functionality of the Event Service -// One Conumer which inherits from the Rtec Consumer. One Supplier -// with an internal Rtec Consumer and one internal Rtec Supplier. -// The internal Supplier is just a demo supplier because the -// architecture expects an supplier which has inherited from the -// Rtec Supplier. -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include <limits.h> - -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -#include "ace/Profile_Timer.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "Event_Con.h" -#include "NavWeapC.h" - -ACE_RCSID(Event_Supplier, Event_Con, "$Id$") - -static const char usage [] = -"[-? |\n" -" [-c <consumers> [4]]\n" -" [-d directly connect all consumers/suppliers\n" -" [-j to collect jitter statistics]\n" -" [-m <count> of messages to send [10]]\n" -" [-s <suppliers>, [1]]\n" -" [-t <timeout interval>, msec [250]]]"; - -static int received = 0; - -// ************************************************************ - -Demo_Consumer::Demo_Consumer (void) -{ -} - -int -Demo_Consumer::open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name) -{ - ACE_TRY_NEW_ENV - { - // Get a Scheduler. - - RtecScheduler::Scheduler_ptr server = - ACE_Scheduler_Factory::server (); - - // Define Real-time information. - - rt_info_ = server->create (my_name, ACE_TRY_ENV); - - server->set (rt_info_, - RtecScheduler::VERY_LOW_CRITICALITY, - ORBSVCS_Time::zero (), - ORBSVCS_Time::zero (), - ORBSVCS_Time::zero (), - 2500000, - RtecScheduler::VERY_LOW_IMPORTANCE, - ORBSVCS_Time::zero (), - 1, - RtecScheduler::OPERATION, - ACE_TRY_ENV); - - - // Create the event that we're registering for. - - ACE_ConsumerQOS_Factory dependencies; - dependencies.start_disjunction_group (); - dependencies.insert_type (ACE_ES_EVENT_NOTIFICATION, rt_info_); - dependencies.insert_type (ACE_ES_EVENT_SHUTDOWN, rt_info_); - - // The channel administrator is the event channel we got from - // the invocation of this routine. - - this->channel_admin_ = ec; - - // = Connect as a consumer. - - this->consumer_admin_ = - channel_admin_->for_consumers (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Obtain a pointer to a push supplier. "suppliers" is - // inherited from a base class. - - this->suppliers_ = - consumer_admin_->obtain_push_supplier (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // The _this function returns an object pointer. This is needed - // because a consumer inherits from a Servant class that is no - // CORBA::Object. - - RtecEventComm::PushConsumer_var objref = - this->_this (ACE_TRY_ENV); - ACE_TRY_CHECK; - - this->suppliers_->connect_push_consumer (objref.in (), - dependencies.get_ConsumerQOS (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - } - ACE_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se) - { - ACE_ERROR_RETURN ((LM_ERROR, - "Demo_Consumer::open: subscribe failed.\n"), - -1); - } - ACE_CATCHANY - { - ACE_ERROR_RETURN ((LM_ERROR, - "Demo_Consumer::open: unexpected exception.\n"), - -1); - } - ACE_ENDTRY; - - return 0; -} - -void -Demo_Consumer::disconnect_push_consumer (CORBA::Environment &ACE_TRY_ENV) -{ - ACE_DEBUG ((LM_DEBUG, - "Consumer received disconnect from channel.\n")); -} - -void -Demo_Consumer::push (const RtecEventComm::EventSet &events, - CORBA::Environment &ACE_TRY_ENV) -{ - - if (events.length () == 0) - { - ACE_DEBUG ((LM_DEBUG, "no events\n")); - return; - } - - cout << "Number of events: " << received++ << endl; - - for (CORBA::ULong i = 0; i < events.length (); ++i) - { - if (events[i].header.type == ACE_ES_EVENT_SHUTDOWN) - { - ACE_DEBUG ((LM_DEBUG, "Demo Consumer: received shutdown event\n")); - this->shutdown (); - } - else - { - ACE_DEBUG ((LM_DEBUG, "Demo Consumer: received ACE_ES_EVENT_NOTIFICATION event.\n")); - - ACE_TRY - { - cout << "ID: " << events[i].data.any_value.type()->id(ACE_TRY_ENV) << endl; - ACE_TRY_CHECK; - cout << "Name: " << events[i].data.any_value.type()->name(ACE_TRY_ENV) << endl; - ACE_TRY_CHECK; - cout << "member_count: " << events[i].data.any_value.type()->member_count(ACE_TRY_ENV) << endl; - ACE_TRY_CHECK; - cout << "TCKind: " << events[i].data.any_value.type()->kind(ACE_TRY_ENV) << endl; - ACE_TRY_CHECK; - - if (_tc_Navigation->equal (events[i].data.any_value.type(), ACE_TRY_ENV)) - { - ACE_TRY_CHECK; - Navigation *navigation_ = (Navigation*) events[i].data.any_value.value (); - - cout << "Found a Navigation struct in the any: pos_lat = " << navigation_->position_latitude << endl; - } - else if (_tc_Weapons->equal (events[i].data.any_value.type(), ACE_TRY_ENV)) - { - ACE_TRY_CHECK; - Weapons *weapons_ = (Weapons*) events[i].data.any_value.value (); - - cout << "Found a Navigation struct in the any: pos_lat = " << weapons_->number_of_weapons << endl; - } - - - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n")); - } - ACE_ENDTRY; - } - } -} - -void -Demo_Consumer::shutdown (void) -{ - ACE_TRY_NEW_ENV - { - // Disconnect from the push supplier. - - this->suppliers_->disconnect_push_supplier (ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n")); - ACE_TRY_CHECK; - - TAO_ORB_Core_instance ()->orb ()->shutdown (); - ACE_TRY_CHECK; - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t) Demo_Consumer::shutdown: unexpected exception.\n")); - } - ACE_ENDTRY; -} - -// function get_options - -static unsigned int -get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "Oc:djm:s:t:?"); - int opt; - - while ((opt = get_opt ()) != EOF) - { - switch (opt) - { - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - default: - ACE_ERROR_RETURN ((LM_ERROR, - "%s: unknown arg, -%c\n" - "Usage: %s %s\n", - argv[0], char(opt), - argv[0], usage), 1); - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - return 0; -} - -// function main. - -int -main (int argc, char *argv []) -{ - ACE_TRY_NEW_ENV - { - // Initialize ORB. - - CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::Object_var poa_object = - orb->resolve_initial_references("RootPOA"); - - if (CORBA::is_nil (poa_object.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in (), ACE_TRY_ENV); - ACE_TRY_CHECK; - - PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (ACE_TRY_ENV); - ACE_TRY_CHECK; - - CORBA::Object_var naming_obj = - orb->resolve_initial_references ("NameService"); - - if (CORBA::is_nil (naming_obj.in ())) - ACE_ERROR_RETURN ((LM_ERROR, - " (%P|%t) Unable to initialize the POA.\n"), - 1); - - CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), - ACE_TRY_ENV); - ACE_TRY_CHECK; - - ACE_Scheduler_Factory::use_config (naming_context.in ()); - - if (get_options (argc, argv)) - ACE_OS::exit (-1); - - // Get the Event Channel. - - CosNaming::Name channel_name (1); - channel_name.length (1); - channel_name[0].id = CORBA::string_dup ("EventService"); - - CORBA::Object_var ec_obj = - naming_context->resolve (channel_name, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - RtecEventChannelAdmin::EventChannel_var ec = - RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), ACE_TRY_ENV); - ACE_TRY_CHECK; - - if (ec.ptr() == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Not able to get the Event Service reference.\n"), - -1); - - // Create consumer. - - Demo_Consumer *demo_consumer; - ACE_NEW_RETURN (demo_consumer, - Demo_Consumer (), - -1); - - if (demo_consumer->open_consumer (ec.ptr (), - "demo_consumer") == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "Someone was feeling introverted.\n"), - -1); - - poa_manager->activate (ACE_TRY_ENV); - ACE_TRY_CHECK; - - // Run the ORB - - if (orb->run () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "CORBA::ORB::run"), - -1); - ACE_TRY_CHECK; - - delete demo_consumer; - - root_poa->destroy (1, - 1, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - return 0; -} diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.h b/TAO/examples/Simulator/Event_Supplier/Event_Con.h deleted file mode 100644 index e82cc75fd76..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Con.h +++ /dev/null @@ -1,71 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Con.h -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#ifndef EVENT_CON_H -#define EVENT_CON_H - -#include "ace/SString.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "orbsvcs/RtecEventCommS.h" - -class Demo_Consumer : public POA_RtecEventComm::PushConsumer -{ - // = TITLE - // Demo Consumer - // - // = DESCRIPTION - // Simple example of a consumer that registers for supplier - // notifications. -public: - Demo_Consumer (void); - - int open_consumer (RtecEventChannelAdmin::EventChannel_ptr ec, - const char *my_name); - // Uses the name server to obtain a reference to the <supplier_name> - // and registers with channel to receive notifications from the - // supplier. Also registers to receive shutdown messages from the - // supplier. Stores <my_name> for printing out messages. Returns 0 - // on success, -1 on failure. - - virtual void disconnect_push_consumer (CORBA::Environment &); - // The channel is disconnecting. - - // = (not protected to allow short-circuiting) protected: - virtual void push (const RtecEventComm::EventSet &events, - CORBA::Environment &); - // If the <events>[0] is a notification, prints out the data from - // the supplier. If its a shutdown message, the consumer - // disconnects from the channel. - -protected: - void shutdown (void); - // Disconnect from the Event Service. - - // = Event channel adminstration references. - RtecEventChannelAdmin::EventChannel_var channel_admin_; - RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_; - RtecEventChannelAdmin::ProxyPushSupplier_var suppliers_; - -private: - RtecScheduler::handle_t rt_info_; -}; - -#endif /* EVENT_CON_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp deleted file mode 100644 index 016cb17fe6b..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp +++ /dev/null @@ -1,490 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Sup.cpp -// -// = DESCRIPTION -// Event Supplier for the flight simulator -// -// = AUTHOR -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include <limits.h> - -#include "tao/corba.h" -#include "tao/TAO.h" -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -//#include "ace/Profile_Timer.h" -#include "ace/OS.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "Event_Sup.h" -#include "NavWeapC.h" - -ACE_RCSID(Event_Supplier, Event_Sup, "$Id$") - -static const char usage [] = -"[[-?]\n" -" [-O[RBport] ORB port number]\n" -" [-m <count> of messages to send [100]\n" -" [-f name of schedler input data file]]\n"; - - -Event_Supplier::Event_Supplier (int argc, char** argv) -: argc_(argc), - argv_(argv), - total_messages_(10), - input_file_name_(0) -{ - navigation_.roll = navigation_.pitch = 0; -} - -Event_Supplier::~Event_Supplier () -{ - this->dOVE_Supplier_.disconnect (); -} - -int -Event_Supplier::init () -{ - this->get_options (argc_, argv_); - return this->dOVE_Supplier_.connect (); -} - -void -Event_Supplier::start_generating_events (void) -{ - unsigned long total_sent = 0; - - // Load the scheduling data for the simulation. - ACE_Unbounded_Queue<Schedule_Viewer_Data *> schedule_data; - this->load_schedule_data (schedule_data); - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> - schedule_iter (schedule_data); - - if (schedule_iter.done ()) - { - ACE_ERROR ((LM_ERROR, - "Event_Supplier::start_generating_events: " - "there is no scheduling data\n")); - return; - } - - CORBA::Any any; - - do - { - - // Insert the event data - this->insert_event_data (any, - schedule_iter); - - // deliver it over the wire - dOVE_Supplier_.notify (any); - - if (total_sent < 5) - ACE_DEBUG ((LM_DEBUG, - "Pushing event data.\n")); - else if (total_sent == 5) - ACE_DEBUG ((LM_DEBUG, - "Everything is running. Going to be mute.\n")); - } - while (++total_sent < this->total_messages_); - - // clean up the scheduling data - Schedule_Viewer_Data **data_temp; - for (schedule_iter.first (); - schedule_iter.done () == 0; - schedule_iter.advance ()) - if (schedule_iter.next (data_temp) && data_temp) - delete (*data_temp); -} - -void -Event_Supplier::load_schedule_data - (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data) -{ - Schedule_Viewer_Data *data = 0; - - if (this->input_file_name_) - { - // Open the scheduler data input file and read its contents into - // a queue. - FILE *input_file; - - int scan_count = 0; - input_file = ACE_OS::fopen(this->input_file_name_, "r"); - - if (input_file) - { - // Get a line at a time from the data file and parse it. - char input_buf[BUFSIZ]; - while (ACE_OS::fgets (input_buf, BUFSIZ, input_file)) - { - // Run through leading whitespace. - char *temp = input_buf; - while (*temp && isspace (*temp)) - ++temp; - - // If there is anything besides whitespace in the line - // read, scan its fields into the scheduling data - // structure. - if (ACE_OS::strlen (temp) > 0) - { - ACE_NEW (data, Schedule_Viewer_Data); - scan_count = sscanf (temp, "%s %lf %lf %lu %lu %lu %lu", - data->operation_name, - &data->utilitzation, - &data->overhead, - &data->arrival_time, - &data->deadline_time, - &data->completion_time, - &data->computation_time); - if (scan_count != 7) - { - ACE_ERROR ((LM_ERROR, - "Event_Supplier::start_generating_events: " - "scanned incorrect number of data elements: %d\n", scan_count)); - - delete data; - return; - } - - // Insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } - } - else - { - ACE_ERROR ((LM_ERROR, - "Event_Supplier::start_generating_events: " - "could not open input file [%s].\n", - this->input_file_name_)); - return; - } - } - else - { - u_long last_completion = 0; - - // Just create 10 dummy scheduling records and use them. - for (int i = 0; i < 10; ++i) - { - ACE_NEW (data, Schedule_Viewer_Data); - - const char *oper_name = 0; - switch (i % 4) - { - case 0: - oper_name = "high_20"; - break; - - case 1: - oper_name = "low_20"; - break; - - case 2: - oper_name = "high_10"; - break; - - case 3: - default: - oper_name = "low_10"; - break; - } - - ACE_OS::strncpy (data->operation_name, - oper_name, - BUFSIZ-1); - - - data->utilitzation = (double)(20.0+ACE_OS::rand() %10); - data->overhead = (double)(ACE_OS::rand() %20); - - data->arrival_time = ACE_OS::rand() % 200; - data->computation_time = (ACE_OS::rand() % 100) + 10; - - data->completion_time = last_completion + (ACE_OS::rand() % 100) + 100; - data->completion_time = - data->completion_time < data->arrival_time + data->computation_time - ? data->arrival_time + data->computation_time - : data->completion_time; - - last_completion = data->completion_time; - - data->deadline_time = data->completion_time + (ACE_OS::rand() % 200) - 50; - - // insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } -} - -// This function fills in the random data into the anys transported by -// the event channel. - -void -Event_Supplier::insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter) -{ - static u_long last_completion = 0; - - ACE_TRY_NEW_ENV - { - Schedule_Viewer_Data **sched_data; - - if ((schedule_iter.next (sched_data)) && (sched_data) && (*sched_data)) - { - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "low_20") == 0) || - (strcmp((*sched_data)->operation_name, "high_1") == 0) || - (strcmp((*sched_data)->operation_name, "low_1") == 0)) - { - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "high_1") == 0)) - { - navigation_.criticality = 1; - } - else - { - navigation_.criticality = 0; - } - - navigation_.position_latitude = ACE_OS::rand() % 90; - navigation_.position_longitude = ACE_OS::rand() % 180; - navigation_.altitude = ACE_OS::rand() % 100; - navigation_.heading = ACE_OS::rand() % 180; - navigation_.roll = (navigation_.roll >= 180) ? -180 : navigation_.roll + 1; - navigation_.pitch = (navigation_.pitch >= 90) ? -90 : navigation_.pitch + 1; - - navigation_.utilization = (*sched_data)->utilitzation; - navigation_.overhead = (*sched_data)->overhead; - navigation_.arrival_time = (*sched_data)->arrival_time; - navigation_.deadline_time = (*sched_data)->deadline_time; - navigation_.completion_time = (*sched_data)->completion_time; - navigation_.computation_time = (*sched_data)->computation_time; - navigation_.update_data = 0; - - - // because the scheduler data does not supply these values - navigation_.utilization = (double) (20.0 + ACE_OS::rand() % 10); - navigation_.overhead = (double) (ACE_OS::rand() % 10); - - data.replace (_tc_Navigation, &navigation_, 0, ACE_TRY_ENV); - } - else if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "low_10") == 0) || - (strcmp((*sched_data)->operation_name, "high_5") == 0) || - (strcmp((*sched_data)->operation_name, "low_5") == 0)) - { - if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "high_5") == 0)) - { - weapons_.criticality = 1; - } - else - { - weapons_.criticality = 0; - } - - weapons_.number_of_weapons = 2; - weapons_.weapon1_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon1_identifier.inout (),"Photon Torpedoes"); - weapons_.weapon1_status =(ACE_OS::rand() % 4) == 0 ? 0 : 1 ; - weapons_.weapon2_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon2_identifier.inout (),"Quantum Torpedoes"); - weapons_.weapon2_status = (ACE_OS::rand() % 4) == 0 ? 0 : 1; - weapons_.weapon3_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon3_identifier.inout (), ""); - weapons_.weapon3_status = 0; - weapons_.weapon4_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon4_identifier.inout (), ""); - weapons_.weapon4_status = 0; - weapons_.weapon5_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon5_identifier.inout (), ""); - weapons_.weapon5_status = 0; - weapons_.utilization = (*sched_data)->utilitzation; - weapons_.overhead = (*sched_data)->overhead; - weapons_.arrival_time = (*sched_data)->arrival_time; - weapons_.deadline_time = (*sched_data)->deadline_time; - weapons_.completion_time = (*sched_data)->completion_time; - weapons_.computation_time = (*sched_data)->computation_time; - weapons_.update_data = 0; - - // because the scheduler data does not supply these values - weapons_.utilization = (double) (20.0 + ACE_OS::rand() % 10); - weapons_.overhead = (double) (ACE_OS::rand() % 10); - - data.replace (_tc_Weapons, &weapons_, 0, ACE_TRY_ENV); - } - else { - ACE_ERROR ((LM_ERROR, - "Event_Supplier::insert_event_data:" - "unrecognized operation name [%s]", - (*sched_data)->operation_name)); - } - - ACE_TRY_CHECK; - - - if (last_completion > (*sched_data)->completion_time) - last_completion = 0; - - if ((*sched_data)->completion_time >= last_completion) - { - ACE_Time_Value pause (0, - (*sched_data)->completion_time - - last_completion); - ACE_OS::sleep (pause); - last_completion = (*sched_data)->completion_time; - } - } - else - ACE_ERROR ((LM_ERROR, - "Event_Supplier::insert_event_data:" - "Could Not access scheduling data")); - - schedule_iter.advance (); - - if (schedule_iter.done ()) - schedule_iter.first (); - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t)Error in Event_Supplier::insert_event_data.\n")); - } - ACE_ENDTRY; -} - - - -// Function get_options. - -unsigned int -Event_Supplier::get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "f:m:"); - int opt; - int temp; - - while ((opt = get_opt ()) != -1) - { - switch (opt) - { - case 'm': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp > 0) - { - this->total_messages_ = (u_int) temp; - ACE_DEBUG ((LM_DEBUG, - "Messages to send: %d\n", - this->total_messages_)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: count must be > 0", - argv[0]), - 1); - break; - case 'f': - this->input_file_name_ = get_opt.optarg; - - if (!this->input_file_name_ || ACE_OS::strlen (this->input_file_name_) > 0) - ACE_DEBUG ((LM_DEBUG,"Reading file!\n")); - else - { - this->input_file_name_ = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - default: - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - ACE_TRY_NEW_ENV - { - // Initialize ORB. - TAO_ORB_Manager orb_Manager; - - orb_Manager.init (argc, - argv, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - - // Create the demo supplier. - Event_Supplier *event_Supplier_ptr; - - ACE_NEW_RETURN (event_Supplier_ptr, - Event_Supplier(argc, argv), - -1); - - // Initialize everthing - if (event_Supplier_ptr->init () == -1) - exit (1); - - // now we can go ahead - event_Supplier_ptr->start_generating_events (); - - // when done, we clean up - delete event_Supplier_ptr; - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node<Schedule_Viewer_Data *>; -template class ACE_Unbounded_Queue<Schedule_Viewer_Data *>; -template class ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node<Schedule_Viewer_Data *> -#pragma instantiate ACE_Unbounded_Queue<Schedule_Viewer_Data *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp b/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp deleted file mode 100644 index 9337e5509f4..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp +++ /dev/null @@ -1,167 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Event_Sup" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Event_Sup - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Event_Sup.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Event_Sup.mak" CFG="Event_Sup - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Event_Sup - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Event_Sup - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Event_Sup - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\..\..\\" /I "..\..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs"
-
-!ELSEIF "$(CFG)" == "Event_Sup - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\orbsvcs\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Event_Sup - Win32 Release"
-# Name "Event_Sup - Win32 Debug"
-# Begin Group "Source files"
-
-# PROP Default_Filter "*.cpp"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Event_Sup.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.cpp
-# End Source File
-# End Group
-# Begin Group "Header files"
-
-# PROP Default_Filter "*.h"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Event_Sup.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.h
-# End Source File
-# End Group
-# Begin Group "IDL files"
-
-# PROP Default_Filter "*.idl"
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "Event_Sup - Win32 Release"
-
-!ELSEIF "$(CFG)" == "Event_Sup - Win32 Debug"
-
-USERDEP__NAVWE="..\$(InputName).idl"
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- xcopy ..\$(InputName).idl \
- ..\..\..\..\bin\tao_idl -Ge 1 -I ..\..\..\ -I ..\..\..\orbsvcs\orbsvcs $(InputName).idl \
-
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw b/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw deleted file mode 100644 index 06988e3c066..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "DualEC_Sup"=.\DualEC_Sup.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Event_Sup"=.\Event_Sup.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Logging_Sup"=.\Logging_Sup.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h b/TAO/examples/Simulator/Event_Supplier/Event_Sup.h deleted file mode 100644 index 1b56d50d96a..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h +++ /dev/null @@ -1,79 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Event_Sup.h -// -// = DESCRIPTION -// Event Supplier for the simulation -// -// = AUTHOR -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#ifndef EVENT_SUP_H -#define EVENT_SUP_H - -//#include <ctype.h> -//#include <stdio.h> -#include "NavWeapC.h" -#include "DOVE_Supplier.h" - -struct Schedule_Viewer_Data -{ - char operation_name [BUFSIZ]; - double utilitzation; - double overhead; - u_long arrival_time; - u_long deadline_time; - u_long completion_time; - u_long computation_time; -}; - -class Event_Supplier -{ - // = TITLE - // Event Supplier. - // - // = DESCRIPTION - // Reads Scheduler information out of a file and - // feeds it with additional navigation and - // weapon data into the dove_supplier, which - // is connected to the event channel -public: - - Event_Supplier (int argc, char** argv); - - ~Event_Supplier (void); - - int init (void); - // connect the DOVE_Supplier - - void start_generating_events (void); - // here is really something going on, - // here we deliver the messages - - void load_schedule_data (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data); - // Load the scheduling information into memory - - -private: - void insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter); - // just a helper to put all the information into the CORBA::Any - - unsigned int get_options (int argc, char *argv []); - - DOVE_Supplier dOVE_Supplier_; - Navigation navigation_; - Weapons weapons_; - - int argc_; - char **argv_; - unsigned long total_messages_; - char *input_file_name_; -}; - -#endif /* EVENT_SUP_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp deleted file mode 100644 index 70352a56e4a..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp +++ /dev/null @@ -1,536 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Logging_Sup.cpp -// -// = DESCRIPTION -// Event Supplier for visualizing scheduling behavior, using arrival -// and dispatch data logged by an event channel dispatch command object -// -// = AUTHOR -// Chris Gill (cdgill@cs.wustl.edu) -// -// Adapted from the DOVE simulation event supplier -// originally -// David Levine (levine@cs.wustl.edu) and -// Tim Harrison (harrison@cs.wustl.edu) -// modified -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#include <limits.h> - -#include "tao/corba.h" -#include "tao/TAO.h" -#include "ace/Get_Opt.h" -#include "ace/Sched_Params.h" -//#include "ace/Profile_Timer.h" -#include "ace/OS.h" -#include "orbsvcs/Event_Utilities.h" -#include "orbsvcs/Event_Service_Constants.h" -#include "orbsvcs/Scheduler_Factory.h" -#include "orbsvcs/RtecEventChannelAdminC.h" -#include "Logging_Sup.h" -#include "NavWeapC.h" - -ACE_RCSID(Event_Supplier, Logging_Sup, "$Id$") - -static const char usage [] = -"[[-?]\n" -" [-O[RBport] ORB port number]\n" -" [-m <count> of messages to send [100]\n" -" [-f name of scheduler input data file]\n" -" [-d name of scheduler header dump file]\n" -" [-s to suppress data updates by EC]]\n"; - - -Logging_Supplier::Logging_Supplier (int argc, char** argv) -: argc_(argc), - argv_(argv), - total_messages_(10), - input_file_name_(0), - update_data_ (1), - schedule_file_name_(0) -{ - navigation_.roll = navigation_.pitch = 0; -} - -Logging_Supplier::~Logging_Supplier () -{ - this->dOVE_Supplier_.disconnect (); -} - -int -Logging_Supplier::init () -{ - this->get_options (argc_, argv_); - return this->dOVE_Supplier_.connect (); -} - -void -Logging_Supplier::start_generating_events (void) -{ - unsigned long total_sent = 0; - - // Load the scheduling data for the simulation. - ACE_Unbounded_Queue<Schedule_Viewer_Data *> schedule_data; - this->load_schedule_data (schedule_data); - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> - schedule_iter (schedule_data); - - if (schedule_iter.done ()) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::start_generating_events: " - "there is no scheduling data\n")); - return; - } - - CORBA::Any any; - - do - { - - // Insert the event data - this->insert_event_data (any, - schedule_iter); - - // deliver it over the wire - dOVE_Supplier_.notify (any); - - if (total_sent < 5) - ACE_DEBUG ((LM_DEBUG, - "Pushing event data.\n")); - else if (total_sent == 5) - ACE_DEBUG ((LM_DEBUG, - "Everything is running. Going to be mute.\n")); - } - while (++total_sent < this->total_messages_); - - // clean up the scheduling data - Schedule_Viewer_Data **data_temp; - for (schedule_iter.first (); - schedule_iter.done () == 0; - schedule_iter.advance ()) - if (schedule_iter.next (data_temp) && data_temp) - delete (*data_temp); -} - -void -Logging_Supplier::load_schedule_data - (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data) -{ - Schedule_Viewer_Data *data = 0; - - if (this->input_file_name_) - { - // Open the scheduler data input file and read its contents into - // a queue. - FILE *input_file; - - int scan_count = 0; - input_file = ACE_OS::fopen(this->input_file_name_, "r"); - - if (input_file) - { - // Get a line at a time from the data file and parse it. - char input_buf[BUFSIZ]; - while (ACE_OS::fgets (input_buf, BUFSIZ, input_file)) - { - // Run through leading whitespace. - char *temp = input_buf; - while (*temp && isspace (*temp)) - ++temp; - - // If there is anything besides whitespace in the line - // read, scan its fields into the scheduling data - // structure. - if (ACE_OS::strlen (temp) > 0) - { - ACE_NEW (data, Schedule_Viewer_Data); - scan_count = sscanf (temp, "%s %lf %lf %lu %lu %lu %lu", - data->operation_name, - &data->utilitzation, - &data->overhead, - &data->arrival_time, - &data->deadline_time, - &data->completion_time, - &data->computation_time); - if (scan_count != 7) - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::start_generating_events: " - "scanned incorrect number of data elements: %d\n", scan_count)); - - delete data; - return; - } - - // Insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } - } - else - { - ACE_ERROR ((LM_ERROR, - "DOVE_Supplier::start_generating_events: " - "could not open input file [%s].\n", - this->input_file_name_)); - return; - } - } - else - { - u_long last_completion = 0; - - // Just create 10 dummy scheduling records and use them. - for (int i = 0; i < 10; ++i) - { - ACE_NEW (data, Schedule_Viewer_Data); - - const char *oper_name = 0; - switch (i % 4) - { - case 0: - oper_name = "high_20"; - break; - - case 1: - oper_name = "low_20"; - break; - - case 2: - oper_name = "high_10"; - break; - - case 3: - default: - oper_name = "low_10"; - break; - } - - ACE_OS::strncpy (data->operation_name, - oper_name, - BUFSIZ-1); - - data->utilitzation = (double)(20.0+ACE_OS::rand() %10); - data->overhead = (double)(ACE_OS::rand() %20); - - data->arrival_time = ACE_OS::rand() % 200; - data->computation_time = (ACE_OS::rand() % 100) + 10; - - data->completion_time = last_completion + (ACE_OS::rand() % 100) + 100; - data->completion_time = - data->completion_time < data->arrival_time + data->computation_time - ? data->arrival_time + data->computation_time - : data->completion_time; - - last_completion = data->completion_time; - - data->deadline_time = data->completion_time + (ACE_OS::rand() % 200) - 50; - - // insert the data into the queue. - schedule_data.enqueue_tail (data); - } - } -} - -// This function fills in the random data into the anys transported by -// the event channel. - -void -Logging_Supplier::insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter) -{ - static u_long last_completion = 0; - - // constants for periods (in units of one hundred nanoseconds) - const TimeBase::TimeT ONE_HZ_PERIOD = 10000000; - const TimeBase::TimeT FIVE_HZ_PERIOD = ONE_HZ_PERIOD / 5 ; - const TimeBase::TimeT TEN_HZ_PERIOD = ONE_HZ_PERIOD / 10; - const TimeBase::TimeT TWENTY_HZ_PERIOD = ONE_HZ_PERIOD / 20; - - ACE_TRY_NEW_ENV - { - Schedule_Viewer_Data **sched_data; - - if ((schedule_iter.next (sched_data)) && (sched_data) && (*sched_data)) - { - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "low_20") == 0) || - (strcmp((*sched_data)->operation_name, "high_1") == 0) || - (strcmp((*sched_data)->operation_name, "low_1") == 0)) - { - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "high_1") == 0)) - { - navigation_.criticality = 1; - } - else - { - navigation_.criticality = 0; - } - - if ((strcmp((*sched_data)->operation_name, "high_20") == 0) || - (strcmp((*sched_data)->operation_name, "low_20") == 0)) - { - navigation_.deadline_time = TWENTY_HZ_PERIOD; - } - else - { - navigation_.deadline_time = ONE_HZ_PERIOD; - } - - navigation_.position_latitude = ACE_OS::rand() % 90; - navigation_.position_longitude = ACE_OS::rand() % 180; - navigation_.altitude = ACE_OS::rand() % 100; - navigation_.heading = ACE_OS::rand() % 180; - navigation_.roll = (navigation_.roll >= 180) ? -180 : navigation_.roll + 1; - navigation_.pitch = (navigation_.pitch >= 90) ? -90 : navigation_.pitch + 1; - - navigation_.utilization = 0.0; - navigation_.overhead = 0.0; - navigation_.arrival_time = ORBSVCS_Time::zero (); - navigation_.completion_time = ORBSVCS_Time::zero (); - navigation_.computation_time = ORBSVCS_Time::zero (); - navigation_.update_data = update_data_; - - - // because the scheduler data does not supply these values - navigation_.utilization = (double) (20.0 + ACE_OS::rand() % 10); - navigation_.overhead = (double) (ACE_OS::rand() % 10); - - data.replace (_tc_Navigation, &navigation_, 0, ACE_TRY_ENV); - } - else if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "low_10") == 0) || - (strcmp((*sched_data)->operation_name, "high_5") == 0) || - (strcmp((*sched_data)->operation_name, "low_5") == 0)) - { - if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "high_5") == 0)) - { - weapons_.criticality = 1; - } - else - { - weapons_.criticality = 0; - } - - if ((strcmp((*sched_data)->operation_name, "high_10") == 0) || - (strcmp((*sched_data)->operation_name, "low_10") == 0)) - { - weapons_.deadline_time = TEN_HZ_PERIOD; - } - else - { - weapons_.deadline_time = FIVE_HZ_PERIOD; - } - - - weapons_.number_of_weapons = 2; - weapons_.weapon1_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon1_identifier.inout (),"Photon Torpedoes"); - weapons_.weapon1_status =(ACE_OS::rand() % 4) == 0 ? 0 : 1 ; - weapons_.weapon2_identifier = CORBA::string_alloc (30); - strcpy (weapons_.weapon2_identifier.inout (),"Quantum Torpedoes"); - weapons_.weapon2_status = (ACE_OS::rand() % 4) == 0 ? 0 : 1; - weapons_.weapon3_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon3_identifier.inout (), ""); - weapons_.weapon3_status = 0; - weapons_.weapon4_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon4_identifier.inout (), ""); - weapons_.weapon4_status = 0; - weapons_.weapon5_identifier = CORBA::string_alloc (1); - strcpy (weapons_.weapon5_identifier.inout (), ""); - weapons_.weapon5_status = 0; - weapons_.utilization = 0.0; - weapons_.overhead = 0.0; - weapons_.arrival_time = ORBSVCS_Time::zero (); - weapons_.completion_time = ORBSVCS_Time::zero (); - weapons_.computation_time = ORBSVCS_Time::zero (); - weapons_.update_data = update_data_; - - - data.replace (_tc_Weapons, &weapons_, 0, ACE_TRY_ENV); - } - else { - ACE_ERROR ((LM_ERROR, - "Logging_Supplier::insert_event_data:" - "unrecognized operation name [%s]", - (*sched_data)->operation_name)); - } - - ACE_TRY_CHECK; - - - if (last_completion > (*sched_data)->completion_time) - last_completion = 0; - - if ((*sched_data)->completion_time >= last_completion) - { - ACE_Time_Value pause (0, - (*sched_data)->completion_time - - last_completion); - ACE_OS::sleep (pause); - last_completion = (*sched_data)->completion_time; - } - } - else - ACE_ERROR ((LM_ERROR, - "Logging_Supplier::insert_event_data:" - "Could Not access scheduling data")); - - schedule_iter.advance (); - - if (schedule_iter.done ()) - schedule_iter.first (); - } - ACE_CATCHANY - { - ACE_ERROR ((LM_ERROR, - "(%t)Error in Logging_Supplier::insert_event_data.\n")); - } - ACE_ENDTRY; -} - - - -// Function get_options. - -unsigned int -Logging_Supplier::get_options (int argc, char *argv []) -{ - ACE_Get_Opt get_opt (argc, argv, "f:m:d:s"); - int opt; - int temp; - - while ((opt = get_opt ()) != -1) - { - switch (opt) - { - case 'm': - temp = ACE_OS::atoi (get_opt.optarg); - if (temp > 0) - { - this->total_messages_ = (u_int) temp; - ACE_DEBUG ((LM_DEBUG, - "Messages to send: %d\n", - this->total_messages_)); - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "%s: count must be > 0", - argv[0]), - 1); - break; - case 'f': - this->input_file_name_ = get_opt.optarg; - - if (!this->input_file_name_ || ACE_OS::strlen (this->input_file_name_) > 0) - ACE_DEBUG ((LM_DEBUG,"Reading file!\n")); - else - { - this->input_file_name_ = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -f option", - argv[0]), - 1); - } - break; - case 'd': - this->schedule_file_name_ = get_opt.optarg; - - if (!this->schedule_file_name_ || ACE_OS::strlen (this->schedule_file_name_) > 0) - ACE_DEBUG ((LM_DEBUG,"Dumping file!\n")); - else - { - this->input_file_name_ = 0; - ACE_ERROR_RETURN ((LM_ERROR, - "%s: file name must be specified with -d option", - argv[0]), - 1); - } - break; - case 's': - update_data_ = 0; - break; - default: - case '?': - ACE_DEBUG ((LM_DEBUG, - "Usage: %s %s\n", - argv[0], usage)); - ACE_OS::exit (0); - break; - } - } - - if (argc != get_opt.optind) - ACE_ERROR_RETURN ((LM_ERROR, - "%s: too many arguments\n" - "Usage: %s %s\n", - argv[0], - argv[0], - usage), - 1); - - return 0; -} - -// function main - -int -main (int argc, char *argv []) -{ - ACE_TRY_NEW_ENV - { - // Initialize ORB. - TAO_ORB_Manager orb_Manager; - - orb_Manager.init (argc, - argv, - ACE_TRY_ENV); - ACE_TRY_CHECK; - - - // Create the demo supplier. - Logging_Supplier *event_Supplier_ptr; - - ACE_NEW_RETURN (event_Supplier_ptr, - Logging_Supplier(argc, argv), - -1); - - // Initialize everthing - if (event_Supplier_ptr->init () == -1) - exit (1); - - // now we can go ahead - event_Supplier_ptr->start_generating_events (); - - // when done, we clean up - delete event_Supplier_ptr; - ACE_TRY_CHECK; - - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "SYS_EX"); - } - ACE_ENDTRY; - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node<Schedule_Viewer_Data *>; -template class ACE_Unbounded_Queue<Schedule_Viewer_Data *>; -template class ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node<Schedule_Viewer_Data *> -#pragma instantiate ACE_Unbounded_Queue<Schedule_Viewer_Data *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.dsp b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.dsp deleted file mode 100644 index fbc08d6f3d5..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.dsp +++ /dev/null @@ -1,157 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Logging_Sup" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Logging_Sup - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Logging_Sup.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Logging_Sup.mak" CFG="Logging_Sup - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Logging_Sup - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Logging_Sup - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Logging_Sup - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "Logging_Sup - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Logging_"
-# PROP BASE Intermediate_Dir "Logging_"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\..\\" /I "..\..\..\\" /I "..\..\..\orbsvcs\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TAO_ORBSVCS_HAS_DLL" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib TAOd.lib orbsvcsd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\ace" /libpath:"..\..\..\tao" /libpath:"..\..\..\orbsvcs\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Logging_Sup - Win32 Release"
-# Name "Logging_Sup - Win32 Debug"
-# Begin Group "Source files"
-
-# PROP Default_Filter "*.cpp"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Logging_Sup.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapS.cpp
-# End Source File
-# End Group
-# Begin Group "Header files"
-
-# PROP Default_Filter "*.h"
-# Begin Source File
-
-SOURCE=.\DOVE_Supplier.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Logging_Sup.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.h
-# End Source File
-# End Group
-# Begin Group "IDL files"
-
-# PROP Default_Filter "*.idl"
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "Logging_Sup - Win32 Release"
-
-!ELSEIF "$(CFG)" == "Logging_Sup - Win32 Debug"
-
-USERDEP__NAVWE="..\$(InputName).idl"
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- xcopy ..\$(InputName).idl \
- ..\..\..\..\bin\tao_idl -Ge 1 -I ..\..\..\ -I ..\..\..\orbsvcs\orbsvcs $(InputName).idl \
-
-
-"$(InputName)C.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)C.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h deleted file mode 100644 index 80ec077b833..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.h +++ /dev/null @@ -1,85 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = FILENAME -// Logging_Sup.h -// -// = DESCRIPTION -// Event supplier for visualization of scheduling behavior, using -// arrival and dispatch data logged by an EC dispatch command object -// -// = AUTHOR -// Chris Gill (cdgill@cs.wustl.edu) -// -// Adapted from the orginal DOVE simulation event supplier written by -// Michael Kircher (mk1@cs.wustl.edu) -// -// ============================================================================ - -#ifndef LOGGING_SUP_H -#define LOGGING_SUP_H - -//#include <ctype.h> -//#include <stdio.h> -#include "NavWeapC.h" -#include "DOVE_Supplier.h" - -struct Schedule_Viewer_Data -{ - char operation_name [BUFSIZ]; - double utilitzation; - double overhead; - u_long arrival_time; - u_long deadline_time; - u_long completion_time; - u_long computation_time; -}; - -class Logging_Supplier -{ - // = TITLE - // Event Supplier. - // - // = DESCRIPTION - // Reads Scheduler information out of a file and - // feeds it with additional navigation and - // weapon data into the dove_supplier, which - // is connected to the event channel -public: - - Logging_Supplier (int argc, char** argv); - - ~Logging_Supplier (void); - - int init (void); - // connect the DOVE_Supplier - - void start_generating_events (void); - // here is really something going on, - // here we deliver the messages - - void load_schedule_data (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data); - // Load the scheduling information into memory - - -private: - void insert_event_data (CORBA::Any &data, - ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter); - // just a helper to put all the information into the CORBA::Any - - unsigned int get_options (int argc, char *argv []); - - DOVE_Supplier dOVE_Supplier_; - Navigation navigation_; - Weapons weapons_; - - int argc_; - char **argv_; - unsigned long total_messages_; - char *input_file_name_; - unsigned long update_data_; - const char* schedule_file_name_; -}; - -#endif /* LOGGING_SUP_H */ diff --git a/TAO/examples/Simulator/Event_Supplier/MLF.dat b/TAO/examples/Simulator/Event_Supplier/MLF.dat deleted file mode 100644 index 2ab9b47b9af..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/MLF.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -low_5 1.000000 0.000000 0 2000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -low_1 1.000000 0.000000 0 10000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_1 1.000000 0.000000 0 10000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 5000000 6000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 7000000 8000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 9000000 10000000 10080000 180000 -low_5 1.000000 0.000000 8000000 10000000 10260000 180000 -high_5 1.000000 0.000000 8000000 10000000 10440000 180000 -high_10 1.000000 0.000000 8000000 9000000 10620000 180000 -high_5 1.000000 0.000000 6000000 8000000 10800000 180000 -low_5 1.000000 0.000000 6000000 8000000 10980000 180000 -high_10 1.000000 0.000000 6000000 7000000 11160000 180000 -low_5 1.000000 0.000000 4000000 6000000 11340000 180000 -high_5 1.000000 0.000000 4000000 6000000 11520000 180000 -high_10 1.000000 0.000000 4000000 5000000 11700000 180000 -high_5 1.000000 0.000000 2000000 4000000 11880000 180000 -low_5 1.000000 0.000000 2000000 4000000 12060000 180000 -high_10 1.000000 0.000000 3000000 4000000 12240000 180000 -high_10 1.000000 0.000000 2000000 3000000 12420000 180000 -high_10 1.000000 0.000000 1000000 2000000 12600000 180000 -high_5 1.000000 0.000000 0 2000000 12780000 180000 -high_10 1.000000 0.000000 0 1000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/MUF.dat b/TAO/examples/Simulator/Event_Supplier/MUF.dat deleted file mode 100644 index ac521175070..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/MUF.dat +++ /dev/null @@ -1,72 +0,0 @@ -high_20 1.000000 0.000000 0 500000 180000 180000 -high_10 1.000000 0.000000 0 1000000 360000 180000 -high_20 1.000000 0.000000 500000 1000000 680000 180000 -high_5 1.000000 0.000000 0 2000000 720000 180000 -high_1 1.000000 0.000000 0 10000000 900000 180000 -high_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_10 1.000000 0.000000 1000000 2000000 1360000 180000 -low_5 1.000000 0.000000 0 2000000 1440000 180000 -high_20 1.000000 0.000000 1500000 2000000 1680000 180000 -low_10 1.000000 0.000000 1000000 2000000 1800000 180000 -low_20 1.000000 0.000000 1500000 2000000 1980000 180000 -high_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_10 1.000000 0.000000 2000000 3000000 2360000 180000 -high_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_5 1.000000 0.000000 2000000 4000000 2720000 180000 -low_1 1.000000 0.000000 0 10000000 2880000 180000 -high_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_10 1.000000 0.000000 3000000 4000000 3360000 180000 -low_5 1.000000 0.000000 2000000 4000000 3420000 180000 -high_20 1.000000 0.000000 3500000 4000000 3680000 180000 -low_10 1.000000 0.000000 3000000 4000000 3780000 180000 -low_20 1.000000 0.000000 3500000 4000000 3960000 180000 -high_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_10 1.000000 0.000000 4000000 5000000 4360000 180000 -high_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_5 1.000000 0.000000 4000000 6000000 4720000 180000 -low_20 1.000000 0.000000 3000000 3500000 4860000 180000 -high_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_10 1.000000 0.000000 5000000 6000000 5360000 180000 -low_5 1.000000 0.000000 4000000 6000000 5400000 180000 -high_20 1.000000 0.000000 5500000 6000000 5680000 180000 -low_10 1.000000 0.000000 5000000 6000000 5760000 180000 -low_20 1.000000 0.000000 5500000 6000000 5940000 180000 -high_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_10 1.000000 0.000000 6000000 7000000 6360000 180000 -high_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_5 1.000000 0.000000 6000000 8000000 6720000 180000 -low_20 1.000000 0.000000 5000000 5500000 6840000 180000 -high_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_10 1.000000 0.000000 7000000 8000000 7360000 180000 -low_5 1.000000 0.000000 6000000 8000000 7380000 180000 -high_20 1.000000 0.000000 7500000 8000000 7680000 180000 -low_10 1.000000 0.000000 7000000 8000000 7740000 180000 -low_20 1.000000 0.000000 7500000 8000000 7920000 180000 -high_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_10 1.000000 0.000000 8000000 9000000 8360000 180000 -high_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_5 1.000000 0.000000 8000000 10000000 8720000 180000 -low_20 1.000000 0.000000 7000000 7500000 8820000 180000 -low_5 1.000000 0.000000 8000000 10000000 9000000 180000 -high_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_10 1.000000 0.000000 9000000 10000000 9360000 180000 -high_20 1.000000 0.000000 9500000 10000000 9680000 180000 -low_10 1.000000 0.000000 9000000 10000000 9720000 180000 -low_20 1.000000 0.000000 9500000 10000000 9900000 180000 -low_20 1.000000 0.000000 9000000 9500000 10080000 180000 -low_10 1.000000 0.000000 8000000 9000000 10260000 180000 -low_20 1.000000 0.000000 8500000 9000000 10440000 180000 -low_20 1.000000 0.000000 8000000 8500000 10620000 180000 -low_20 1.000000 0.000000 6500000 7000000 10800000 180000 -low_10 1.000000 0.000000 6000000 7000000 10980000 180000 -low_20 1.000000 0.000000 6000000 6500000 11160000 180000 -low_10 1.000000 0.000000 4000000 5000000 11340000 180000 -low_20 1.000000 0.000000 4500000 5000000 11520000 180000 -low_20 1.000000 0.000000 4000000 4500000 11700000 180000 -low_20 1.000000 0.000000 2500000 3000000 11880000 180000 -low_10 1.000000 0.000000 2000000 3000000 12060000 180000 -low_20 1.000000 0.000000 2000000 2500000 12240000 180000 -low_20 1.000000 0.000000 1000000 1500000 12420000 180000 -low_20 1.000000 0.000000 500000 1000000 12600000 180000 -low_10 1.000000 0.000000 0 1000000 12780000 180000 -low_20 1.000000 0.000000 0 500000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/Makefile b/TAO/examples/Simulator/Event_Supplier/Makefile deleted file mode 100644 index 3f2ab875168..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/Makefile +++ /dev/null @@ -1,1336 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -ifndef TAO_ROOT - TAO_ROOT = $(ACE_ROOT)/TAO -endif # ! TAO_ROOT - -TAO_IDLFLAGS += -Ge 1 -I$(TAO_ROOT)/orbsvcs/orbsvcs -I$(TAO_ROOT) -IDL_SRC = NavWeapC.cpp NavWeapS.cpp -IDL_HDR = NavWeapC.h -EVENT_TEST_SRCS = Event_Sup.cpp Logging_Sup.cpp DualEC_Sup.cpp Event_Con.cpp DOVE_Supplier.cpp - -LSRC = $(IDL_SRC) $(EVENT_TEST_SRCS) - -EVENT_SUP_OBJS = NavWeapC.o NavWeapS.o Event_Sup.o DOVE_Supplier.o -EVENT_CON_OBJS = NavWeapC.o NavWeapS.o Event_Con.o -LOGGING_SUP_OBJS = NavWeapC.o NavWeapS.o Logging_Sup.o DOVE_Supplier.o -DUALEC_SUP_OBJS = NavWeapC.o NavWeapS.o DualEC_Sup.o DOVE_Supplier.o - -LDLIBS = -lorbsvcs -lTAO - -BIN2 = Event_Sup Logging_Sup DualEC_Sup Event_Con - -#### If the TAO orbsvcs library wasn't built with sufficient components, -#### don't try to build here. -TAO_ORBSVCS := $(shell sh $(ACE_ROOT)/bin/ace_components --orbsvcs) -ifeq (Event,$(findstring Event,$(TAO_ORBSVCS))) - ifeq (Sched,$(findstring Sched,$(TAO_ORBSVCS))) - ifeq (Time,$(findstring Time,$(TAO_ORBSVCS))) - ifeq (Naming,$(findstring Naming,$(TAO_ORBSVCS))) - BIN = $(BIN2) - endif # Naming - endif # Time - endif # Sched -endif # Event - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(TAO_ROOT)/rules.tao.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -#### TSS_ORB_FLAG = -DTAO_HAS_TSS_ORBCORE -LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao -CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) \ - -I$(TAO_ROOT)/orbsvcs/orbsvcs $(TSS_ORB_FLAG)#-H - -$(IDL_SRC): NavWeap.idl - $(TAO_IDL) $(TAO_IDLFLAGS) $< - -.PRECIOUS:$(IDL_HDR) $(IDL_SRC) - -NavWeap.idl: ../NavWeap.idl - @cp -p $< . - - -Event_Sup: $(addprefix $(VDIR),$(EVENT_SUP_OBJS)) - -Logging_Sup: $(addprefix $(VDIR),$(LOGGING_SUP_OBJS)) - -DualEC_Sup: $(addprefix $(VDIR),$(DUALEC_SUP_OBJS)) - -Event_Con: $(addprefix $(VDIR),$(EVENT_CON_OBJS)) - -realclean: clean - -$(RM) NavWeap.idl NavWeap[CS].* NavWeap[CS]_T.* - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- - -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - -.obj/NavWeapC.o .obj/NavWeapC.so .shobj/NavWeapC.o .shobj/NavWeapC.so: NavWeapC.cpp NavWeapC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - NavWeapC.i NavWeapS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - NavWeapS_T.h NavWeapS_T.i NavWeapS_T.cpp NavWeapS.i -.obj/NavWeapS.o .obj/NavWeapS.so .shobj/NavWeapS.o .shobj/NavWeapS.so: NavWeapS.cpp NavWeapS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - NavWeapC.h NavWeapC.i NavWeapS_T.h NavWeapS_T.i NavWeapS_T.cpp \ - NavWeapS.i -.obj/Event_Sup.o .obj/Event_Sup.so .shobj/Event_Sup.o .shobj/Event_Sup.so: Event_Sup.cpp \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-linux-lxpthreads.h \ - $(ACE_ROOT)/ace/config-linux-common.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/IIOP_Profile.h \ - $(TAO_ROOT)/tao/IIOP_Transport.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(TAO_ROOT)/tao/IIOP_Acceptor.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/CDR_Interpreter.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/TAO.h \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - Event_Sup.h NavWeapC.h NavWeapC.i DOVE_Supplier.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i -.obj/Logging_Sup.o .obj/Logging_Sup.so .shobj/Logging_Sup.o .shobj/Logging_Sup.so: Logging_Sup.cpp \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-linux-lxpthreads.h \ - $(ACE_ROOT)/ace/config-linux-common.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/IIOP_Profile.h \ - $(TAO_ROOT)/tao/IIOP_Transport.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(TAO_ROOT)/tao/IIOP_Acceptor.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/CDR_Interpreter.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/TAO.h \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - Logging_Sup.h NavWeapC.h NavWeapC.i DOVE_Supplier.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i -.obj/DualEC_Sup.o .obj/DualEC_Sup.so .shobj/DualEC_Sup.o .shobj/DualEC_Sup.so: DualEC_Sup.cpp \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-linux-lxpthreads.h \ - $(ACE_ROOT)/ace/config-linux-common.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/IIOP_Profile.h \ - $(TAO_ROOT)/tao/IIOP_Transport.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(TAO_ROOT)/tao/IIOP_Acceptor.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/CDR_Interpreter.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/tao/TAO.h \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Config_Scheduler.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Scheduler.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Scheduler.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Scheduler_Generic.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Sched/Config_Scheduler.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Runtime_Scheduler.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Runtime_Scheduler.i \ - DualEC_Sup.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Module_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Event_Channel.h \ - $(TAO_ROOT)/tao/Timeprobe.h \ - $(ACE_ROOT)/ace/Timeprobe.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Local_ESTypes.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Local_ESTypes.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Timer_Module.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/RT_Task.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/RT_Task.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Timer_Module.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/ReactorTask.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Fast_Reactor.h \ - $(ACE_ROOT)/ace/Select_Reactor.h \ - $(ACE_ROOT)/ace/Select_Reactor_T.h \ - $(ACE_ROOT)/ace/Select_Reactor_Base.h \ - $(ACE_ROOT)/ace/Token.h \ - $(ACE_ROOT)/ace/Token.i \ - $(ACE_ROOT)/ace/Pipe.h \ - $(ACE_ROOT)/ace/Pipe.i \ - $(ACE_ROOT)/ace/Select_Reactor_Base.i \ - $(ACE_ROOT)/ace/Select_Reactor_T.cpp \ - $(ACE_ROOT)/ace/Timer_Heap.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.h \ - $(ACE_ROOT)/ace/Timer_Heap_T.cpp \ - $(ACE_ROOT)/ace/Select_Reactor_T.i \ - $(ACE_ROOT)/ace/Select_Reactor.i \ - $(ACE_ROOT)/ace/Timer_List.h \ - $(ACE_ROOT)/ace/Timer_List_T.h \ - $(ACE_ROOT)/ace/Timer_List_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Event_Manip.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Event_Manip.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event/Event_Channel.i \ - NavWeapC.h NavWeapC.i NavWeapS.h NavWeapS_T.h NavWeapS_T.i \ - NavWeapS_T.cpp NavWeapS.i DOVE_Supplier.h -.obj/Event_Con.o .obj/Event_Con.so .shobj/Event_Con.o .shobj/Event_Con.so: Event_Con.cpp \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-linux-lxpthreads.h \ - $(ACE_ROOT)/ace/config-linux-common.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/Sched_Params.h \ - $(ACE_ROOT)/ace/Sched_Params.i \ - $(ACE_ROOT)/ace/Profile_Timer.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/High_Res_Timer.h \ - $(ACE_ROOT)/ace/High_Res_Timer.i \ - $(ACE_ROOT)/ace/Profile_Timer.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \ - Event_Con.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i \ - NavWeapC.h NavWeapC.i -.obj/DOVE_Supplier.o .obj/DOVE_Supplier.so .shobj/DOVE_Supplier.o .shobj/DOVE_Supplier.so: DOVE_Supplier.cpp DOVE_Supplier.h \ - $(ACE_ROOT)/ace/OS.h \ - $(ACE_ROOT)/ace/inc_user_config.h \ - $(ACE_ROOT)/ace/config.h \ - $(ACE_ROOT)/ace/config-linux-lxpthreads.h \ - $(ACE_ROOT)/ace/config-linux-common.h \ - $(ACE_ROOT)/ace/config-g++-common.h \ - $(ACE_ROOT)/ace/streams.h \ - $(ACE_ROOT)/ace/Basic_Types.h \ - $(ACE_ROOT)/ace/Basic_Types.i \ - $(ACE_ROOT)/ace/OS.i \ - $(ACE_ROOT)/ace/Trace.h \ - $(ACE_ROOT)/ace/Log_Msg.h \ - $(ACE_ROOT)/ace/Log_Record.h \ - $(ACE_ROOT)/ace/ACE.h \ - $(ACE_ROOT)/ace/ACE.i \ - $(ACE_ROOT)/ace/Log_Priority.h \ - $(ACE_ROOT)/ace/SString.h \ - $(ACE_ROOT)/ace/SString.i \ - $(ACE_ROOT)/ace/Malloc_Base.h \ - $(ACE_ROOT)/ace/Log_Record.i \ - $(TAO_ROOT)/tao/corba.h \ - $(TAO_ROOT)/tao/orbconf.h \ - $(ACE_ROOT)/ace/Get_Opt.h \ - $(ACE_ROOT)/ace/Get_Opt.i \ - $(ACE_ROOT)/ace/SOCK_Stream.h \ - $(ACE_ROOT)/ace/SOCK_IO.h \ - $(ACE_ROOT)/ace/SOCK.h \ - $(ACE_ROOT)/ace/Addr.h \ - $(ACE_ROOT)/ace/Addr.i \ - $(ACE_ROOT)/ace/IPC_SAP.h \ - $(ACE_ROOT)/ace/IPC_SAP.i \ - $(ACE_ROOT)/ace/SOCK.i \ - $(ACE_ROOT)/ace/SOCK_IO.i \ - $(ACE_ROOT)/ace/INET_Addr.h \ - $(ACE_ROOT)/ace/INET_Addr.i \ - $(ACE_ROOT)/ace/SOCK_Stream.i \ - $(ACE_ROOT)/ace/Synch_T.h \ - $(ACE_ROOT)/ace/Event_Handler.h \ - $(ACE_ROOT)/ace/Event_Handler.i \ - $(ACE_ROOT)/ace/Synch.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \ - $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \ - $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \ - $(ACE_ROOT)/ace/Synch.i \ - $(ACE_ROOT)/ace/Synch_T.i \ - $(ACE_ROOT)/ace/Thread.h \ - $(ACE_ROOT)/ace/Thread.i \ - $(ACE_ROOT)/ace/Atomic_Op.i \ - $(ACE_ROOT)/ace/Synch_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.h \ - $(ACE_ROOT)/ace/Functor.h \ - $(ACE_ROOT)/ace/Functor.i \ - $(ACE_ROOT)/ace/Functor_T.h \ - $(ACE_ROOT)/ace/Functor_T.i \ - $(ACE_ROOT)/ace/Functor_T.cpp \ - $(ACE_ROOT)/ace/Hash_Map_Manager.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \ - $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \ - $(ACE_ROOT)/ace/Service_Config.h \ - $(ACE_ROOT)/ace/Service_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.h \ - $(ACE_ROOT)/ace/Shared_Object.i \ - $(ACE_ROOT)/ace/Service_Object.i \ - $(ACE_ROOT)/ace/Signal.h \ - $(ACE_ROOT)/ace/Containers.h \ - $(ACE_ROOT)/ace/Containers.i \ - $(ACE_ROOT)/ace/Containers_T.h \ - $(ACE_ROOT)/ace/Containers_T.i \ - $(ACE_ROOT)/ace/Containers_T.cpp \ - $(ACE_ROOT)/ace/Malloc.h \ - $(ACE_ROOT)/ace/Malloc.i \ - $(ACE_ROOT)/ace/Malloc_T.h \ - $(ACE_ROOT)/ace/Free_List.h \ - $(ACE_ROOT)/ace/Free_List.i \ - $(ACE_ROOT)/ace/Free_List.cpp \ - $(ACE_ROOT)/ace/Malloc_T.i \ - $(ACE_ROOT)/ace/Malloc_T.cpp \ - $(ACE_ROOT)/ace/Memory_Pool.h \ - $(ACE_ROOT)/ace/Mem_Map.h \ - $(ACE_ROOT)/ace/Mem_Map.i \ - $(ACE_ROOT)/ace/Memory_Pool.i \ - $(ACE_ROOT)/ace/Signal.i \ - $(ACE_ROOT)/ace/Object_Manager.h \ - $(ACE_ROOT)/ace/Object_Manager.i \ - $(ACE_ROOT)/ace/Managed_Object.h \ - $(ACE_ROOT)/ace/Managed_Object.i \ - $(ACE_ROOT)/ace/Managed_Object.cpp \ - $(ACE_ROOT)/ace/Service_Config.i \ - $(ACE_ROOT)/ace/Reactor.h \ - $(ACE_ROOT)/ace/Handle_Set.h \ - $(ACE_ROOT)/ace/Handle_Set.i \ - $(ACE_ROOT)/ace/Timer_Queue.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.h \ - $(ACE_ROOT)/ace/Timer_Queue_T.i \ - $(ACE_ROOT)/ace/Timer_Queue_T.cpp \ - $(ACE_ROOT)/ace/Reactor.i \ - $(ACE_ROOT)/ace/Reactor_Impl.h \ - $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.h \ - $(ACE_ROOT)/ace/Time_Value.h \ - $(ACE_ROOT)/ace/SOCK_Acceptor.i \ - $(ACE_ROOT)/ace/SOCK_Connector.h \ - $(ACE_ROOT)/ace/SOCK_Connector.i \ - $(ACE_ROOT)/ace/Strategies.h \ - $(ACE_ROOT)/ace/Strategies_T.h \ - $(ACE_ROOT)/ace/Synch_Options.h \ - $(ACE_ROOT)/ace/Synch_Options.i \ - $(ACE_ROOT)/ace/Thread_Manager.h \ - $(ACE_ROOT)/ace/Thread_Manager.i \ - $(ACE_ROOT)/ace/Strategies_T.i \ - $(ACE_ROOT)/ace/Strategies_T.cpp \ - $(ACE_ROOT)/ace/Service_Repository.h \ - $(ACE_ROOT)/ace/Service_Types.h \ - $(ACE_ROOT)/ace/Service_Types.i \ - $(ACE_ROOT)/ace/Service_Repository.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.h \ - $(ACE_ROOT)/ace/Message_Queue.h \ - $(ACE_ROOT)/ace/Message_Block.h \ - $(ACE_ROOT)/ace/Message_Block.i \ - $(ACE_ROOT)/ace/Message_Block_T.h \ - $(ACE_ROOT)/ace/Message_Block_T.i \ - $(ACE_ROOT)/ace/Message_Block_T.cpp \ - $(ACE_ROOT)/ace/IO_Cntl_Msg.h \ - $(ACE_ROOT)/ace/Message_Queue_T.h \ - $(ACE_ROOT)/ace/Message_Queue_T.i \ - $(ACE_ROOT)/ace/Message_Queue_T.cpp \ - $(ACE_ROOT)/ace/Message_Queue.i \ - $(ACE_ROOT)/ace/WFMO_Reactor.i \ - $(ACE_ROOT)/ace/Strategies.i \ - $(ACE_ROOT)/ace/Connector.h \ - $(ACE_ROOT)/ace/Map_Manager.h \ - $(ACE_ROOT)/ace/Map_Manager.i \ - $(ACE_ROOT)/ace/Map_Manager.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.h \ - $(ACE_ROOT)/ace/Task.h \ - $(ACE_ROOT)/ace/Task.i \ - $(ACE_ROOT)/ace/Task_T.h \ - $(ACE_ROOT)/ace/Task_T.i \ - $(ACE_ROOT)/ace/Task_T.cpp \ - $(ACE_ROOT)/ace/Module.h \ - $(ACE_ROOT)/ace/Module.i \ - $(ACE_ROOT)/ace/Module.cpp \ - $(ACE_ROOT)/ace/Stream_Modules.h \ - $(ACE_ROOT)/ace/Stream_Modules.i \ - $(ACE_ROOT)/ace/Stream_Modules.cpp \ - $(ACE_ROOT)/ace/Svc_Handler.i \ - $(ACE_ROOT)/ace/Svc_Handler.cpp \ - $(ACE_ROOT)/ace/Dynamic.h \ - $(ACE_ROOT)/ace/Singleton.h \ - $(ACE_ROOT)/ace/Singleton.i \ - $(ACE_ROOT)/ace/Singleton.cpp \ - $(ACE_ROOT)/ace/Dynamic.i \ - $(ACE_ROOT)/ace/Connector.i \ - $(ACE_ROOT)/ace/Connector.cpp \ - $(ACE_ROOT)/ace/Acceptor.h \ - $(ACE_ROOT)/ace/Acceptor.i \ - $(ACE_ROOT)/ace/Acceptor.cpp \ - $(ACE_ROOT)/ace/CDR_Stream.h \ - $(ACE_ROOT)/ace/CDR_Stream.i \ - $(TAO_ROOT)/tao/Environment.h \ - $(TAO_ROOT)/tao/Environment.i \ - $(TAO_ROOT)/tao/ORB.h \ - $(TAO_ROOT)/tao/Exception.h \ - $(TAO_ROOT)/tao/Exception.i \ - $(TAO_ROOT)/tao/Managed_Types.h \ - $(TAO_ROOT)/tao/Sequence.h \ - $(TAO_ROOT)/tao/Sequence.i \ - $(TAO_ROOT)/tao/Sequence_T.h \ - $(TAO_ROOT)/tao/Sequence_T.i \ - $(TAO_ROOT)/tao/Sequence_T.cpp \ - $(TAO_ROOT)/tao/Object_KeyC.h \ - $(TAO_ROOT)/tao/Object_KeyC.i \ - $(TAO_ROOT)/tao/Union.h \ - $(TAO_ROOT)/tao/ORB.i \ - $(TAO_ROOT)/tao/Managed_Types.i \ - $(TAO_ROOT)/tao/try_macros.h \ - $(ACE_ROOT)/ace/CORBA_macros.h \ - $(TAO_ROOT)/tao/Any.h \ - $(TAO_ROOT)/tao/Any.i \ - $(TAO_ROOT)/tao/NVList.h \ - $(TAO_ROOT)/tao/NVList.i \ - $(TAO_ROOT)/tao/Principal.h \ - $(TAO_ROOT)/tao/Principal.i \ - $(TAO_ROOT)/tao/Request.h \ - $(TAO_ROOT)/tao/Request.i \ - $(TAO_ROOT)/tao/Object.h \ - $(TAO_ROOT)/tao/Object.i \ - $(TAO_ROOT)/tao/varout.h \ - $(TAO_ROOT)/tao/varout.i \ - $(TAO_ROOT)/tao/varout.cpp \ - $(TAO_ROOT)/tao/Typecode.h \ - $(TAO_ROOT)/tao/Typecode.i \ - $(TAO_ROOT)/tao/Marshal.h \ - $(TAO_ROOT)/tao/Marshal.i \ - $(TAO_ROOT)/tao/singletons.h \ - $(TAO_ROOT)/tao/CDR.h \ - $(TAO_ROOT)/tao/CDR.i \ - $(TAO_ROOT)/tao/PolicyC.h \ - $(TAO_ROOT)/tao/PolicyC.i \ - $(TAO_ROOT)/tao/CurrentC.h \ - $(TAO_ROOT)/tao/CurrentC.i \ - $(TAO_ROOT)/tao/POA.h \ - $(TAO_ROOT)/tao/POAC.h \ - $(TAO_ROOT)/tao/POAC.i \ - $(TAO_ROOT)/tao/Servant_Base.h \ - $(TAO_ROOT)/tao/Servant_Base.i \ - $(TAO_ROOT)/tao/POAS.h \ - $(TAO_ROOT)/tao/POA_CORBA.h \ - $(TAO_ROOT)/tao/DynAnyC.h \ - $(TAO_ROOT)/tao/DynAnyC.i \ - $(TAO_ROOT)/tao/POAS.i \ - $(TAO_ROOT)/tao/Active_Object_Map.h \ - $(TAO_ROOT)/tao/Active_Object_Map.i \ - $(TAO_ROOT)/tao/POA.i \ - $(TAO_ROOT)/tao/poa_macros.h \ - $(TAO_ROOT)/tao/Pluggable.h \ - $(TAO_ROOT)/tao/MProfile.h \ - $(TAO_ROOT)/tao/IIOP_Profile.h \ - $(TAO_ROOT)/tao/IIOP_Transport.h \ - $(TAO_ROOT)/tao/IIOP_Connector.h \ - $(TAO_ROOT)/tao/IIOP_Acceptor.h \ - $(TAO_ROOT)/tao/params.h \ - $(TAO_ROOT)/tao/params.i \ - $(TAO_ROOT)/tao/ORB_Core.h \ - $(TAO_ROOT)/tao/ORB_Core.i \ - $(ACE_ROOT)/ace/Dynamic_Service.h \ - $(ACE_ROOT)/ace/Dynamic_Service.cpp \ - $(TAO_ROOT)/tao/Operation_Table.h \ - $(TAO_ROOT)/tao/debug.h \ - $(TAO_ROOT)/tao/Client_Strategy_Factory.h \ - $(TAO_ROOT)/tao/Server_Strategy_Factory.h \ - $(TAO_ROOT)/tao/default_client.h \ - $(TAO_ROOT)/tao/default_client.i \ - $(TAO_ROOT)/tao/default_server.h \ - $(TAO_ROOT)/tao/default_server.i \ - $(TAO_ROOT)/tao/Stub.h \ - $(TAO_ROOT)/tao/Stub.i \ - $(TAO_ROOT)/tao/CDR_Interpreter.h \ - $(TAO_ROOT)/tao/Invocation.h \ - $(TAO_ROOT)/tao/Invocation.i \ - $(TAO_ROOT)/tao/Server_Request.h \ - $(TAO_ROOT)/tao/Server_Request.i \ - $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \ - $(TAO_ROOT)/tao/DynAny_i.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/TimeBaseS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS_T.cpp \ - $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommS.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Service_Constants.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Time_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \ - $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \ - $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i - -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/TAO/examples/Simulator/Event_Supplier/RMS.dat b/TAO/examples/Simulator/Event_Supplier/RMS.dat deleted file mode 100644 index 5038c140a53..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/RMS.dat +++ /dev/null @@ -1,72 +0,0 @@ -low_20 1.000000 0.000000 0 500000 180000 180000 -high_20 1.000000 0.000000 0 500000 360000 180000 -low_20 1.000000 0.000000 500000 1000000 680000 180000 -high_20 1.000000 0.000000 500000 1000000 860000 180000 -low_10 1.000000 0.000000 0 1000000 900000 180000 -low_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_20 1.000000 0.000000 1000000 1500000 1360000 180000 -low_20 1.000000 0.000000 1500000 2000000 1680000 180000 -high_20 1.000000 0.000000 1500000 2000000 1860000 180000 -low_10 1.000000 0.000000 1000000 2000000 1900000 180000 -high_10 1.000000 0.000000 0 1000000 1980000 180000 -low_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_20 1.000000 0.000000 2000000 2500000 2360000 180000 -low_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_20 1.000000 0.000000 2500000 3000000 2860000 180000 -low_10 1.000000 0.000000 2000000 3000000 2900000 180000 -low_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_20 1.000000 0.000000 3000000 3500000 3360000 180000 -low_20 1.000000 0.000000 3500000 4000000 3680000 180000 -high_20 1.000000 0.000000 3500000 4000000 3860000 180000 -low_10 1.000000 0.000000 3000000 4000000 3900000 180000 -high_10 1.000000 0.000000 1000000 2000000 3960000 180000 -low_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_20 1.000000 0.000000 4000000 4500000 4360000 180000 -low_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_20 1.000000 0.000000 4500000 5000000 4860000 180000 -low_10 1.000000 0.000000 4000000 5000000 4900000 180000 -low_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_20 1.000000 0.000000 5000000 5500000 5360000 180000 -low_20 1.000000 0.000000 5500000 6000000 5680000 180000 -high_20 1.000000 0.000000 5500000 6000000 5860000 180000 -low_10 1.000000 0.000000 5000000 6000000 5900000 180000 -high_10 1.000000 0.000000 2000000 3000000 5940000 180000 -low_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_20 1.000000 0.000000 6000000 6500000 6360000 180000 -low_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_20 1.000000 0.000000 6500000 7000000 6860000 180000 -low_10 1.000000 0.000000 6000000 7000000 6900000 180000 -low_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_20 1.000000 0.000000 7000000 7500000 7360000 180000 -low_20 1.000000 0.000000 7500000 8000000 7680000 180000 -high_20 1.000000 0.000000 7500000 8000000 7860000 180000 -low_10 1.000000 0.000000 7000000 8000000 7900000 180000 -high_10 1.000000 0.000000 3000000 4000000 7920000 180000 -low_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_20 1.000000 0.000000 8000000 8500000 8360000 180000 -low_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_20 1.000000 0.000000 8500000 9000000 8860000 180000 -low_10 1.000000 0.000000 8000000 9000000 8900000 180000 -high_10 1.000000 0.000000 4000000 5000000 9000000 180000 -low_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_20 1.000000 0.000000 9000000 9500000 9360000 180000 -low_20 1.000000 0.000000 9500000 10000000 9680000 180000 -high_20 1.000000 0.000000 9500000 10000000 9860000 180000 -low_10 1.000000 0.000000 9000000 10000000 9900000 180000 -high_10 1.000000 0.000000 5000000 6000000 10080000 180000 -high_10 1.000000 0.000000 6000000 7000000 10260000 180000 -high_10 1.000000 0.000000 7000000 8000000 10440000 180000 -high_10 1.000000 0.000000 8000000 9000000 10620000 180000 -high_10 1.000000 0.000000 9000000 10000000 10800000 180000 -low_5 1.000000 0.000000 0 2000000 10980000 180000 -low_5 1.000000 0.000000 2000000 4000000 11160000 180000 -low_5 1.000000 0.000000 4000000 6000000 11340000 180000 -low_5 1.000000 0.000000 6000000 8000000 11520000 180000 -low_5 1.000000 0.000000 8000000 10000000 11700000 180000 -high_5 1.000000 0.000000 0 2000000 11880000 180000 -high_5 1.000000 0.000000 2000000 4000000 12060000 180000 -high_5 1.000000 0.000000 4000000 6000000 12240000 180000 -high_5 1.000000 0.000000 6000000 8000000 12420000 180000 -high_5 1.000000 0.000000 8000000 10000000 12600000 180000 -low_1 1.000000 0.000000 0 10000000 12780000 180000 -high_1 1.000000 0.000000 0 10000000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat b/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat deleted file mode 100644 index ac521175070..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat +++ /dev/null @@ -1,72 +0,0 @@ -high_20 1.000000 0.000000 0 500000 180000 180000 -high_10 1.000000 0.000000 0 1000000 360000 180000 -high_20 1.000000 0.000000 500000 1000000 680000 180000 -high_5 1.000000 0.000000 0 2000000 720000 180000 -high_1 1.000000 0.000000 0 10000000 900000 180000 -high_20 1.000000 0.000000 1000000 1500000 1180000 180000 -high_10 1.000000 0.000000 1000000 2000000 1360000 180000 -low_5 1.000000 0.000000 0 2000000 1440000 180000 -high_20 1.000000 0.000000 1500000 2000000 1680000 180000 -low_10 1.000000 0.000000 1000000 2000000 1800000 180000 -low_20 1.000000 0.000000 1500000 2000000 1980000 180000 -high_20 1.000000 0.000000 2000000 2500000 2180000 180000 -high_10 1.000000 0.000000 2000000 3000000 2360000 180000 -high_20 1.000000 0.000000 2500000 3000000 2680000 180000 -high_5 1.000000 0.000000 2000000 4000000 2720000 180000 -low_1 1.000000 0.000000 0 10000000 2880000 180000 -high_20 1.000000 0.000000 3000000 3500000 3180000 180000 -high_10 1.000000 0.000000 3000000 4000000 3360000 180000 -low_5 1.000000 0.000000 2000000 4000000 3420000 180000 -high_20 1.000000 0.000000 3500000 4000000 3680000 180000 -low_10 1.000000 0.000000 3000000 4000000 3780000 180000 -low_20 1.000000 0.000000 3500000 4000000 3960000 180000 -high_20 1.000000 0.000000 4000000 4500000 4180000 180000 -high_10 1.000000 0.000000 4000000 5000000 4360000 180000 -high_20 1.000000 0.000000 4500000 5000000 4680000 180000 -high_5 1.000000 0.000000 4000000 6000000 4720000 180000 -low_20 1.000000 0.000000 3000000 3500000 4860000 180000 -high_20 1.000000 0.000000 5000000 5500000 5180000 180000 -high_10 1.000000 0.000000 5000000 6000000 5360000 180000 -low_5 1.000000 0.000000 4000000 6000000 5400000 180000 -high_20 1.000000 0.000000 5500000 6000000 5680000 180000 -low_10 1.000000 0.000000 5000000 6000000 5760000 180000 -low_20 1.000000 0.000000 5500000 6000000 5940000 180000 -high_20 1.000000 0.000000 6000000 6500000 6180000 180000 -high_10 1.000000 0.000000 6000000 7000000 6360000 180000 -high_20 1.000000 0.000000 6500000 7000000 6680000 180000 -high_5 1.000000 0.000000 6000000 8000000 6720000 180000 -low_20 1.000000 0.000000 5000000 5500000 6840000 180000 -high_20 1.000000 0.000000 7000000 7500000 7180000 180000 -high_10 1.000000 0.000000 7000000 8000000 7360000 180000 -low_5 1.000000 0.000000 6000000 8000000 7380000 180000 -high_20 1.000000 0.000000 7500000 8000000 7680000 180000 -low_10 1.000000 0.000000 7000000 8000000 7740000 180000 -low_20 1.000000 0.000000 7500000 8000000 7920000 180000 -high_20 1.000000 0.000000 8000000 8500000 8180000 180000 -high_10 1.000000 0.000000 8000000 9000000 8360000 180000 -high_20 1.000000 0.000000 8500000 9000000 8680000 180000 -high_5 1.000000 0.000000 8000000 10000000 8720000 180000 -low_20 1.000000 0.000000 7000000 7500000 8820000 180000 -low_5 1.000000 0.000000 8000000 10000000 9000000 180000 -high_20 1.000000 0.000000 9000000 9500000 9180000 180000 -high_10 1.000000 0.000000 9000000 10000000 9360000 180000 -high_20 1.000000 0.000000 9500000 10000000 9680000 180000 -low_10 1.000000 0.000000 9000000 10000000 9720000 180000 -low_20 1.000000 0.000000 9500000 10000000 9900000 180000 -low_20 1.000000 0.000000 9000000 9500000 10080000 180000 -low_10 1.000000 0.000000 8000000 9000000 10260000 180000 -low_20 1.000000 0.000000 8500000 9000000 10440000 180000 -low_20 1.000000 0.000000 8000000 8500000 10620000 180000 -low_20 1.000000 0.000000 6500000 7000000 10800000 180000 -low_10 1.000000 0.000000 6000000 7000000 10980000 180000 -low_20 1.000000 0.000000 6000000 6500000 11160000 180000 -low_10 1.000000 0.000000 4000000 5000000 11340000 180000 -low_20 1.000000 0.000000 4500000 5000000 11520000 180000 -low_20 1.000000 0.000000 4000000 4500000 11700000 180000 -low_20 1.000000 0.000000 2500000 3000000 11880000 180000 -low_10 1.000000 0.000000 2000000 3000000 12060000 180000 -low_20 1.000000 0.000000 2000000 2500000 12240000 180000 -low_20 1.000000 0.000000 1000000 1500000 12420000 180000 -low_20 1.000000 0.000000 500000 1000000 12600000 180000 -low_10 1.000000 0.000000 0 1000000 12780000 180000 -low_20 1.000000 0.000000 0 500000 12960000 180000 diff --git a/TAO/examples/Simulator/Event_Supplier/svc.conf b/TAO/examples/Simulator/Event_Supplier/svc.conf deleted file mode 100644 index 34bf7564c6e..00000000000 --- a/TAO/examples/Simulator/Event_Supplier/svc.conf +++ /dev/null @@ -1,5 +0,0 @@ -# $Id$ -# - -static Server_Strategy_Factory " -ORBdemuxstrategy dynamic -ORBtablesize 128" - diff --git a/TAO/examples/Simulator/Makefile b/TAO/examples/Simulator/Makefile deleted file mode 100644 index eb49c16d451..00000000000 --- a/TAO/examples/Simulator/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -DIRS = Event_Supplier \ - DOVEMIB \ - DOVEBrowser - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU diff --git a/TAO/examples/Simulator/NavWeap.idl b/TAO/examples/Simulator/NavWeap.idl deleted file mode 100644 index ded20426e61..00000000000 --- a/TAO/examples/Simulator/NavWeap.idl +++ /dev/null @@ -1,73 +0,0 @@ -// $Id$ - -// ========================================================================================================= -// -// = FILE -// NavWeap.idl -// -// = DESCRIPTION -// Navigation and Weapon structs for the DOVE/EventService demo. - -// = AUTHORS -// Michael Kircher <mk1@cec.wustl.edu> -// Modified by -// Chris Gill <cdgill@cs.wustl.edu> -// ========================================================================================================= - -#include "TimeBase.idl" - -struct Navigation { - long position_latitude; - long position_longitude; - unsigned long altitude; - long heading; - long roll; - long pitch; - // common part - double utilization; - double overhead; - TimeBase::TimeT arrival_time; - TimeBase::TimeT deadline_time; - TimeBase::TimeT completion_time; - TimeBase::TimeT computation_time; - unsigned long criticality; - unsigned long update_data; -}; - - - -struct Weapons { - - unsigned long number_of_weapons; - string weapon1_identifier; - unsigned long weapon1_status; - string weapon2_identifier; - unsigned long weapon2_status; - string weapon3_identifier; - unsigned long weapon3_status; - string weapon4_identifier; - unsigned long weapon4_status; - string weapon5_identifier; - unsigned long weapon5_status; - // common part - double utilization; - double overhead; - TimeBase::TimeT arrival_time; - TimeBase::TimeT deadline_time; - TimeBase::TimeT completion_time; - TimeBase::TimeT computation_time; - unsigned long criticality; - unsigned long update_data; -}; - -interface NavWeapTerminator - // = DESCRIPTION - // This interface specifies a single operation, used - // to shut down the orb. This allows the orb to - // be shut down cleanly, from within a synchronously - // servant dispatched servant, but with the request - // originating from another thread. -{ - void shutdown (); -}; - diff --git a/TAO/examples/Simulator/README b/TAO/examples/Simulator/README deleted file mode 100644 index eaa65807e63..00000000000 --- a/TAO/examples/Simulator/README +++ /dev/null @@ -1,255 +0,0 @@ -$Id$ - -Documentation for the Simulator/DOVE demo - -Purposes: 1) To show how the event service can be used to as a medium to - transport monitoring events including data. - 2) To show how objects implemented in Java can access/can be accessed - by TAO objects. - 3) To show the feasability of the DOVE framework as mentioned in - http://www.cs.wustl.edu/~schmidt/dove.html and - http://www.cs.wustl.edu/~schmidt/DOVE_and_LifeCycleService.ps.gz - 4) To serve as a visual demonstration tool for scheduling and event - service configurations and applications. - -Application: Using the Event Service as distribution media, event - consumers and event suppliers are needed. The central - element in the Event Service is a so called, event channel. - The event channel transports events from suppliers to - consumers. Filtering can be activated. - The mapping to DOVE is the following: - Event Channel - DOVE Agent - DOVE Browser - and/or DOVE MIB - Monitor/Event Consumer - Event Supplier - Monitored Application (here - an object supplying recorded scheduling - and dummy information) - Logging Supplier - Monitored Application (here an object supplying - creation times and updating a flag to record - actual EC arrival and dispatching times in - the scheduling information data structure - viewed by the browser) - Dual EC Supplier - Monitored Application (here an object supplying - separate Navigation and Weapons data sets - in separate generating threads, which use - separate push - viewed by the browser) - -Implementation: - The events contain structs with avionics information. - They are generated by the monitored application and are - consumed by the DOVE Browser, a JAVA applet or application running - on a different machine and/or location. The collected metrics are - displayed in the Browser. - - When an event arrives from the event supplier, a consumer inspects - the data field in the event. The field is a CORBA::Any, so - no assumptions can be made about the kind of data in the event. - - A C++ Supplier pushes events containing a - navigation or weapons struct to the Event Service. - The latency and other machine metrics are read from - a file, which contains recorded scheduling information. - The Event Service dispatches the events to any number of - DOVE Browsers/MIBs which are implemented using JAVA/C++. - The DOVE Browser extracts the data of the structs and dispatches - it to various Visualization Components. - - -For more information refer to: - $TAO_ROOT/docs/releasenotes/index.html - - -Requirements: - * C++ compiler - * ACE/TAO environment, - * Visibroker 3.2+ for Java - -!!RELEASE CHANGES: - - the file make.bat has been expanded for use on NT - - - the file ss has been moved one level up and it got - renamed to "start_services". So use it to start the - naming and event service. - - - it is no longer required to start the scheduling service - - - the file make.bat has been expanded and refined for use on NT - The following make targets are defined: - make clean - removes all class files and idl generated java files - make realclean - updates idl files, does a make clean - make vb - makes the browser, using visibroker for java - make vbjava - remakes only the java files using vbjc - make jdk - makes the browser, using jdk - (the demo does not currently work with jdk) - -Parts of the Demo: - - * DOVE Browser (implemented in Java using Visibroker 3.2/3.3 for Java) - - * Event Supplier, can be seen as a monitored object, called - DOVE Application (implemented in C++ using TAO) - - * Logging Supplier, can be seen as a monitored object, called - DOVE Application (implemented in C++ using TAO) - rather than - providing canned simulation data, allows the actual EC arrival and - dispatching information to be recorded in the scheduling data - - * Dual EC Supplier, can be seen as a monitored object, called - DOVE Application (implemented in C++ using TAO) - provides a paired - event and scheduling services for control over event prioritization. - - * DOVE MIB, storing event data on persistent storage and keeping - track of statistical data (implemented in C++ using TAO) - -Files: - Common: - NavWeap.idl - IDL definition of the Weapons and Navigation structures - README - this readme file - - Event Supplier: - (in directory $TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier/) - DualEC_Sup.cpp - Dual EC Event Supplier - DualEC_Sup.h - Dual EC Event Supplier class definitions - Event_Sup.cpp - Event Supplier - Event_Sup.h - Event Supplier class definition - Logging_Sup.cpp - Event Supplier for EC logging - Logging_Sup.h - Event Supplier for EC logging class definition - Makefile - Event Supplier Makefile - (Event_Con.cpp, Event_Con.h - Event Consumer for testing) - svc.conf - helper file - - DOVEBrowswer: - (in directory $TAO_ROOT/orbsvcs/tests/Simulator/DOVEBrowser/) - AnswerEvent.java - Having my own Events - AnswerListener.java - Listener for these Events - DataHandler.java - Base class for all Data Handlers - DemoCore.java - Core of the Demo to connect Observables - with Observers - DemoObservable.java - Base class for Observables - DoubleVisComp.java - Visualization Component - (will be a JavaBean) for Doubles - DOVEBrowser.java - Wrapper around DemoCore - DOVEBrowserApplet.java - Applet wrapper around DemoCore - MTQueue.java - synchronized queue for multi-threaded access - MTDataHandlerAdapter.java - uses the Adapter and Active Object - patterns to provide early demuxing - of ORB upcalls onto multiple - synchronized queues managed by - data handler threads - NS_Resolve.java - Resolving the inital reference - to the Naming Service - NavWeapDataHandler.java - Specialized Data Handler for - Navigation and Weapons data - NavigationVisComp.java - Visualization Component - (... JavaBean) for Navigation data - ObservablesDialog.java - Dialog window for connecting - Observables with OBservers - Properties.java - constant definitons - PushConsumer.java - Event Service Push Consumer - PushConsumerFactory.java - Factory for the Consumer - Queue.java - Queue for the DoubleVisComp - VisComp.java - Base class for the Visualization Components - WeaponsVisComp.java - Visualization Component for Weapons - - - DOVE MIB: - (in directory $TAO_ROOT/orbsvcs/tests/Simulator/DOVEMIB/) - DOVEMIB.[cpp,h] - Core routines, connection to the - Event Channel - Node.[cpp,h] - Nodes used by the AnyAnalyser - AnyAnalyser.[cpp,h] - Anaylser for CORBA anys, storing the - contained types in persistent storage - NodeVisitor.h - base class definition of a Visitor - PrintVisistor.[cpp,h] - Able to print a given tree - of type nodes, which is - generated by the Any analyser - - -Compiling: - Common: - Be sure that you have _not_ built with - TAO_LACKS_EVENT_CHANNEL_ANY enabled. - - And, be sure that the following are built: - - "compile $TAO_ROOT/orbsvcs/orbsvcs" - "compile $TAO_ROOT/orbsvcs/Event_Service" - "compile $TAO_ROOT/orbsvcs/Naming_Service" - "compile $TAO_ROOT/orbsvcs/Scheduling_Service" - - UNIX platforms: - - Then, just run "make" in top level Simulator - directory. The DOVEBrowser requires VisiJava's - idl2java and vbjc. If they are not on your PATH, - or in the default location specified in - DOVEBrowser/Makefile, you'll have to specify the - location in the "make" invocation. For example: - - make VISIJAVA_BIN=/usr/local/VisiJava-3.2 - - NT: - Open the Event_Sup.dsw workspace found in the - Event_Supplier directory in MSVC++ 5.0+ and build - the Event_Sup, Logging_Sup, and DualEC_Sup projects. - - From a console window, change to the DOVEBrowser - directory and run "make vb" to build the browser using - Visibroker. The first time you do this, you will need to - run "make setup" to copy the correct files into the directory. - You may also want to do a "make realclean" each time you - rebuild in case there were changes to IDL files. - -Starting: - - Start in the following order on different ORB ports: - * Naming Service - * Event Service - - You can use "start_services" on Unix machines. The - script is located in $TAO_ROOT/orbsvcs/tests. - - Event Supplier (simulation data): - Event_Sup -f MLF.dat -m 1000 - - // -m 1000 for 1000 events sent by the supplier - // -f MLF.dat to read scheduling data from this file as input - - - Logging Supplier (live latency and latency jitter data): - Logging_Sup -f MLF.dat -m 1000 - - // -m 1000 for 1000 events sent by the supplier - // -f MLF.dat to read operation names from this file as input - - - Dual EC Supplier (live latency and jitter data over two channels): - DualEC_Sup -f MLF.dat -m 1000 - - // -m 1000 for 1000 events sent by the supplier - // -f MLF.dat to read operation names from this file as input - - DOVE Browser: - vbj DOVEBrowser - (also supported: vbj DOVEBrowser -ORBnameserviceior <IOR> - vbj DOVEBrowser -ORBnameserviceport <port> - vbj DOVEBrowser -dualECdemo) - - or - - gatekeeper - cd /visigenic/vbroker/lib - jar xf vbjorb.jar - jar xf vbjtools.jar - "setting the Naming Service IOR in the DOVEBrowser.html file" - appletviewer DOVEBrowser.html - - - - DOVE MIB: - DOVEMIB -f myfile -m 100 - - // -m 100 for storing the next 100 events - // -f <name of the file in which it will be stored> - |