summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simulator')
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/AnswerEvent.java23
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/AnswerListener.java18
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html31
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java47
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java47
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DataHandler.java34
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DemoCore.java153
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DemoObservable.java19
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java206
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java112
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java220
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/NavigationVisComp.java350
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/ObservablesDialog.java90
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/Properties.java22
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/PushConsumer.java198
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java177
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/Queue.java190
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/VisComp.java19
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/VisCompFactory.java48
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/WeaponsVisComp.java144
-rw-r--r--TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp203
-rw-r--r--TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h57
-rw-r--r--TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp381
-rw-r--r--TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp143
-rw-r--r--TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw53
-rw-r--r--TAO/examples/Simulator/DOVEMIB/DOVEMIB.h62
-rw-r--r--TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp177
-rw-r--r--TAO/examples/Simulator/DOVEMIB/Makefile979
-rw-r--r--TAO/examples/Simulator/DOVEMIB/Node.cpp217
-rw-r--r--TAO/examples/Simulator/DOVEMIB/Node.h185
-rw-r--r--TAO/examples/Simulator/DOVEMIB/NodeVisitor.h39
-rw-r--r--TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp128
-rw-r--r--TAO/examples/Simulator/DOVEMIB/PrintVisitor.h45
-rw-r--r--TAO/examples/Simulator/DOVEMIB/TestClient.dsp167
-rw-r--r--TAO/examples/Simulator/DOVEMIB/any_test.idl11
-rw-r--r--TAO/examples/Simulator/DOVEMIB/any_test_i.cpp63
-rw-r--r--TAO/examples/Simulator/DOVEMIB/any_test_i.h42
-rw-r--r--TAO/examples/Simulator/DOVEMIB/clnt.cpp183
-rw-r--r--TAO/examples/Simulator/DOVEMIB/clnt.h62
-rw-r--r--TAO/examples/Simulator/DOVEMIB/svc.conf49
-rw-r--r--TAO/examples/Simulator/DOVEMIB/svr.cpp166
-rw-r--r--TAO/examples/Simulator/Event_Supplier/EDF.dat72
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Con.cpp375
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Con.h66
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp728
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp132
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw29
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Sup.h134
-rw-r--r--TAO/examples/Simulator/Event_Supplier/MLF.dat72
-rw-r--r--TAO/examples/Simulator/Event_Supplier/MUF.dat72
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Makefile70
-rw-r--r--TAO/examples/Simulator/Event_Supplier/RMS.dat72
-rw-r--r--TAO/examples/Simulator/Event_Supplier/RMS_Dyn.dat72
-rw-r--r--TAO/examples/Simulator/Event_Supplier/svc.conf49
-rw-r--r--TAO/examples/Simulator/NavWeap.idl54
-rw-r--r--TAO/examples/Simulator/README171
-rw-r--r--TAO/examples/Simulator/Sim_Display/Border_Panel.java57
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display.java92
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Art_Horizon.java377
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Client.java116
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Consumer.java172
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Object.java8
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java42
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Push_Consumer.java248
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Weapons.java123
-rw-r--r--TAO/examples/Simulator/Sim_Display/Graph.java163
-rw-r--r--TAO/examples/Simulator/Sim_Display/Graph_Panel.java181
-rw-r--r--TAO/examples/Simulator/Sim_Display/NS_Resolve.java112
-rw-r--r--TAO/examples/Simulator/Sim_Display/Queue.java190
-rw-r--r--TAO/examples/Simulator/Sim_Display/Sim_Panel.java64
-rwxr-xr-xTAO/examples/Simulator/ss85
71 files changed, 0 insertions, 9758 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 c7410019908..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.html
+++ /dev/null
@@ -1,31 +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: The gatekeeper must run in the DOVEBrowser directory!
-Note: The IORs are different for each machine!
-
-
-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
-<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=org.omg.CORBA.ORBClass value=com.visigenic.vbroker.orb.ORB>
-<PARAM NAME="NSIOR" VALUE="IOR:000000000000002049444c3a436f734e616d696e672f4e616d696e67436f6e746578743a312e3000000000010000000000000042000100000000000674616e676f00953f0000002e5033353266383364653030306364306437526f6f74504f412f6368696c645f706f612f4e616d6553657276696365">
-</APPLET>
-
-</BODY>
-</HTML>
diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java
deleted file mode 100644
index fc653f45c1d..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java
+++ /dev/null
@@ -1,47 +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) {
-
- demoCore_ = new DemoCore (nameServiceIOR, null);
- demoCore_.show ();
- demoCore_.run ();
- }
-
- public static void main (String[] args) {
- String nameServiceIOR = null;
-
- if (args.length == 2) {
- if (args[0] == "-ORBnameserviceior") {
- nameServiceIOR = args[1];
- }
- }
-
- DOVEBrowser doveBrowser = new DOVEBrowser();
- doveBrowser.init (nameServiceIOR);
- }
-}
-
-
-
diff --git a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java b/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java
deleted file mode 100644
index 622ceb0536e..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/DOVEBrowserApplet.java
+++ /dev/null
@@ -1,47 +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_, this);
- 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 a2a88771b4a..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 into the data handler
- public void update (Any any_value);
-
- // 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 376a0fb6c98..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/DemoCore.java
+++ /dev/null
@@ -1,153 +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_;
-
- DemoCore (String nameServiceIOR, java.applet.Applet applet) {
- super ();
-
- 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, 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 ();
-
- // in here the factory is needed
- addConnection ("Cpu_UsageObservable");
- }
-
- 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 5d636641beb..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/DoubleVisComp.java
+++ /dev/null
@@ -1,206 +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 float local_max_ = 0;
- private boolean max_increased_ = false;
-
- public DoubleVisComp()
- {
- super();
-
- plot_ = new Queue();
- spacing_ = MIN_SPACING;
- title_ = "";
- max_value_ = 1;
- // max_value_ = max_value;
- 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 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;
-
- 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;
- }
-
- 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 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/NS_Resolve.java b/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java
deleted file mode 100644
index b6a39e63dec..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/NS_Resolve.java
+++ /dev/null
@@ -1,112 +0,0 @@
-// $Id$
-// ============================================================================
-//
-//
-// = FILENAME
-// NS_Resolve.java
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// = 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 int MULTICAST_SEND_PORT = 10060;
- private static final int MULTICAST_RECEIVE_PORT = 10061;
- private static final int TAO_SERVICEID_NAMESERVICE = 0;
- private static final int TAO_SERVICEID_TRADINGSERVICE = 1;
-
- org.omg.CORBA.Object name_service_;
-
-
- public org.omg.CORBA.Object resolve_name_service (org.omg.CORBA.ORB orb)
- {
- try
- {
- // Create a message with the multicast receive port in it
- ByteArrayOutputStream byte_stream_ = new ByteArrayOutputStream ();
- byte_stream_.write ((int)((MULTICAST_RECEIVE_PORT&0xff00)>>>8));
- byte_stream_.write ((int)(MULTICAST_RECEIVE_PORT&0x00ff));
- byte_stream_.write ((int)((TAO_SERVICEID_NAMESERVICE&0xff00)>>>8));
- byte_stream_.write ((int)(TAO_SERVICEID_NAMESERVICE&0x00ff));
- byte[] msg = byte_stream_.toByteArray();
-
-
- // Define the group for the multicast
-
- InetAddress group = InetAddress.getByName(ACE_DEFAULT_MULTICAST_ADDR);
- // Create the multicast socket at any port you want
- MulticastSocket multicastsocket_ = new MulticastSocket(MULTICAST_SEND_PORT);
- // Create a socket for the answer of the Naming Service
- DatagramSocket socket_ = new DatagramSocket (MULTICAST_RECEIVE_PORT);
- // Give three seconds time for the Naming Service to respond
- socket_.setSoTimeout (3000);
- // Build a packet with the port number in it
- DatagramPacket hello = new DatagramPacket(msg, msg.length,
- group, TAO_DEFAULT_NAME_SERVER_REQUEST_PORT);
-
- // Send the packet
- multicastsocket_.send (hello);
-
- // @@ The restriction right now is that the length of the IOR cannot be longer than 4096
- byte[] buf = new byte[4096];
- // Set up packet which can be received
- DatagramPacket recv = new DatagramPacket (buf, buf.length);
- // Receive a packet or time out
- socket_.receive (recv);
-
- // Determine the length of the IOR
- int length;
- for (length = 0; buf[length] != 0; length++);
-
- // Store the IOR in a String
- String name_service_ior_ = new String (recv.getData (),0,length);
-
- // Convert the String into
- return orb.string_to_object (name_service_ior_);
- }
- 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 e72155cab3d..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/NavWeapDataHandler.java
+++ /dev/null
@@ -1,220 +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 last_latency = 0.0;
-
- public int getProperty () {
- return Properties.DOUBLE;
- }
-
- public void updateJitter (int completion_time,
- int computation_time,
- int arrival_time ) {
- last_latency = latency;
- latency = (double)(completion_time
- - computation_time
- - arrival_time);
- latency = latency > 0 ? latency : 0;
- double jitter_ = (double)Math.abs(latency - last_latency);
-
- setChanged ();
- Double temp_ = new Double (jitter_);
- notifyObservers (temp_);
- }
- }
- class DeadlinesObservable extends DemoObservable {
-
- public int getProperty () {
- return Properties.DOUBLE;
- }
-
- public void updateDeadlines (int deadline_time,
- int completion_time) {
- double missed_ = (double) ((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 (int completion_time,
- int computation_time,
- int arrival_time ) {
- last_latency = latency;
- latency = (double)(completion_time
- - computation_time
- - arrival_time);
- latency = latency > 0 ? latency : 0;
-
- setChanged ();
- Double temp_ = new Double(latency);
- notifyObservers (temp_);
- }
- }
-
-
- public void update (Any any_value) {
-
- if (any_value.type().equal (NavigationHelper.type()))
- {
- Navigation navigation_ = NavigationHelper.extract (any_value);
- NavigationObservable nobs = (NavigationObservable)ObservablesTable.get ("NavigationObservable");
- nobs.updateNavigation (navigation_);
- Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("Cpu_UsageObservable");
- cobs.updateCpu_Usage (navigation_.utilization);
- OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("OverheadObservable");
- oobs.updateOverhead (navigation_.overhead);
- JitterObservable jobs = (JitterObservable)ObservablesTable.get ("JitterObservable");
- jobs.updateJitter (navigation_.completion_time,
- navigation_.computation_time,
- navigation_.arrival_time);
- DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("DeadlinesObservable");
- dobs.updateDeadlines (navigation_.deadline_time,
- navigation_.completion_time);
- LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("LatencyObservable");
- lobs.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);
- WeaponsObservable wobs = (WeaponsObservable)ObservablesTable.get ("WeaponsObservable");;
- wobs.updateWeapons (weapons_);
- Cpu_UsageObservable cobs = (Cpu_UsageObservable)ObservablesTable.get ("Cpu_UsageObservable");
- cobs.updateCpu_Usage (weapons_.utilization);
- OverheadObservable oobs = (OverheadObservable)ObservablesTable.get ("OverheadObservable");
- oobs.updateOverhead (weapons_.overhead);
- JitterObservable jobs = (JitterObservable)ObservablesTable.get ("JitterObservable");
- jobs.updateJitter (weapons_.completion_time,
- weapons_.computation_time,
- weapons_.arrival_time);
- DeadlinesObservable dobs = (DeadlinesObservable)ObservablesTable.get ("DeadlinesObservable");
- dobs.updateDeadlines (weapons_.deadline_time,
- weapons_.completion_time);
- LatencyObservable lobs = (LatencyObservable)ObservablesTable.get ("LatencyObservable");
- lobs.updateLatency (weapons_.completion_time,
- weapons_.computation_time,
- weapons_.arrival_time);
- received_events_++;
- }
- else
- System.out.println ("Received wrong type information"+any_value.type());
- }
-
- NavWeapDataHandler () {
- ObservablesTable = new java.util.Hashtable();
-
- ObservablesTable.put ("NavigationObservable", new NavigationObservable());
- ObservablesTable.put ("WeaponsObservable", new WeaponsObservable());
- ObservablesTable.put ("Cpu_UsageObservable", new Cpu_UsageObservable());
- ObservablesTable.put ("OverheadObservable", new OverheadObservable());
- ObservablesTable.put ("JitterObservable", new JitterObservable());
- ObservablesTable.put ("DeadlinesObservable", new DeadlinesObservable());
- ObservablesTable.put ("LatencyObservable", 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 17ff69e5a18..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/Properties.java
+++ /dev/null
@@ -1,22 +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. Several observables
-// are created to feed observer Java Beans.
-//
-// ============================================================================
-
-
-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 d808027b9de..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/PushConsumer.java
+++ /dev/null
@@ -1,198 +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 DataHandler dataHandler_;
- 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)
- {
- 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_ = new RtecScheduler.handle_tHolder (scheduler_.create (name));
-
- scheduler_.set (rt_info_.value,
- 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 disjunction_designator_ =
- new RtecEventComm.Event (ACE_ES_DISJUNCTION_DESIGNATOR, 0,
- 1, // ttl
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new RtecEventComm.EventData (0, 0, orb_.create_any())
- );
- 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 (0, 0, orb_.create_any())
- );
- RtecEventComm.Event shutdown_event_ =
- new RtecEventComm.Event (ACE_ES_EVENT_SHUTDOWN, 0,
- 1, // ttl
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new RtecEventComm.EventData (0, 0, orb_.create_any())
- );
-
-
- RtecEventChannelAdmin.Dependency dependencies_[] = new RtecEventChannelAdmin.Dependency[3];
- dependencies_[0] = new RtecEventChannelAdmin.Dependency (disjunction_designator_, rt_info_.value);
- dependencies_[1] = new RtecEventChannelAdmin.Dependency (notification_event_, rt_info_.value);
- dependencies_[2] = new RtecEventChannelAdmin.Dependency (shutdown_event_, rt_info_.value);
-
-
-
- RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies_);
-
-
- // 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 (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 7fcf2326fa2..00000000000
--- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java
+++ /dev/null
@@ -1,177 +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_;
-
-
- public PushConsumerFactory (DataHandler dataHandler, String nameServiceIOR, 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 ();
- }
- 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 ();
- 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
-
- boa_.obj_is_ready (pushConsumer_);
-
- 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/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/DOVEMIB/AnyAnalyser.cpp b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp
deleted file mode 100644
index 6fef04c21fc..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.cpp
+++ /dev/null
@@ -1,203 +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"
-#include "tao/Align.h"
-
-AnyAnalyser::AnyAnalyser (const char *file_name)
- : printVisitor_ptr_(new PrintVisitor (file_name)) {
-}
-
-AnyAnalyser::~AnyAnalyser () {
- delete printVisitor_ptr_;
-}
-
-void
-AnyAnalyser::close () {
- printVisitor_ptr_->close();
-}
-
-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 size, alignment, align_offset;
- CORBA::TypeCode_ptr param;
- const unsigned char *start_addr = value_ptr;
-
- TAO_TRY {
- Node *node_ptr_ = 0;
-
- if (tc_ptr != 0) {
-
- switch (tc_ptr->kind(TAO_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 (TAO_TRY_ENV),
- ri.recursion_level);
-
- for (unsigned int i = 0; i < tc_ptr->member_count (TAO_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, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // get the size
- size = param->size (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // get the alignment
- alignment = param->alignment (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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;
- TAO_CHECK_ENV;
-
- // 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,
- TAO_TRY_ENV),
- ri.recursion_level);
- }
- else {
- node_ptr_ = (Node *) new DoubleNode ((CORBA::Double *)value_ptr,
- tc_ptr->name(TAO_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,
- TAO_TRY_ENV),
- ri.recursion_level);
- }
- else {
- node_ptr_ = (Node *) new LongNode ((CORBA::Long *)value_ptr,
- tc_ptr->name(TAO_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,
- TAO_TRY_ENV),
- ri.recursion_level);
- }
- else {
- node_ptr_ = (Node *) new ULongNode ((CORBA::ULong *)value_ptr,
- tc_ptr->name(TAO_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,
- TAO_TRY_ENV),
- ri.recursion_level);
- }
- else {
- node_ptr_ = (Node *) new StringNode (*(CORBA::String_var *)value_ptr,
- tc_ptr->name(TAO_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;
- }
- TAO_CHECK_ENV;
- return node_ptr_;
- }
- else {
- ACE_DEBUG ((LM_ERROR, "AnyAnalyser::analyse: TypeCode pointer to member was Null!\n"));
- }
- }
- TAO_CATCHANY {
- ACE_ERROR ((LM_ERROR, "(%t)AnyAnalyser::analyse: Error in analysing the any.\n"));
- }
- TAO_ENDTRY;
- return 0;
-}
-
-
diff --git a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h b/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h
deleted file mode 100644
index eeb0613c661..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/AnyAnalyser.h
+++ /dev/null
@@ -1,57 +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"
-
-#if !defined (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);
-
-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 cab75b1171d..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.cpp
+++ /dev/null
@@ -1,381 +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 "tao/Timeprobe.h"
-#include "orbsvcs/Event_Utilities.h"
-#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Scheduler_Factory.h"
-#include "DOVEMIB.h"
-
-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) {
- TAO_TRY {
- // Get a Scheduler.
-
- RtecScheduler::Scheduler_ptr server =
- ACE_Scheduler_Factory::server ();
-
- // Define Real-time information.
-
- rt_info_ = server->create (my_name, TAO_TRY_ENV);
-
- scheduler_->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,
- TAO_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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Obtain a pointer to a push supplier. "suppliers" is
- // inherited from a base class.
-
- this->suppliers_ = consumer_admin_->obtain_push_supplier (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->suppliers_->connect_push_consumer (objref.in (),
- dependencies.get_ConsumerQOS (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se) {
- ACE_ERROR_RETURN ((LM_ERROR,
- "MIB_Consumer::open: subscribe failed.\n"),
- -1);
- }
- TAO_CATCHANY {
- ACE_ERROR_RETURN ((LM_ERROR,
- "MIB_Consumer::open: unexpected exception.\n"),
- -1);
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-void
-MIB_Consumer::disconnect_push_consumer (CORBA::Environment &)
-{
- 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 &)
-{
-
- 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].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"));
- }
-
- TAO_TRY {
- anyAnalyser_.printAny (events[i].data_.any_value.type(), events[i].data_.any_value.value());
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY {
- ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n"));
- }
- TAO_ENDTRY;
- }
- }
-}
-
-void
-MIB_Consumer::shutdown (void)
-{
- TAO_TRY
- {
- // cause the AnyAnalyser to close the file
- anyAnalyser_.close();
-
- // Disconnect from the push supplier.
- this->suppliers_->disconnect_push_supplier (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n"));
- TAO_CHECK_ENV;
-
- ec = 0;
-
- TAO_ORB_Core_instance ()->orb ()->shutdown ();
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- "(%t) MIB_Consumer::shutdown: unexpected exception.\n"));
- }
- TAO_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 [])
-{
- TAO_TRY
- {
- // Initialize ORB.
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- ec =
- RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Run the ORB
-
- if (orb->run () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "CORBA::ORB::run"),
- -1);
- TAO_CHECK_ENV;
-
- ec = 0;
-
- root_poa->destroy (CORBA::B_TRUE,
- CORBA::B_TRUE,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp b/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp
deleted file mode 100644
index 40b633b3b3c..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsp
+++ /dev/null
@@ -1,143 +0,0 @@
-# Microsoft Developer Studio Project File - Name="DOVEMIB" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.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 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 /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 /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /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 TAO.lib orbsvcs.lib /nologo /subsystem:console /pdb:"DOVEMIB.pdb" /debug /machine:I386 /out:"DOVEMIB.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\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=.\NavWeap.idl
-
-!IF "$(CFG)" == "DOVEMIB - Win32 Release"
-
-!ELSEIF "$(CFG)" == "DOVEMIB - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- ..\..\..\..\tao_idl\tao_idl $(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=.\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 92002d82e84..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.dsw
+++ /dev/null
@@ -1,53 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 5.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 8730e2d56d0..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/DOVEMIB.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// $Id$
-// ============================================================================
-//
-// = FILENAME
-// DOVEMIB.h
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// ============================================================================
-
-#if !defined (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 &);
- // 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_;
- 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 6ad38a8cef7..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/DOVEMIBx.dsp
+++ /dev/null
@@ -1,177 +0,0 @@
-# Microsoft Developer Studio Project File - Name="DOVEMIBx" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.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 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 /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /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 TAO.lib orbsvcs.lib /nologo /subsystem:console /pdb:"DOVEMIBx.pdb" /debug /machine:I386 /out:"DOVEMIBx.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\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= \
- ..\..\..\..\tao_idl\tao_idl $(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= \
- ..\..\..\..\tao_idl\tao_idl $(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=.\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 acb8a465502..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/Makefile
+++ /dev/null
@@ -1,979 +0,0 @@
-#----------------------------------------------------------------------------
-#
-# $Id$
-#
-# Top-level Makefile for the ACE-ified Sun Ref. implementation
-# of IIOP ORB
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-ifndef TAO_ROOT
- TAO_ROOT = $(ACE_ROOT)/TAO
-endif # ! TAO_ROOT
-
-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
-
-
-BIN = DOVEMIB
-BUILD = $(BIN)
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-VBIN = $(BIN:%=%$(VAR))
-
-LDLIBS= -lorbsvcs -lTAO
-
-#----------------------------------------------------------------------------
-# 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.local.GNU
-include $(TAO_ROOT)/taoconfig.mk
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-DCFLAGS = -g
-LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
-CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H
-
-$(IDL_SRC): NavWeap.idl
- $(TAO_ROOT)/TAO_IDL/tao_idl NavWeap.idl
-
-DOVEMIB: $(addprefix $(VDIR),$(MIB_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS)
-
-
-realclean: clean
- -/bin/rm -rf
-
-# 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)/tao/corba.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.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/Version.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.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/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(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/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/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/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/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \
- $(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/Message_Block.i \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(TAO_ROOT)/tao/compat/objbase.h \
- $(TAO_ROOT)/tao/compat/initguid.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(TAO_ROOT)/tao/Align.h \
- $(TAO_ROOT)/tao/ORB.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/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/params.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_server.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Stub.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/POAS.h \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Object_Table.h \
- $(TAO_ROOT)/tao/Connect.h \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/debug.h \
- $(TAO_ROOT)/tao/IIOP_Object.h \
- $(TAO_ROOT)/tao/IIOP_ORB.h \
- $(TAO_ROOT)/tao/IIOP_Interpreter.h \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/IIOP_ORB.i \
- $(TAO_ROOT)/tao/IIOP_Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/default_client.i \
- $(TAO_ROOT)/tao/default_server.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/singletons.h NavWeapC.i \
- NavWeapS.h NavWeapS.i
-.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/config.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/Log_Priority.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Version.h \
- $(ACE_ROOT)/ace/ACE.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)/tao/Timeprobe.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 \
- $(TAO_ROOT)/tao/Timeprobe.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Event_Utilities.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventChannelAdminC.h \
- $(TAO_ROOT)/tao/corba.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/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/SOCK_Acceptor.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/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/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/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/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \
- $(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/Message_Block.i \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(TAO_ROOT)/tao/compat/objbase.h \
- $(TAO_ROOT)/tao/compat/initguid.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(TAO_ROOT)/tao/Align.h \
- $(TAO_ROOT)/tao/ORB.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/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/params.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_server.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Stub.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/POAS.h \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Object_Table.h \
- $(TAO_ROOT)/tao/Connect.h \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/debug.h \
- $(TAO_ROOT)/tao/IIOP_Object.h \
- $(TAO_ROOT)/tao/IIOP_ORB.h \
- $(TAO_ROOT)/tao/IIOP_Interpreter.h \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/IIOP_ORB.i \
- $(TAO_ROOT)/tao/IIOP_Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/default_client.i \
- $(TAO_ROOT)/tao/default_server.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/RtecEventCommC.h \
- $(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/CosTimeBaseS.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseS.i \
- $(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/config.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/Version.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.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/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(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/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/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/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/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \
- $(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/Message_Block.i \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(TAO_ROOT)/tao/compat/objbase.h \
- $(TAO_ROOT)/tao/compat/initguid.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(TAO_ROOT)/tao/Align.h \
- $(TAO_ROOT)/tao/ORB.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/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/params.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_server.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Stub.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/POAS.h \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Object_Table.h \
- $(TAO_ROOT)/tao/Connect.h \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/debug.h \
- $(TAO_ROOT)/tao/IIOP_Object.h \
- $(TAO_ROOT)/tao/IIOP_ORB.h \
- $(TAO_ROOT)/tao/IIOP_Interpreter.h \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/IIOP_ORB.i \
- $(TAO_ROOT)/tao/IIOP_Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/default_client.i \
- $(TAO_ROOT)/tao/default_server.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/singletons.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/config.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/Version.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.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/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(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/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/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/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/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \
- $(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/Message_Block.i \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(TAO_ROOT)/tao/compat/objbase.h \
- $(TAO_ROOT)/tao/compat/initguid.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(TAO_ROOT)/tao/Align.h \
- $(TAO_ROOT)/tao/ORB.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/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/params.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_server.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Stub.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/POAS.h \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Object_Table.h \
- $(TAO_ROOT)/tao/Connect.h \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/debug.h \
- $(TAO_ROOT)/tao/IIOP_Object.h \
- $(TAO_ROOT)/tao/IIOP_ORB.h \
- $(TAO_ROOT)/tao/IIOP_Interpreter.h \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/IIOP_ORB.i \
- $(TAO_ROOT)/tao/IIOP_Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/default_client.i \
- $(TAO_ROOT)/tao/default_server.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/singletons.h NodeVisitor.h \
- Node.h
-.obj/AnyAnalyser.o .obj/AnyAnalyser.so .shobj/AnyAnalyser.o .shobj/AnyAnalyser.so: AnyAnalyser.cpp AnyAnalyser.h PrintVisitor.h \
- $(TAO_ROOT)/tao/corba.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.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/Version.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.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/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(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/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/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/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/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.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/Malloc_T.i \
- $(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/Message_Block.i \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(TAO_ROOT)/tao/compat/objbase.h \
- $(TAO_ROOT)/tao/compat/initguid.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(TAO_ROOT)/tao/Align.h \
- $(TAO_ROOT)/tao/ORB.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/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/params.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_server.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.h \
- $(TAO_ROOT)/tao/ORB_Strategies_T.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Stub.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/POAS.h \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Object_Table.h \
- $(TAO_ROOT)/tao/Connect.h \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/debug.h \
- $(TAO_ROOT)/tao/IIOP_Object.h \
- $(TAO_ROOT)/tao/IIOP_ORB.h \
- $(TAO_ROOT)/tao/IIOP_Interpreter.h \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/IIOP_ORB.i \
- $(TAO_ROOT)/tao/IIOP_Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/default_client.i \
- $(TAO_ROOT)/tao/default_server.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/singletons.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 2db05ddf555..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/Node.cpp
+++ /dev/null
@@ -1,217 +0,0 @@
-// $Id$
-// ============================================================================
-//
-// = LIBRARY
-//
-// = FILENAME
-// any_test_i.cpp
-//
-// = AUTHOR
-// Michael Kircher
-//
-// = DESCRIPTION
-// Implementation of the Nodes for the any evaluator.
-//
-// ============================================================================
-
-#include "Node.h"
-
-
-
-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_;
-}
-
-
-
-
-
-
-
-
diff --git a/TAO/examples/Simulator/DOVEMIB/Node.h b/TAO/examples/Simulator/DOVEMIB/Node.h
deleted file mode 100644
index d8029a4fa5e..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/Node.h
+++ /dev/null
@@ -1,185 +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"
-#include "NodeVisitor.h"
-
-#if !defined (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 d19e065ae2c..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.
-//
-// ============================================================================
-
-#if !defined (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 652e5e239a3..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.cpp
+++ /dev/null
@@ -1,128 +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>
-
-
-PrintVisitor::PrintVisitor (const char *file_name) {
-
- TAO_TRY {
- if (file_name != 0) {
- output_ = ACE_OS::fopen(file_name, "w");
- TAO_CHECK_ENV;
-
- // 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"));
-
- }
-
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "Failing when trying to open the output file.\n"));
- }
- TAO_ENDTRY;
-}
-
-
-PrintVisitor::~PrintVisitor () {
- this->close ();
-}
-
-void
-PrintVisitor::close () {
- if (output_ != stdout && output_ != 0) {
- ACE_OS::fclose (output_);
- }
-}
-
-
-// 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 54ad1d4301b..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/PrintVisitor.h
+++ /dev/null
@@ -1,45 +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"
-
-#if !defined (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);
- ~PrintVisitor ();
-
- 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);
-
- 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 7d412b2290b..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/TestClient.dsp
+++ /dev/null
@@ -1,167 +0,0 @@
-# Microsoft Developer Studio Project File - Name="TestClient" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.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 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 /W3 /Gm /GX /Zi /Od /I "..\..\..\..\..\\" /I "..\..\..\..\\" /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 TAO.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /out:"TestClient.exe" /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\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= \
- ..\..\..\..\tao_idl\tao_idl $(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= \
- ..\..\..\..\tao_idl\tao_idl $(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
-# 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 a92950b03af..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp
+++ /dev/null
@@ -1,63 +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"
-
-
-// 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)
-{
- TAO_TRY
- {
- ACE_DEBUG ((LM_DEBUG, "Call to try_an_any succeeded!\n"));
-
- AnyAnalyser anyAnalyser_ = AnyAnalyser ("stdout");
-
- TAO_CHECK_ENV;
- Weapons *weapons_ = 0;
- if (a.type()->equal(_tc_Weapons,TAO_TRY_ENV)) {
-
- CORBA::Any b;
- b = a;
- weapons_ = (Weapons *)b.value();
- cout << "ID: " << a.type()->id(TAO_TRY_ENV) << endl;
- cout << "CompTime: " << weapons_->computation_time << endl;
- cout << "Adr number of weapons: " << &(weapons_->number_of_weapons) << endl;
- cout << "Adr CompTime: " << &(weapons_->computation_time) << endl;
- }
-
- anyAnalyser_.printAny (a.type(), a.value());
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the data.\n"));
- }
- TAO_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 eb877ef23c5..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
-//
-// ============================================================================
-
-#if !defined (_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 b5e63462ec0..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"
-
-
-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 [])
-{
-
- TAO_TRY {
- this->argc_ = argc;
- this->argv_ = argv;
-
- // Retrieve the ORB.
- this->orb_ = CORBA::ORB_init (this->argc_,
- this->argv_,
- "internet",
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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], TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->any_test_ptr_ = Any_Test::_narrow (any_test_object_.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (CORBA::is_nil (this->any_test_ptr_))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Invalid IOR specified.\n"),
- -1);
- }
- return 0;
- }
- TAO_CATCHANY {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- return 0;
- }
- TAO_ENDTRY;
- return 0;
-}
-
-int
-Any_Test_Client::run ()
-{
- TAO_TRY
- {
- 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_, CORBA::B_FALSE, TAO_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, "A");
- weapons_.weapon1_status = 1;
- weapons_.weapon2_identifier = CORBA::string_alloc (20);
- strcpy (weapons_.weapon2_identifier, "B");
- weapons_.weapon2_status = 2;
- weapons_.weapon3_identifier = CORBA::string_alloc (20);
- strcpy (weapons_.weapon3_identifier, "C");
- weapons_.weapon3_status = 4;
- weapons_.weapon4_identifier = CORBA::string_alloc (20);
- strcpy (weapons_.weapon4_identifier, "D");
- weapons_.weapon4_status = 8;
- weapons_.weapon5_identifier = CORBA::string_alloc (20);
- strcpy (weapons_.weapon5_identifier, "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_, CORBA::B_FALSE, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- ACE_DEBUG ((LM_DEBUG,"Starting test with Any: Weapons\n"));
- any_test_ptr_->try_an_any (data, TAO_TRY_ENV);
- ACE_DEBUG ((LM_DEBUG,"Ending test with Any: Weapons\n"));
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("Error in Any_Test_Client::run");
- }
- TAO_ENDTRY;
-
-
- return 0;
-}
-
-
-
-// function main
-
-int
-main (int argc, char *argv [])
-{
-
- TAO_TRY
- {
- Any_Test_Client any_test_client_;
- TAO_CHECK_ENV;
-
- if (any_test_client_.init (argc, argv) == -1)
- return 1;
- TAO_CHECK_ENV;
-
- return any_test_client_.run ();
- TAO_CHECK_ENV;
-
-
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
-
- return 0;
-}
-
diff --git a/TAO/examples/Simulator/DOVEMIB/clnt.h b/TAO/examples/Simulator/DOVEMIB/clnt.h
deleted file mode 100644
index 67ed5c84d57..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/clnt.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-//
-// = FILENAME
-// clnt.h
-//
-// = DESCRIPTION
-//
-// = AUTHORS
-// Michael Kircher
-//
-// ============================================================================
-
-#include "ace/Get_Opt.h"
-#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:
- Navigation navigation_;
- Weapons weapons_;
-
- 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
-
- CORBA::ORB_var orb_;
- // Remember our orb
-};
-
-
-
-
diff --git a/TAO/examples/Simulator/DOVEMIB/svc.conf b/TAO/examples/Simulator/DOVEMIB/svc.conf
deleted file mode 100644
index 43c6a486c92..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/svc.conf
+++ /dev/null
@@ -1,49 +0,0 @@
-# $Id$
-#
-# This file contains a sample ACE_Service_Config configuration
-# file specifying the strategy factories utilized by an application
-# using TAO. There are currently only two possible factories:
-# Client_Strategy_Factory and Server_Strategy_Factory. These names
-# must be used as the second argument to their corresponding line,
-# because that's what the ORB uses to find the desired factory.
-#
-# Note that there are two unordinary characteristics of the way *this*
-# file is set up:
-# - both client and server strategies are specified in the same
-# file, which would only make sense for co-located clients & servers
-# - both of the factories are actually sourced out of libTAO.so
-# (TAO.DLL on Win32), and they would normally be in a separate
-# dll from the TAO ORB Core.
-#
-# The options which can be passed to the Resource Factory are:
-#
-# -ORBresources <which>
-# where <which> can be 'global' to specify globally-held resources,
-# or 'tss' to specify thread-specific resources.
-#
-# The options which can be passed to the Client are:
-# <none currently>
-#
-# The options which can be passed to the Server are:
-#
-# -ORBconcurrency <which>
-# where <which> can be 'thread-per-connection' to specify
-# use of the ACE_Threaded_Strategy concurrency strategy,
-# or 'reactive' to specify use of the ACE_Reactive_Strategy
-# concurrency strategy.
-#
-# -ORBthreadflags <flags>
-# specifies the default thread flags to use, where <flags> is a
-# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP,
-# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid
-# on every platform.
-#
-# -ORBdemuxstrategy <which>
-# where <which> can be one of 'dynamic', 'linear', 'active', or 'user',
-# and specifies the type of object lookup strategy used internally.
-# -ORBtablesize <unsigned>
-# specifies the size of the object table
-#
-dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global"
-dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()
-dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -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 f38ba02bcbc..00000000000
--- a/TAO/examples/Simulator/DOVEMIB/svr.cpp
+++ /dev/null
@@ -1,166 +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"
-
-// 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 ();
- */
-
- TAO_TRY
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::PolicyList policies (2);
- policies.length (2);
- policies[0] =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID,
- TAO_TRY_ENV);
- policies[1] =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT,
- TAO_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 ("RootPOA_is_BAD",
- poa_manager.in (),
- policies,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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 ();
- TAO_CHECK_ENV;
-
- 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_,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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 (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::String_var str =
- orb->object_to_string (obj.in (),
- TAO_TRY_ENV);
-
- ACE_DEBUG ((LM_DEBUG,
- "The IOR is: <%s>\n", str.in ()));
-
-
- poa_manager->activate (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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 (CORBA::B_TRUE,
- CORBA::B_TRUE,
- TAO_TRY_ENV);
- TAO_CHECK_ENV
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG(sysex);
- TAO_TRY_ENV.print_exception ("System Exception");
- return -1;
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- ACE_UNUSED_ARG(userex);
- TAO_TRY_ENV.print_exception ("User Exception");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}
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 1c46bdc512f..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
+++ /dev/null
@@ -1,375 +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 "tao/Timeprobe.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"
-
-static const int SOURCE_ID = 1001;
-
-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)
-{
- TAO_TRY
- {
- // Get a Scheduler.
-
- RtecScheduler::Scheduler_ptr server =
- ACE_Scheduler_Factory::server ();
-
- // Define Real-time information.
-
- rt_info_ = server->create (my_name, TAO_TRY_ENV);
-
- server->set (rt_info_,
- ORBSVCS_Time::zero,
- ORBSVCS_Time::zero,
- ORBSVCS_Time::zero,
- 0,
- RtecScheduler::VERY_LOW_IMPORTANCE,
- ORBSVCS_Time::zero,
- 1,
- TAO_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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Obtain a pointer to a push supplier. "suppliers" is
- // inherited from a base class.
-
- this->suppliers_ =
- consumer_admin_->obtain_push_supplier (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // 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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->suppliers_->connect_push_consumer (objref.in (),
- dependencies.get_ConsumerQOS (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCH (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR, se)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Demo_Consumer::open: subscribe failed.\n"),
- -1);
- }
- TAO_CATCHANY
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Demo_Consumer::open: unexpected exception.\n"),
- -1);
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-void
-Demo_Consumer::disconnect_push_consumer (CORBA::Environment &)
-{
- ACE_DEBUG ((LM_DEBUG,
- "Consumer received disconnect from channel.\n"));
-}
-
-void
-Demo_Consumer::push (const RtecEventComm::EventSet &events,
- CORBA::Environment &)
-{
-
- 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].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"));
-
- TAO_TRY
- {
- cout << "ID: " << events[i].data_.any_value.type()->id(TAO_TRY_ENV) << endl;
- TAO_CHECK_ENV;
- cout << "Name: " << events[i].data_.any_value.type()->name(TAO_TRY_ENV) << endl;
- TAO_CHECK_ENV;
- cout << "member_count: " << events[i].data_.any_value.type()->member_count(TAO_TRY_ENV) << endl;
- TAO_CHECK_ENV;
- cout << "TCKind: " << events[i].data_.any_value.type()->kind(TAO_TRY_ENV) << endl;
- TAO_CHECK_ENV;
-
- if (_tc_Navigation->equal (events[i].data_.any_value.type(), TAO_TRY_ENV))
- {
- TAO_CHECK_ENV;
- 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(), TAO_TRY_ENV))
- {
- TAO_CHECK_ENV;
- Weapons *weapons_ = (Weapons*) events[i].data_.any_value.value ();
-
- cout << "Found a Navigation struct in the any: pos_lat = " << weapons_->number_of_weapons << endl;
- }
-
-
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the Navigation and Weapons data.\n"));
- }
- TAO_ENDTRY;
- }
- }
-}
-
-void
-Demo_Consumer::shutdown (void)
-{
- TAO_TRY
- {
- // Disconnect from the push supplier.
-
- this->suppliers_->disconnect_push_supplier (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- ACE_DEBUG ((LM_DEBUG, "@@ we should shutdown here!!!\n"));
- TAO_CHECK_ENV;
-
- TAO_ORB_Core_instance ()->orb ()->shutdown ();
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- "(%t) Demo_Consumer::shutdown: unexpected exception.\n"));
- }
- TAO_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;
- 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;
- 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 [])
-{
- TAO_TRY
- {
- // Initialize ORB.
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- RtecEventChannelAdmin::EventChannel_var ec =
- RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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 (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Run the ORB
-
- if (orb->run () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "CORBA::ORB::run"),
- -1);
- TAO_CHECK_ENV;
-
- delete demo_consumer;
-
- root_poa->destroy (CORBA::B_TRUE,
- CORBA::B_TRUE,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_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 c95efa7f473..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Con.h
+++ /dev/null
@@ -1,66 +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)
-//
-// ============================================================================
-
-#if !defined (EVENT_CON_H)
-#define EVENT_CON_H
-
-#include "ace/SString.h"
-#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 36adeec054b..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp
+++ /dev/null
@@ -1,728 +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 "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-#include "ace/Profile_Timer.h"
-#include "ace/OS.h"
-#include "tao/Timeprobe.h"
-#include "tao/corba.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"
-
-const int SOURCE_ID = 1001;
-
-static const char usage [] =
-"[-? |\n"
-" [-O[RBport] ORB port number]"
-" [-m <count> of messages to send [100]"
-" [-f name of schedler input data file]]";
-
-static u_int total_messages = 100;
-
-static char *input_file_name = 0;
-
-// ------------ Internal_Demo_Consumer ---------------------------------
-
-Demo_Supplier::Internal_Demo_Consumer::Internal_Demo_Consumer (Demo_Supplier *impl)
- : impl_ (impl)
-{
-}
-
-void
-Demo_Supplier::Internal_Demo_Consumer::push (const RtecEventComm::EventSet &events,
- CORBA::Environment &env)
-{
- this->impl_->push (events, env);
-
- ACE_DEBUG ((LM_DEBUG,
- "Internal Demo Consumer received push.\n"));
-}
-
-void
-Demo_Supplier::Internal_Demo_Consumer::disconnect_push_consumer (CORBA::Environment &)
-{
-}
-
-// -------------------- Internal Demo Supplier -----------------------------
-
-Demo_Supplier::Internal_Demo_Supplier::Internal_Demo_Supplier (Demo_Supplier *impl)
- : impl_ (impl)
-{
-}
-
-void
-Demo_Supplier::Internal_Demo_Supplier::disconnect_push_supplier (CORBA::Environment &)
-{
-}
-
-// ----------------------------------------------------------------------------
-
-Demo_Supplier::Demo_Supplier (u_int supplier_id)
- : supplier_id_ (supplier_id),
- internal_demo_consumer_ (new Internal_Demo_Consumer (this)),
- internal_demo_supplier_ (new Internal_Demo_Supplier (this))
-{
- // this is neccessary because they are not initialized by the comiler
- navigation_.roll = 0;
- navigation_.pitch = 0;
-}
-
-Demo_Supplier::~Demo_Supplier (void)
-{
- delete internal_demo_consumer_;
- delete internal_demo_supplier_;
-}
-
-int
-Demo_Supplier::open_supplier (RtecEventChannelAdmin::EventChannel_ptr ec,
- const char *name)
-{
- TAO_TRY
- {
- this->channel_admin_ = ec;
-
- // Get a Scheduling server.
-
- RtecScheduler::Scheduler_ptr scheduler_ =
- ACE_Scheduler_Factory::server ();
-
- // Generate the Real-time information.
-
- this->rt_info_ = scheduler_->create (name,
- TAO_TRY_ENV);
- scheduler_->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,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Set the publications to report them to the event channel.
-
- CORBA::Short x = 0;
- RtecEventChannelAdmin::SupplierQOS qos_;
- qos_.publications_.length (2);
- qos_.publications_[0].event_.source_ = SOURCE_ID;
- qos_.publications_[0].event_.type_ = ACE_ES_EVENT_NOTIFICATION;
- qos_.publications_[0].event_.ttl_ = 1;
- qos_.publications_[0].event_.creation_time_ = ORBSVCS_Time::zero;
- // default values
- qos_.publications_[0].event_.ec_recv_time_ = ORBSVCS_Time::zero;
- qos_.publications_[0].event_.ec_send_time_ = ORBSVCS_Time::zero;
- qos_.publications_[0].event_.data_.x = 0;
- qos_.publications_[0].event_.data_.y = 0;
- qos_.publications_[0].event_.data_.any_value.replace (CORBA::_tc_short,
- &x,
- 0,
- TAO_TRY_ENV);
- qos_.publications_[0].dependency_info_.number_of_calls = 1;
- qos_.publications_[0].dependency_info_.rt_info = rt_info_;
- qos_.publications_[1].event_.source_ = SOURCE_ID;
- qos_.publications_[1].event_.type_ = ACE_ES_EVENT_SHUTDOWN;
- qos_.publications_[1].event_.ttl_ = 1;
- qos_.publications_[1].event_.creation_time_ = ORBSVCS_Time::zero;
- // default values.
- qos_.publications_[1].event_.ec_recv_time_ = ORBSVCS_Time::zero;
- qos_.publications_[1].event_.ec_send_time_ = ORBSVCS_Time::zero;
- qos_.publications_[1].event_.data_.x = 0;
- qos_.publications_[1].event_.data_.y = 0;
- qos_.publications_[1].event_.data_.any_value.replace (CORBA::_tc_short,
- &x,
- 0,
- TAO_TRY_ENV);
- qos_.publications_[1].dependency_info_.number_of_calls = 1;
- qos_.publications_[1].dependency_info_.rt_info = rt_info_;
-
- // = Connect as a supplier.
- this->supplier_admin_ =
- channel_admin_->for_suppliers (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- this->proxy_consumer_ =
- supplier_admin_->obtain_push_consumer (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // In calling _this we get back an object reference and register
- // the servant with the POA.
-
- RtecEventComm::PushSupplier_var objref =
- this->internal_demo_supplier_->_this (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Connect the supplier to the proxy consumer.
- this->proxy_consumer_->connect_push_supplier (objref.in (),
- qos_,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("Demo_Supplier::open");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-void
-Demo_Supplier::disconnect_push_supplier (CORBA::Environment &)
-{
- ACE_DEBUG ((LM_DEBUG,
- "Supplier received disconnect from channel.\n"));
-}
-
-void
-Demo_Supplier::start_generating_events (void)
-{
- u_int 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,
- "Demo_Supplier::start_generating_events: "
- "there is no scheduling data\n"));
- return;
- }
-
- TAO_TRY
- {
- do
- {
- RtecEventComm::Event event;
- event.source_ = SOURCE_ID;
- event.type_ = ACE_ES_EVENT_NOTIFICATION;
- event.ttl_ = 1;
- event.creation_time_ = ORBSVCS_Time::zero;
- event.ec_recv_time_ = ORBSVCS_Time::zero;
- event.ec_send_time_ = ORBSVCS_Time::zero;
- event.data_.x = 0;
- event.data_.y = 0;
-
- this->insert_event_data (event.data_.any_value,
- schedule_iter);
-
- RtecEventComm::EventSet events;
- events.length (1);
- events[0] = event;
-
- proxy_consumer_->push (events,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- 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_ < total_messages);
-
- // Sending a shutdown event -- not wanted right now
- /* RtecEventComm::Event event;
- event.source_ = SOURCE_ID;
- event.type_ = ACE_ES_EVENT_SHUTDOWN;
- event.ttl_ = 1;
- event.creation_time_ = ORBSVCS_Time::zero;
- event.ec_recv_time_ = ORBSVCS_Time::zero;
- event.ec_send_time_ = ORBSVCS_Time::zero;
- event.data_.x = 0;
- event.data_.y = 0;
-
- RtecEventComm::EventSet events;
- events.length (1);
- events[0] = event;
- TAO_CHECK_ENV;
-
- proxy_consumer_->push (events, TAO_TRY_ENV);
- TAO_CHECK_ENV; */
-
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "Demo_Supplier::start_generating_events: "
- " unexpected exception.\n"));
- }
- TAO_ENDTRY;
-
- // 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);
-
- this->shutdown ();
-}
-
-void
-Demo_Supplier::load_schedule_data
- (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data)
-{
- Schedule_Viewer_Data *data = 0;
-
- if (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(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,
- "Demo_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,
- "Demo_Supplier::start_generating_events: "
- "could not open input file [%s].\n",
- 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);
-
- 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
-Demo_Supplier::insert_event_data (CORBA::Any &data,
- ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter)
-{
- static u_long last_completion = 0;
-
- TAO_TRY {
- 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)) {
- 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;
-
- // 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_, CORBA::B_TRUE, TAO_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)) {
- weapons_.number_of_weapons = 2;
- weapons_.weapon1_identifier = CORBA::string_alloc (30);
- strcpy (weapons_.weapon1_identifier,"Photon Torpedoes");
- weapons_.weapon1_status =(ACE_OS::rand() % 4) == 0 ? 0 : 1 ;
- weapons_.weapon2_identifier = CORBA::string_alloc (30);
- strcpy (weapons_.weapon2_identifier,"Quantum Torpedoes");
- weapons_.weapon2_status = (ACE_OS::rand() % 4) == 0 ? 0 : 1;
- weapons_.weapon3_identifier = CORBA::string_alloc (1);
- strcpy (weapons_.weapon3_identifier, "");
- weapons_.weapon3_status = 0;
- weapons_.weapon4_identifier = CORBA::string_alloc (1);
- strcpy (weapons_.weapon4_identifier, "");
- weapons_.weapon4_status = 0;
- weapons_.weapon5_identifier = CORBA::string_alloc (1);
- strcpy (weapons_.weapon5_identifier, "");
- 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;
-
- // 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_, CORBA::B_TRUE, TAO_TRY_ENV);
- }
- else {
- ACE_ERROR ((LM_ERROR, "Demo_Supplier::insert_event_data: unrecognized operation name [%s]",
- (*sched_data)->operation_name));
- }
-
- TAO_CHECK_ENV;
-
-
- 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,
- "Demo_Supplier::insert_event_data: Could Not access scheduling data"));
-
- schedule_iter.advance ();
-
- if (schedule_iter.done ())
- schedule_iter.first ();
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "(%t)Error in Demo_Supplier::insert_event_data.\n"));
- }
- TAO_ENDTRY;
-}
-
-void
-Demo_Supplier::push (const RtecEventComm::EventSet &events,
- CORBA::Environment &env)
-{
-}
-
-void
-Demo_Supplier::shutdown (void)
-{
- TAO_TRY
- {
- // @@ Had problems with the next command, the application got stuck in it
- // channel_admin_->destroy (TAO_TRY_ENV);
- // TAO_CHECK_ENV;
-
- TAO_ORB_Core_instance ()->orb ()->shutdown ();
- TAO_CHECK_ENV;
-
- }
- TAO_CATCHANY
- {
- ACE_ERROR ((LM_ERROR, "(%t) Demo_Supplier::shutdown:"
- " unexpected exception.\n"));
- TAO_TRY_ENV.print_exception ("Demo_Supplier::shutdown");
- }
- TAO_ENDTRY;
-}
-
-// Function get_options.
-
-static u_int
-get_options (int argc,
- char *argv [])
-{
- // We need the 'O' in get_opt() because we also want to have ORB
- // parameters, they all start with 'O'.
- ACE_Get_Opt get_opt (argc, argv, "O?m:f:");
- int opt;
- 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 'm':
- temp = ACE_OS::atoi (get_opt.optarg);
- if (temp > 0)
- {
- total_messages = (u_int) temp;
- cout << "Messages to send:" << total_messages << endl;
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s: count must be > 0",
- argv[0]),
- 1);
- break;
- case 'f':
- input_file_name = get_opt.optarg;
-
- if (!input_file_name || ACE_OS::strlen (input_file_name) > 0)
- cout << "Messages to send:" << total_messages << endl;
- else
- {
- input_file_name = 0;
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s: file name must be specified with -f option",
- 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 [])
-{
- TAO_TRY
- {
- // Initialize ORB.
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- "internet",
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Connect to the RootPOA.
- 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 (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Get the Naming Service object reference.
- 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 get the Naming Service.\n"),
- 1);
-
- CosNaming::NamingContext_var naming_context =
- CosNaming::NamingContext::_narrow (naming_obj.in (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Tell the ScheduleService to use the same naming service.
- ACE_Scheduler_Factory::use_config (naming_context.in ());
-
- if (get_options (argc, argv))
- ACE_OS::exit (-1);
-
- // Get the Event Channel
- // @@ If you specify an invalid name, the Name Service crashes
-
- 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, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- RtecEventChannelAdmin::EventChannel_var ec =
- RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in(),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Create the demo supplier.
- Demo_Supplier *demo_supplier;
- ACE_NEW_RETURN (demo_supplier,
- Demo_Supplier (SOURCE_ID),
- -1);
-
- if (demo_supplier->open_supplier (ec.ptr (),
- "demo_supplier") == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Supplier open failed.\n"),
- -1);
-
- // Register the internal demo consumer for timeout events.
- demo_supplier->start_generating_events ();
-
- ACE_DEBUG ((LM_DEBUG,
- "Supplier is registered for timeout events.\n"));
-
- // The POA Manager has to be activated before starting the ORB
- // event loop.
- poa_manager->activate (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Run the ORB.
- if (orb->run () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "CORBA::ORB::run"),
- -1);
- TAO_CHECK_ENV;
-
- delete demo_supplier;
- TAO_CHECK_ENV;
-
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
- return 0;
-}
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 63f02502753..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsp
+++ /dev/null
@@ -1,132 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Event_Sup" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 5.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 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 /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 "..\..\..\\" /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 TAO.lib orbsvcs.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\..\..\ace" /libpath:"..\..\..\..\tao" /libpath:"..\..\..\orbsvcs"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Event_Sup - Win32 Release"
-# Name "Event_Sup - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\Event_Sup.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeap.idl
-
-!IF "$(CFG)" == "Event_Sup - Win32 Release"
-
-!ELSEIF "$(CFG)" == "Event_Sup - Win32 Debug"
-
-# Begin Custom Build
-InputPath=.\NavWeap.idl
-InputName=NavWeap
-
-BuildCmds= \
- ..\..\..\..\tao_idl\tao_idl $(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)
-
-"$(InputName)S.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)S.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\NavWeapC.cpp
-# End Source File
-# 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 8e624d1c218..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 5.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Event_Sup"=.\Event_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 2b45455e181..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.h
+++ /dev/null
@@ -1,134 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = FILENAME
-// Event_Sup.h
-//
-// = DESCRIPTION
-// Event Supplier for the simulation
-//
-// = AUTHOR
-// originally
-// David Levine (levine@cs.wustl.edu) and
-// Tim Harrison (harrison@cs.wustl.edu)
-// modified
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// ============================================================================
-
-#if !defined (EVENT_SUP_H)
-#define EVENT_SUP_H
-
-#include <ctype.h>
-#include <stdio.h>
-#include "ace/OS.h"
-#include "ace/SString.h"
-#include "orbsvcs/RtecEventChannelAdminC.h"
-#include "orbsvcs/RtecEventCommS.h"
-#include "NavWeapC.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 Demo_Supplier
-{
- // = TITLE
- // Demo Supplier.
- //
- // = DESCRIPTION
- // Generates event nofications and a shutdown message.
-public:
- class Internal_Demo_Consumer : public POA_RtecEventComm::PushConsumer
- {
- public:
- virtual void push (const RtecEventComm::EventSet &events,
- CORBA::Environment &);
- // The channel pushed some events to us.
-
- virtual void disconnect_push_consumer (CORBA::Environment &);
- // The channel is disconnecting.
-
- private:
- Internal_Demo_Consumer (Demo_Supplier* impl);
- friend class Demo_Supplier;
-
- private:
- Demo_Supplier* impl_;
- };
-
- // The following Supplier is needed because Demo_Supplier has not
- // inherited from PushSupplier, therefore we register with the
- // following and send with Demo_Supplier.
-
- class Internal_Demo_Supplier : public POA_RtecEventComm::PushSupplier
- {
- public:
- virtual void disconnect_push_supplier (CORBA::Environment &);
-
- private:
- Internal_Demo_Supplier (Demo_Supplier* impl);
- friend class Demo_Supplier;
-
- private:
- Demo_Supplier* impl_;
- };
-
- Demo_Supplier (u_int supplier_id);
- // Construction. Requires the total number of messages to be
- // sent. If the timestamp flag is enabled, then events are
- // timestamped, e.g., for use in measuring jitter.
-
- ~Demo_Supplier (void);
-
- int open_supplier (RtecEventChannelAdmin::EventChannel_ptr event_channel,
- const char *name);
- // Registers with the name server under the given <name>. Also
- // connects to the Event Channel as a supplier of notifications and
- // shutdown messages.
-
- virtual void disconnect_push_supplier (CORBA::Environment &);
- // The channel is disconnecting.
-
- void start_generating_events (void);
-
- void load_schedule_data (ACE_Unbounded_Queue<Schedule_Viewer_Data *> &schedule_data);
-
- void insert_event_data (CORBA::Any &data,
- ACE_Unbounded_Queue_Iterator<Schedule_Viewer_Data *> &schedule_iter);
-
- void push (const RtecEventComm::EventSet &events,
- CORBA::Environment &);
-protected:
-
- void shutdown (void);
- // Disconnect from the Event Service.
-
- // = Event Channel adminstration references.
- RtecEventChannelAdmin::EventChannel_var channel_admin_;
- RtecEventChannelAdmin::SupplierAdmin_var supplier_admin_;
- RtecEventChannelAdmin::ProxyPushConsumer_var proxy_consumer_;
-
- // = Because we get timeout events in our internal_demo_consumer.
- RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_;
- RtecEventChannelAdmin::ProxyPushSupplier_var proxy_supplier_;
-
-private:
- Navigation navigation_;
- Weapons weapons_;
- RtecScheduler::handle_t rt_info_;
- u_int supplier_id_;
-
- Internal_Demo_Consumer *internal_demo_consumer_;
- Internal_Demo_Supplier *internal_demo_supplier_;
-};
-
-#endif /* EVENT_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 7ea5bc7224c..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/Makefile
+++ /dev/null
@@ -1,70 +0,0 @@
-#
-# $Id$
-#
-
-BIN = Event_Sup Event_Con
-
-BUILD = $(BIN)
-
-
-IDL_SRC = \
- NavWeapC.cpp NavWeapS.cpp
-
-IDL_HDR = \
- NavWeapC.h
-
-EVENT_TEST_SRCS= \
- Event_Sup.cpp Event_Con.cpp
-
-LSRC= \
- $(IDL_SRC) $(EVENT_TEST_SRCS)
-
-EVENT_SUP_OBJS = NavWeapC.o Event_Sup.o
-EVENT_CON_OBJS = NavWeapC.o Event_Con.o
-
-LDLIBS= -lorbsvcs -lTAO
-
-#----------------------------------------------------------------------------
-# 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.local.GNU
-
-#### Local rules and variables...
-
-ifndef TAO_ROOT
-TAO_ROOT = $(ACE_ROOT)/TAO
-endif
-TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE
-DCFLAGS = -g
-LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
-CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H
-
-
-#$(IDL_SRC): NavWeap.idl
-# $(TAO_ROOT)/TAO_IDL/tao_idl NavWeap.idl
-
-#.PRECIOUS:$(IDL_HDR) $(IDL_SRC)
-
-Event_Sup: $(addprefix $(VDIR),$(EVENT_SUP_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-Event_Con: $(addprefix $(VDIR),$(EVENT_CON_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-
-#----------------------------------------------------------------------------
-# 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/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 43c6a486c92..00000000000
--- a/TAO/examples/Simulator/Event_Supplier/svc.conf
+++ /dev/null
@@ -1,49 +0,0 @@
-# $Id$
-#
-# This file contains a sample ACE_Service_Config configuration
-# file specifying the strategy factories utilized by an application
-# using TAO. There are currently only two possible factories:
-# Client_Strategy_Factory and Server_Strategy_Factory. These names
-# must be used as the second argument to their corresponding line,
-# because that's what the ORB uses to find the desired factory.
-#
-# Note that there are two unordinary characteristics of the way *this*
-# file is set up:
-# - both client and server strategies are specified in the same
-# file, which would only make sense for co-located clients & servers
-# - both of the factories are actually sourced out of libTAO.so
-# (TAO.DLL on Win32), and they would normally be in a separate
-# dll from the TAO ORB Core.
-#
-# The options which can be passed to the Resource Factory are:
-#
-# -ORBresources <which>
-# where <which> can be 'global' to specify globally-held resources,
-# or 'tss' to specify thread-specific resources.
-#
-# The options which can be passed to the Client are:
-# <none currently>
-#
-# The options which can be passed to the Server are:
-#
-# -ORBconcurrency <which>
-# where <which> can be 'thread-per-connection' to specify
-# use of the ACE_Threaded_Strategy concurrency strategy,
-# or 'reactive' to specify use of the ACE_Reactive_Strategy
-# concurrency strategy.
-#
-# -ORBthreadflags <flags>
-# specifies the default thread flags to use, where <flags> is a
-# logical OR'ing of the flags THR_DETACHED, THR_BOUND, THR_NEW_LWP,
-# THR_SUSPENDED, or THR_DAEMON. Note that not every flag may be valid
-# on every platform.
-#
-# -ORBdemuxstrategy <which>
-# where <which> can be one of 'dynamic', 'linear', 'active', or 'user',
-# and specifies the type of object lookup strategy used internally.
-# -ORBtablesize <unsigned>
-# specifies the size of the object table
-#
-dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global"
-dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()
-dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBdemuxstrategy dynamic -ORBtablesize 128"
diff --git a/TAO/examples/Simulator/NavWeap.idl b/TAO/examples/Simulator/NavWeap.idl
deleted file mode 100644
index de695b14522..00000000000
--- a/TAO/examples/Simulator/NavWeap.idl
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-
-// =========================================================================================================
-//
-// = FILE
-// NavWeap.idl
-//
-// = DESCRIPTION
-// Navigation and Weapon structs for the DOVE/EventService demo.
-
-// = AUTHOR
-// Michael Kircher <mk1@cec.wustl.edu>
-//
-// =========================================================================================================
-
-
-struct Navigation {
- long position_latitude;
- long position_longitude;
- unsigned long altitude;
- long heading;
- long roll;
- long pitch;
- // common part
- double utilization;
- double overhead;
- unsigned long arrival_time;
- unsigned long deadline_time;
- unsigned long completion_time;
- unsigned long computation_time;
-};
-
-
-
-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;
- unsigned long arrival_time;
- unsigned long deadline_time;
- unsigned long completion_time;
- unsigned long computation_time;
-};
diff --git a/TAO/examples/Simulator/README b/TAO/examples/Simulator/README
deleted file mode 100644
index 9596e1fce25..00000000000
--- a/TAO/examples/Simulator/README
+++ /dev/null
@@ -1,171 +0,0 @@
-$Id$
-
-Documentation for the Simulator/DOVE demo
-
-Purpose: To show how the event service can be used to as a media to
- transport monitoring events including data.
-
-Application: The events contain C++ structs with avionics information.
- They are supllied by sensors of an avionic and are
- consumed by an JAVA applet running on a different machine and/or
- location. The collected metrics are displayed in
- JAVA Beans. A object called DOVE Management Information
- Base keeps track of all sent events.
-
-Implementation: A C++ Supplier pushes events containing a
- navigation or weapons struct to the Event Service.
- The Event Service dispatches the events to any number of
- Consumers which are implemented in JAVA. The JAVA
- consumer extracts the data of the structs and dispatches
- it to various Visualization Components.
-
-
-For more informations refer to:
- $TAO_ROOT/docs/releasenotes/index.html
-
-
-Requirements:
- * C++ compiler
- * Java JDK 1,1,x
- * ACE/TAO environment,
- * Visibroker 3.2 for Java
-
-
-!!RELEASE CHANGES:
- - A first version of the DOVE MIB is now available.
- - the DOVEBrowser accepts now the ORBnameserviceior parameter
-
-Parts of the Demo:
-
- * DOVE Browser (implemented in Java using Visibroker 3.2 for Java)
-
- * Event Supplier, can be seen as a monitored object, called
- DOVE Application (implemented in C++ using TAO)
-
- * DOVE MIB, storing event data on persistent storage and keeping
- track of statistical data (implemented in C++ using TAO)
-
-Files:
- Common:
- ss - restart Naming Service, connect the Event Service and
- Scheduling service with this Naming Service
- NavWeap.idl - IDL definition of the Weapons and Navigation struct
- README - this readme file
-
-
- Event Supplier: (in directory $TAO_ROOT/orbsvcs/tests/Simulator/Event_Supplier/)
- Event_Sup.cpp - Event Supplier
- Event_Sup.h - Event Supplier 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
- NS_Resolve.java - Resolving the inital reference to the Naming Service
- NavWeapDataHandler.java - Specialized Data Handler for Navigation and Weapon 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 on
- 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 Anyanalyser
-
-
-Compiling:
- Common:
- "make sure that the following definition is in the
- $TAO_ROOT/orbsvcs/orbsvcs/RtecEventComm.idl"
-
- struct EventData {
- long x;
- long y;
- any any_value;
- };
-
- "compile $TAO_ROOT/orbsvcs/orbsvcs"
- "compile $TAO_ROOT/orbsvcs/Event_Service"
- "compile $TAO_ROOT/orbsvcs/Naming_Service"
- "compile $TAO_ROOT/orbsvcs/Scheduling_Service"
-
-
-
- Supplier:
-
- cp ../NavWeap.idl .
-
- make
-
-
-
-
- DOVE Browser:
- cp ../NavWeap.idl .
- cp $TAO_ROOT/orbsvcs/orbsvcs/CosNaming.idl .
- cp $TAO_ROOT/orbsvcs/orbsvcs/CosTimeBase.idl .
- cp $TAO_ROOT/orbsvcs/orbsvcs/RtecEventChannelAdmin.idl .
- cp $TAO_ROOT/orbsvcs/orbsvcs/RtecEventComm.idl .
- cp $TAO_ROOT/orbsvcs/orbsvcs/RtecScheduler.idl .
- idl2java *.idl
-
- vbjc *.java
-
-
- DOVE MIB:
- cp ../NavWeap.idl .
-
- make
-
-
-Starting:
- Start in the following order on different ORB ports:
- * Naming Service
- * Scheduling Service
- * Event Service
-
- Supplier:
- Event_Sup -ORBport 10040 -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
-
-
- DOVE Browser:
- vbj DOVEBrowser
- (also supported: vbj DOVEBrowser -ORBnameserviceior <IOR> )
-
- 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 -ORBport 10041 -f myfile -m 100
-
- // -m 100 for storing the next 100 events
- // -f myfile for the name of the file in which it will be stored
diff --git a/TAO/examples/Simulator/Sim_Display/Border_Panel.java b/TAO/examples/Simulator/Sim_Display/Border_Panel.java
deleted file mode 100644
index 1c9b8099499..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Border_Panel.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// $Id$
-import java.awt.*;
-
-public class Border_Panel extends Panel
-{
- private String title_;
- private final static Insets SPACE = new Insets (16, 16, 16, 16);
-
- public Border_Panel (Component component, String title)
- {
- GridBagLayout gb = new GridBagLayout ();
- GridBagConstraints gbc = new GridBagConstraints ();
-
- title_ = title;
- setFont (new Font ("Dialog", Font.PLAIN, 12));
- setLayout (new CardLayout (SPACE.left, SPACE.top));
-
- add ("Front", component);
- }
-
- public void paint (Graphics g)
- {
- FontMetrics fm = g.getFontMetrics ();
- Dimension d = getSize ();
- int font_height = fm.getAscent (),
- rect_x = SPACE.left/2,
- rect_y = SPACE.top/2,
- rect_width = d.width - SPACE.right,
- rect_height = d.height - SPACE.top/2 - SPACE.bottom/2,
- font_x = SPACE.left/2 + 20,
- font_y = (int)Math.round (SPACE.top/2 + font_height/2.0 - 1);
-
- g.setColor (getBackground ());
-
- g.draw3DRect (rect_x - 1, rect_y - 1,
- rect_width + 1, rect_height + 1, false);
- g.draw3DRect (rect_x, rect_y,
- rect_width - 1, rect_height - 1, true);
- g.fillRect (font_x - 2, 0, fm.stringWidth (title_) + 4, SPACE.top);
-
- g.setColor (Color.black);
- g.drawString (title_, font_x, font_y);
- }
-
- public static void main (String[] args)
- {
- Frame yadda = new Frame ("Border Frame Test");
- Panel blank = new Panel ();
- Border_Panel bpanel = new Border_Panel (blank, "Border Panel");
-
- yadda.setLayout (new BorderLayout ());
- yadda.add ("Center", bpanel);
- yadda.setBounds (0, 0, 640, 480);
-
- yadda.show ();
- }
-}
diff --git a/TAO/examples/Simulator/Sim_Display/Display.java b/TAO/examples/Simulator/Sim_Display/Display.java
deleted file mode 100644
index 21def23be1d..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display.java
+++ /dev/null
@@ -1,92 +0,0 @@
-// $Id$
-
-
-import java.io.*;
-import java.awt.*;
-
-public class Display extends Panel
-{
- private Graph_Panel metrics_ = new Graph_Panel ();
- private Sim_Panel sims_ = new Sim_Panel ();
- private double last_latency = 0;
-
- public Display ()
- {
- setLayout (new GridLayout (2, 1));
- add (new Border_Panel (sims_, "Flight Simulator"));
- add (new Border_Panel (metrics_, "Scheduling Performance"));
- }
-
- public void update_metric (String name, float new_value)
- {
- metrics_.updateGraph (name, new_value);
- }
-
- public void add_metric (String name, int max)
- {
- metrics_.addGraph (name, max);
- }
-
- public void add_simulator (String name)
- {
- Display_Object obj =
- Display_Object_Factory.create_display_object (name);
-
- if (obj != null)
- sims_.add_simulator (name, obj);
- }
-
- public void update_simulator (String name, Display_Push_Consumer display_push_consumer)
- {
- sims_.update_simulator (name, display_push_consumer);
- }
-
-
- public void update_metrics (double utilization,
- double overhead,
- int arrival_time,
- int deadline_time,
- int completion_time,
- int computation_time)
- {
- float latency = (float)(completion_time-computation_time-arrival_time);
- latency = latency > 0 ? latency : 0;
- float jitter = (float)Math.abs(latency - last_latency);
- // float latency = (float)(dispatch_time - arrival_time > 0 ? dispatch_time - arrival_time : 0);
- // float jitter = (float)Math.abs(latency - last_latency);
- float missed_deadline =
- (float)((deadline_time < completion_time) ? 1.0 : 0.0);
-
- /*
- System.out.println ("Metrics: cpu " + header.utilization_ +
- " overhead " + header.overhead_ +
- " jitter " + jitter +
- " deadlines " + missed_deadline +
- " latency " + latency);
- */
- update_metric (Display_Client.CPU_USAGE, (float)utilization);
- update_metric (Display_Client.OVERHEAD, (float)overhead);
- update_metric (Display_Client.JITTER, jitter);
- update_metric (Display_Client.DEADLINES, missed_deadline);
- update_metric (Display_Client.LATENCY, latency);
- }
-
- public void update_simulation (long simulation_id,
- Display_Push_Consumer display_push_consumer)
- {
- String sim_name =
- Display_Object_Factory.resolve_name (simulation_id);
-
- if (sim_name != null)
- update_simulator (sim_name, display_push_consumer);
- }
-}
-
-
-
-
-
-
-
-
-
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Art_Horizon.java b/TAO/examples/Simulator/Sim_Display/Display_Art_Horizon.java
deleted file mode 100644
index 4b5c9fd4fe9..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Art_Horizon.java
+++ /dev/null
@@ -1,377 +0,0 @@
-// $Id$
-
-
-import java.awt.*;
-import java.io.*;
-
-public class Display_Art_Horizon
- extends Panel
- implements Display_Object
-{
- private Alt_Horizon alt_hor_ = new Alt_Horizon ();
- private Position pos_ = new Position ();
-
- public Display_Art_Horizon ()
- {
- setLayout (new BorderLayout (0, 2));
- add ("Center", alt_hor_);
- add ("South", pos_);
- }
-
- public int update_display (Display_Push_Consumer display_push_consumer)
- {
- Navigation navigation = display_push_consumer.get_navigation ();
- /*
- System.out.println ("Art_Horizon: lat " + latitude + " long " + longitude + " alt " +
- altitude + " heading " + heading + " roll " +
- roll + " pitch " + pitch);
- */
-
- alt_hor_.update_display (navigation.roll, navigation.pitch);
- pos_.update_display (navigation.position_latitude, navigation.position_longitude, navigation.altitude, navigation.heading);
-
- return 0;
- }
-}
-
-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 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);
-
- /*
- System.out.println ("Start Angle " + angles[0] +
- " End Angle " + angles[1] +
- " Arc Angle " + 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;
-
- // Shift the terrain line to account for the pitch.
- // if (Math.abs (roll_) != 90)
- // {
- /*
- boolean upside_down = Math.abs (roll_) >= 90;
- double offset = - (double)rad * (double)pitch_ / 90.0;
- double y_intercept = (Math.abs (roll_) <= 90) ? offset : offset;
- double slope = caclulate_slope (rad, angles);
- Point[] roots = null;
- int x_l, x_r, y_l, y_r;
-
- roots = line_circle_intesect (rad, y_intercept, slope);
-
- // System.out.println ("Y intercept " + y_intercept + " slope " + slope);
- // System.out.println ("Root x1 " + roots[0].x + " x2 " + roots[1].x);
- // System.out.println ("Root y1 " + roots[0].y + " y2 " + roots[1].y);
- // System.out.println ("Was left_point.x " + left_point.x + " left_point.y " + left_point.y);
- // System.out.println ("Was right_point.x " + right_point.x + " right_point.y " + right_point.y);
-
- x_l = upside_down ? roots[0].x : roots[1].x;
- y_l = upside_down ? roots[0].y : roots[1].y;
- x_r = upside_down ? roots[1].x : roots[0].x;
- y_r = upside_down ? roots[1].y : roots[0].y;
-
- angles[0] = calculate_angle (rad, x_l, y_l);
- angles[1] = calculate_angle (rad, x_r, y_r);
-
- // System.out.println ("Now left_point.x " + left_point.x + " left_point.y " + left_point.y);
- // System.out.println ("Now right_point.x " + right_point.x + " right_point.y " + right_point.y);
- */
- // }
- }
-
- 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;
-
- // boolean rightside_up = Math.abs (roll_) <= 90,
- // positive_roll = roll_ >= 0;
- // double roll_rad = (double) roll_ * Math.PI / 180.0;
- // Point tmp =
- // new Point ((int) Math.round ((double) rad * Math.cos (roll_rad)),
- // (int) Math.round ((double) rad * Math.sin (roll_rad)));
-
- // System.out.println ("Was left_point.x " + left_point.x + " left_point.y " + left_point.y);
- // System.out.println ("Was right_point.x " + right_point.x + " right_point.y " + right_point.y);
-
- // right_point.x = tmp.x;
- // left_point.x = -tmp.x;
- // right_point.y = tmp.y;
- // left_point.y = -tmp.y;
-
- // System.out.println ("Now left_point.x " + left_point.x + " left_point.y " + left_point.y);
- // System.out.println ("Now right_point.x " + right_point.x + " right_point.y " + right_point.y);
- }
-
- 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_);
-
- // lat_.setBackground (Color.lightGray);
- // long_.setBackground (Color.lightGray);
- // alt_.setBackground (Color.lightGray);
- // heading_.setBackground (Color.lightGray);
-
- // setBackground (Color.black);
- // setLayout (new CardLayout (1, 1));
-
- // grid_panel.setBackground (Color.black);
- // grid_panel.setLayout (new GridLayout(1, 4, 1, 0));
- // grid_panel.add (lat_);
- // grid_panel.add (long_);
- // grid_panel.add (alt_);
- // grid_panel.add (heading_);
-
- // add ("Grid Panel", grid_panel);
- }
-
- 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/Sim_Display/Display_Client.java b/TAO/examples/Simulator/Sim_Display/Display_Client.java
deleted file mode 100644
index d7140d54c3d..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Client.java
+++ /dev/null
@@ -1,116 +0,0 @@
-// $Id$
-
-/**
- * This class pulls the structured simulation data from a socket and
- * funnels it into the display.
- *
- * @author Seth Widoff
- * @version $Id$
- * modified by Michael Kircher on 1998/02/19
- */
-
-import java.util.*;
-import java.awt.*;
-
-class Display_Frame extends Frame
-{
- MenuBar menubar_;
- Menu menu_quit_;
- MenuItem menu_quit_item_;
-
- public Display_Frame ()
- {
- super ();
- menubar_ = new MenuBar ();
- menu_quit_ = new Menu ("Quit");
- menu_quit_item_ = new MenuItem ("Quit");
- menu_quit_item_.enable ();
- menu_quit_.add (menu_quit_item_);
- menubar_.add (menu_quit_);
-
- setMenuBar (menubar_);
- }
-
-
-
- public boolean action (Event e, Object arg)
- {
- System.out.println ("action occured");
- if (e.target == menu_quit_item_)
- {
- System.exit (0);
- return true;
- }
- return false;
- }
-
-}
-
-
-public class Display_Client // extends java.applet.Applet
-{
- public final static int DEFAULT_PORT = 5555;
-
- public final static String CPU_USAGE = "CPU Usage (%)",
- LATENCY = "Latency (ms)",
- JITTER = "Jitter (ms)",
- OVERHEAD = "Overhead (%)",
- DEADLINES = "Missed Deadlines (#)";
-
-
-public synchronized void paint (Graphics g) {}
-
- public void init ()
- {
-
- String art_hor_name =
- Display_Object_Factory.resolve_name
- (Display_Object_Factory.ART_HORIZON_ENUM);
- String weapons_name =
- Display_Object_Factory.resolve_name
- (Display_Object_Factory.WEAPONS_ENUM);
-
- display.add_metric (CPU_USAGE, 1);
- display.add_metric (OVERHEAD, 1);
- display.add_metric (JITTER, 10);
- display.add_metric (LATENCY, 10);
- display.add_metric (DEADLINES, 2);
- display.add_simulator (weapons_name);
- display.add_simulator (art_hor_name);
-
- display_consumer = new Display_Consumer (display); //, this.getParameter("NS_IOR"), this);
- Dimension ss = Toolkit.getDefaultToolkit ().getScreenSize ();
-
- sim_frame.setResizable (false);
- sim_frame.setTitle ("Scheduler Demo");
- sim_frame.setBounds (ss.width/2 - 275, ss.height/2 - 275, 700, 700);
- sim_frame.setLayout (new BorderLayout ());
- sim_frame.add ("Center", display);
-
- sim_frame.show ();
-
- display_consumer.run ();
- }
-
-
-
- public Display_Client ()
- {
- sim_frame = new Display_Frame ();
- display = new Display ();
-
- }
-
- private Frame sim_frame;
- private Display display;
- private Display_Consumer display_consumer;
-
- public static void main (String[] args)
- {
-
- Display_Client display_client_ = new Display_Client ();
- display_client_.init ();
- }
-}
-
-
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Consumer.java b/TAO/examples/Simulator/Sim_Display/Display_Consumer.java
deleted file mode 100644
index 29b6f4e3535..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Consumer.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// $Id$
-//
-// ============================================================================
-//
-//
-// = FILENAME
-// Display_Consumer.java
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// = DESCRIPTION
-// This Consumer connects to the Event Channel (TAO Event Channel).
-// It accepts Notification events containing Navigation and
-// Weapons data.
-//
-//
-// ============================================================================
-
-
-
-
-public class Display_Consumer {
-
- 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;
-
- private org.omg.CORBA.ORB orb_;
- private org.omg.CORBA.BOA boa_;
- private org.omg.CORBA.Object naming_service_object_;
-
- private Display display_;
- private Navigation navigation_;
- private Weapons weapons_;
-
- public synchronized void init ()
- {
- }
-
-
-public Display_Consumer (Display display) //, String name_service_ior, java.applet.Applet applet)
- {
- display_ = display;
- try {
- orb_ = org.omg.CORBA.ORB.init (); // applet, null);
- boa_ = orb_.BOA_init ();
-
- // Get the Naming Service initial reference
-
- //naming_service_object_ = orb_.string_to_object (name_service_ior);
-
- NS_Resolve ns_resolve_ = new NS_Resolve ();
-
- naming_service_object_ = ns_resolve_.resolve_name_service (orb_);
- }
- catch(org.omg.CORBA.SystemException e) {
- System.err.println ("Client constructur: Failure");
- 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");
- }
-
- // 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_);
-
- // 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_);
-
-
- // Start the consumer
- Display_Push_Consumer display_push_consumer_ = new Display_Push_Consumer (orb_, display_);
- display_push_consumer_.open_consumer (event_channel_, scheduler_, "demo_consumer");
-
- // Tell the CORBA environment that we are ready
-
- boa_.obj_is_ready (display_push_consumer_);
-
- 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 ("Client run: Failure");
- System.err.println(e);
- }
- }
-
-
-} // public class Display_Consumer
-
-
-
-
-
-
-
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Object.java b/TAO/examples/Simulator/Sim_Display/Display_Object.java
deleted file mode 100644
index 9d401f6e723..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Object.java
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-import java.io.*;
-
-public interface Display_Object
-{
- public int update_display (Display_Push_Consumer display_push_consumer);
-}
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java b/TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java
deleted file mode 100644
index c7a036e1132..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-
-import java.io.*;
-import java.util.*;
-
-public class Display_Object_Factory
-{
- public final static int LONG_SIZE = 4;
- public final static int DOUBLE_SIZE = 8;
-
- public final static int ART_HORIZON_ENUM = 0,
- WEAPONS_ENUM = 1;
-
- private final static String[] DISPLAY_NAMES =
- {
- "Artificial Horizon",
- "Weapons Display",
- };
-
- private static Hashtable objs_ = new Hashtable ();
-
- static
- {
- objs_.put (DISPLAY_NAMES[ART_HORIZON_ENUM],
- new Display_Art_Horizon ());
- objs_.put (DISPLAY_NAMES[WEAPONS_ENUM],
- new Display_Weapons ());
- }
-
- public static String resolve_name (long enum)
- {
- return (enum < DISPLAY_NAMES.length) ?
- DISPLAY_NAMES[(int)enum] : null;
- }
-
- public static Display_Object create_display_object (String name)
- {
- Object obj = objs_.get (name);
- return (obj == null) ? null : (Display_Object) obj;
- }
-}
-
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Push_Consumer.java b/TAO/examples/Simulator/Sim_Display/Display_Push_Consumer.java
deleted file mode 100644
index 42fca6e7db9..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Push_Consumer.java
+++ /dev/null
@@ -1,248 +0,0 @@
-// $Id$
-//
-// ============================================================================
-//
-//
-// = FILENAME
-// Display_Push_Consumer.java
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// = DESCRIPTION
-// Implemenation of a PushConsumer
-//
-//
-// ============================================================================
-
-
-
-
-
-// The Consumer has to implement the Skeleton Consumer
-
-public class Display_Push_Consumer 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 Navigation navigation_;
- private Weapons weapons_;
- private Display display_;
- private RtecScheduler.handle_tHolder rt_info_;
- private RtecEventChannelAdmin.EventChannel channel_admin_;
- private RtecEventChannelAdmin.ConsumerAdmin consumer_admin_;
- private RtecEventChannelAdmin.ProxyPushSupplier suppliers_;
-
- public Display_Push_Consumer (org.omg.CORBA.ORB orb, Display display)
- {
- orb_ = orb;
- display_ = display;
- }
-
-
- 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_++;
- /*
- if (total_received_ >= TOTAL_MESSAGES)
- {
- orb.disconnect (this);
- System.exit (0);
- }
- */
- for (int i = 0; i < events.length; ++i)
- {
- if(events[i].type_ == ACE_ES_EVENT_NOTIFICATION)
- {
- try
- {
- if (events[i].data_.any_value.type().equal (NavigationHelper.type()))
- {
- navigation_ = NavigationHelper.extract (events[i].data_.any_value);
- display_.update_metrics (navigation_.utilization,
- navigation_.overhead,
- navigation_.arrival_time,
- navigation_.deadline_time,
- navigation_.completion_time,
- navigation_.computation_time);
- display_.update_simulation (Display_Object_Factory.ART_HORIZON_ENUM, this);
- }
- else if (events[i].data_.any_value.type().equal (WeaponsHelper.type()))
- {
- weapons_ = WeaponsHelper.extract (events[i].data_.any_value);
- display_.update_metrics (weapons_.utilization,
- weapons_.overhead,
- weapons_.arrival_time,
- weapons_.deadline_time,
- weapons_.completion_time,
- weapons_.computation_time);
- display_.update_simulation (Display_Object_Factory.WEAPONS_ENUM, this);
- }
- else
- {
- System.out.println ("Demo Consumer: Received an event! ->Number: " + total_received_);
- System.out.println (">>TypeCode in the any does not match!");
- System.out.println ("Id: " + events[i].data_.any_value.type().id ());
- System.out.println ("Name: " + events[i].data_.any_value.type().name ());
- System.out.println ("Kind: " + events[i].data_.any_value.type().kind ());
- }
- }
- catch (org.omg.CORBA.TypeCodePackage.BadKind e)
- {
- System.err.println (e);
- }
- 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_ = new RtecScheduler.handle_tHolder (scheduler_.create (name));
-
- scheduler_.set (rt_info_.value,
- 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);
-
-
- // Register for Notification and Shutdown events
-
-
- RtecEventComm.Event disjunction_designator_ =
- new RtecEventComm.Event (ACE_ES_DISJUNCTION_DESIGNATOR, 0,
- 1, // ttl
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new RtecEventComm.EventData (0, 0, orb_.create_any())
- );
- 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 (0, 0, orb_.create_any())
- );
- RtecEventComm.Event shutdown_event_ =
- new RtecEventComm.Event (ACE_ES_EVENT_SHUTDOWN, 0,
- 1, // ttl
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new TimeBase.ulonglong (0,0),
- new RtecEventComm.EventData (0, 0, orb_.create_any())
- );
-
-
- RtecEventChannelAdmin.Dependency dependencies_[] = new RtecEventChannelAdmin.Dependency[3];
- dependencies_[0] = new RtecEventChannelAdmin.Dependency (disjunction_designator_, rt_info_.value);
- dependencies_[1] = new RtecEventChannelAdmin.Dependency (notification_event_, rt_info_.value);
- dependencies_[2] = new RtecEventChannelAdmin.Dependency (shutdown_event_, rt_info_.value);
-
-
-
- RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS (dependencies_);
-
-
- // 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 (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);
- }
- }
- public Navigation get_navigation ()
- {
- return navigation_;
- }
-
- public Weapons get_weapons ()
- {
- return weapons_;
- }
-
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/TAO/examples/Simulator/Sim_Display/Display_Weapons.java b/TAO/examples/Simulator/Sim_Display/Display_Weapons.java
deleted file mode 100644
index c23e68f15be..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Display_Weapons.java
+++ /dev/null
@@ -1,123 +0,0 @@
-// $Id$
-
-import java.io.*;
-import java.net.*;
-import java.util.*;
-import java.awt.*;
-
-public class Display_Weapons
- extends Panel
- implements Display_Object
-{
- private final static String ONLINE = "Online",
- OFFLINE = "Offline";
- private final static Font FONT_BIG = new Font ("Dialog", Font.BOLD, 14),
- 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_ = new Hashtable ();
- private GridBagLayout gbl_= new GridBagLayout ();
- private GridBagConstraints gbc_ = new GridBagConstraints ();
-
- public Display_Weapons ()
- {
- Label default_label =
- new Label ("No weapons available", Label.CENTER);
-
- 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 Dimension getPreferredSize ()
- {
- return new Dimension (250, 200);
- }
-
- public Dimension getMinimumSize ()
- {
- return new Dimension (250, 100);
- }
-
- public int update_display (Display_Push_Consumer display_push_consumer)
- {
- Weapons weapons = display_push_consumer.get_weapons ();
-
- for (int i = 0; i < weapons.number_of_weapons && i < 5; i++)
- {
- String weapon;
- int status;
- switch (i)
- {
- default:
- 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_.get (weapon);
-
- if (status_label != null)
- status_label.setText ((status == 1) ? ONLINE : OFFLINE);
- else
- {
- if (count_ == 0)
- 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_.put (weapon, status_label);
- }
-
- status_label.setForeground ((status == 1) ?
- Color.lightGray :
- Color.darkGray);
- }
-
- validate ();
- return 0;
- }
-}
diff --git a/TAO/examples/Simulator/Sim_Display/Graph.java b/TAO/examples/Simulator/Sim_Display/Graph.java
deleted file mode 100644
index d8be73b54cb..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Graph.java
+++ /dev/null
@@ -1,163 +0,0 @@
-// $Id$
-
-
-import java.awt.*;
-import java.util.*;
-
-public class Graph extends Canvas
-{
- 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 float local_max_ = 0;
- private boolean max_increased_ = false;
-
- public Graph(String title, int max_value)
- {
- super();
-
- plot_ = new Queue();
- spacing_ = MIN_SPACING;
- title_ = title;
- max_value_ = max_value;
- old_max_value_ = max_value;
- }
-
- public Dimension getMinimumSize ()
- {
- return new Dimension (75, 75);
- }
-
- public Dimension getPreferredSize ()
- {
- return new Dimension (175, 175);
- }
-
- public void addNewData(float new_point)
- {
- Float temp = (Float)plot_.dequeue_tail();
- plot_.enqueue_head(new Float(new_point));
-
- if (new_point > local_max_)
- local_max_ = new_point;
-
- 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;
- }
-
- 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);
- }
-
- public String getKey()
- {
- return title_;
- }
-
- public int getMax()
- {
- return old_max_value_;
- }
-
- 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);
- }
-
- public void updateDisplay(float information)
- {
- addNewData(information);
- repaint();
- }
-}
-
diff --git a/TAO/examples/Simulator/Sim_Display/Graph_Panel.java b/TAO/examples/Simulator/Sim_Display/Graph_Panel.java
deleted file mode 100644
index 2eb6519f7c3..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Graph_Panel.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// $Id$
-
-import java.awt.*;
-import java.awt.event.*;
-import java.util.*;
-
-class Graph_Panel
- extends Panel
- implements ComponentListener,
- ContainerListener
-{
- private final static int VPAD = 4, HPAD = 4,
- MIN_WIDTH = 100,
- SUG_WIDTH = 175;
- private final static Random RAND = new Random (System.currentTimeMillis());
- private static float hue_ = RAND.nextFloat();
-
- private Hashtable graphs_ = new Hashtable();
-
- public Graph_Panel()
- {
- addComponentListener (this);
- addContainerListener (this);
- }
-
- public void addGraph(String name, int max)
- {
- int index = name.lastIndexOf('/');
- String short_name;
-
- if (index != -1)
- short_name = name.substring(index+1);
- else
- short_name = name;
-
- Graph graph = constructGraph(short_name, max);
- graphs_.put(name, graph);
- }
-
- public void updateGraph(String name, float new_value)
- {
- Graph graph = (Graph)graphs_.get(name);
-
- if(graph != null)
- graph.addNewData(new_value);
- }
-
- public Graph getGraph(String name)
- {
- return (Graph)((Container)graphs_.get(name)).getComponent(0);
- }
-
- public void removeGraph(String name)
- {
- graphs_.remove(name);
-
- if (graphs_.size() > 0)
- layoutGraphs();
- else
- removeAll();
- }
-
- public int numGraphs()
- {
- return graphs_.size();
- }
-
- public void clear()
- {
- removeAll();
- }
-
- public void componentResized(ComponentEvent e)
- {
- System.out.println ("Component resized.");
- removeContainerListener (this);
- removeComponentListener (this);
- layoutGraphs ();
- addComponentListener (this);
- addContainerListener (this);
- }
-
- public void componentMoved(ComponentEvent e) {}
- public void componentShown(ComponentEvent e) {}
- public void componentHidden(ComponentEvent e) {}
-
- public void componentAdded(ContainerEvent e)
- {
- System.out.println ("component added.");
- removeContainerListener (this);
- removeComponentListener (this);
- layoutGraphs ();
- addComponentListener (this);
- addContainerListener (this);
- }
-
- public void componentRemoved(ContainerEvent e)
- {
- System.out.println ("component removed.");
- }
-
- private void layoutGraphs ()
- {
- Dimension current_size = getSize ();
- int total_area = current_size.width * current_size.height;
- int num_rows, graphs_per_row, min_width = MIN_WIDTH;
- int graph_area = graphs_.size () *
- (SUG_WIDTH + HPAD) *
- (SUG_WIDTH + VPAD);
- Enumeration graph_enum = graphs_.elements ();
-
- removeAll ();
-
- System.out.println ("Total area: " + total_area + " Graph area: " + graph_area);
-
- if ((total_area < graph_area) ||
- (current_size.width < MIN_WIDTH) ||
- (current_size.height < MIN_WIDTH))
- {
- System.out.println ("adjusting graph size");
- min_width = total_area / graphs_.size ();
- min_width = (int) Math.round (Math.sqrt (min_width));
-
- if (min_width > current_size.height)
- min_width = current_size.height;
- if (min_width > current_size.width)
- min_width = current_size.width;
-
- // Ah, hopeless. Too narrow to draw graphs in this panel.
- if (min_width < MIN_WIDTH)
- {
- System.err.println ("Graph_Panel.layoutGraphs: Giving up!");
- return;
- }
- }
-
- graphs_per_row = current_size.width / (min_width + HPAD);
- num_rows = (graphs_.size () / graphs_per_row) + 1;
-
- setLayout (new GridLayout (num_rows, 1, 0, VPAD));
- for (int i = 0; i < num_rows; i++)
- {
- Panel row = new Panel ();
- row.setLayout (new GridLayout (1, graphs_per_row, HPAD, 0));
-
- for (int j = 0;
- j < graphs_per_row && graph_enum.hasMoreElements ();
- j++)
- {
- Component graph = (Component) graph_enum.nextElement ();
- row.add (graph);
- }
-
- add (row);
- }
-
- validate ();
- }
-
- private final static Graph constructGraph(String label, int max)
- {
- Graph graph = new Graph(label, max);
-
- 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);
-
- graph.setBackground(new_color);
- graph.setForeground(Color.white);
-
- return graph;
- }
-}
diff --git a/TAO/examples/Simulator/Sim_Display/NS_Resolve.java b/TAO/examples/Simulator/Sim_Display/NS_Resolve.java
deleted file mode 100644
index b6a39e63dec..00000000000
--- a/TAO/examples/Simulator/Sim_Display/NS_Resolve.java
+++ /dev/null
@@ -1,112 +0,0 @@
-// $Id$
-// ============================================================================
-//
-//
-// = FILENAME
-// NS_Resolve.java
-//
-// = AUTHOR
-// Michael Kircher (mk1@cs.wustl.edu)
-//
-// = 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 int MULTICAST_SEND_PORT = 10060;
- private static final int MULTICAST_RECEIVE_PORT = 10061;
- private static final int TAO_SERVICEID_NAMESERVICE = 0;
- private static final int TAO_SERVICEID_TRADINGSERVICE = 1;
-
- org.omg.CORBA.Object name_service_;
-
-
- public org.omg.CORBA.Object resolve_name_service (org.omg.CORBA.ORB orb)
- {
- try
- {
- // Create a message with the multicast receive port in it
- ByteArrayOutputStream byte_stream_ = new ByteArrayOutputStream ();
- byte_stream_.write ((int)((MULTICAST_RECEIVE_PORT&0xff00)>>>8));
- byte_stream_.write ((int)(MULTICAST_RECEIVE_PORT&0x00ff));
- byte_stream_.write ((int)((TAO_SERVICEID_NAMESERVICE&0xff00)>>>8));
- byte_stream_.write ((int)(TAO_SERVICEID_NAMESERVICE&0x00ff));
- byte[] msg = byte_stream_.toByteArray();
-
-
- // Define the group for the multicast
-
- InetAddress group = InetAddress.getByName(ACE_DEFAULT_MULTICAST_ADDR);
- // Create the multicast socket at any port you want
- MulticastSocket multicastsocket_ = new MulticastSocket(MULTICAST_SEND_PORT);
- // Create a socket for the answer of the Naming Service
- DatagramSocket socket_ = new DatagramSocket (MULTICAST_RECEIVE_PORT);
- // Give three seconds time for the Naming Service to respond
- socket_.setSoTimeout (3000);
- // Build a packet with the port number in it
- DatagramPacket hello = new DatagramPacket(msg, msg.length,
- group, TAO_DEFAULT_NAME_SERVER_REQUEST_PORT);
-
- // Send the packet
- multicastsocket_.send (hello);
-
- // @@ The restriction right now is that the length of the IOR cannot be longer than 4096
- byte[] buf = new byte[4096];
- // Set up packet which can be received
- DatagramPacket recv = new DatagramPacket (buf, buf.length);
- // Receive a packet or time out
- socket_.receive (recv);
-
- // Determine the length of the IOR
- int length;
- for (length = 0; buf[length] != 0; length++);
-
- // Store the IOR in a String
- String name_service_ior_ = new String (recv.getData (),0,length);
-
- // Convert the String into
- return orb.string_to_object (name_service_ior_);
- }
- 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/Sim_Display/Queue.java b/TAO/examples/Simulator/Sim_Display/Queue.java
deleted file mode 100644
index 7ffaba15c52..00000000000
--- a/TAO/examples/Simulator/Sim_Display/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/Sim_Display/Sim_Panel.java b/TAO/examples/Simulator/Sim_Display/Sim_Panel.java
deleted file mode 100644
index 42ed5d7b0f2..00000000000
--- a/TAO/examples/Simulator/Sim_Display/Sim_Panel.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// $Id$
-
-import java.awt.*;
-import java.util.*;
-import java.io.*;
-
-class Sim_Panel extends Panel
-{
- private GridBagLayout gbl_ = new GridBagLayout ();
- private GridBagConstraints gbc_ = new GridBagConstraints ();
-
- private Hashtable sims_ = new Hashtable();
-
- public Sim_Panel()
- {
- setLayout (gbl_);
- gbc_.gridy = 0;
- gbc_.weightx= 1;
- gbc_.gridwidth = 1;
- gbc_.gridheight = 1;
- gbc_.gridx = GridBagConstraints.RELATIVE;
- gbc_.anchor = GridBagConstraints.CENTER;
- }
-
- public void add_simulator (String name, Display_Object disp_obj)
- {
- String short_name;
-
- if (! sims_.contains (name))
- {
- Label label = new Label(name, Label.CENTER);
- Panel panel = new Panel();
-
- label.setFont(new Font("Dialog", Font.BOLD, 12));
-
- panel.setLayout(new BorderLayout(0, 2));
- panel.add("Center", (Component)disp_obj);
- panel.add("North", label);
- sims_.put(name, panel);
-
- gbl_.setConstraints (panel, gbc_);
- add (panel);
- }
- }
-
- public void update_simulator (String name, Display_Push_Consumer display_push_consumer)
-
- {
- Container panel = (Container) sims_.get (name);
- Display_Object sim = (panel != null) ? (Display_Object) panel.getComponent(0) : null;
-
- if(sim != null)
- sim.update_display (display_push_consumer);
- }
-
- public Display_Object get_simulator(String name)
- {
- return (Display_Object)((Container) sims_.get (name)).getComponent (0);
- }
-}
-
-
-
-
diff --git a/TAO/examples/Simulator/ss b/TAO/examples/Simulator/ss
deleted file mode 100755
index 12177907b25..00000000000
--- a/TAO/examples/Simulator/ss
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/ksh
-# $Id$
-
-# =TITLE
-# Restart script
-#
-# =AUTHOR
-# Michael Kircher (mk1@cs.wustl.edu)
-#
-# =DESCRIPTION
-# This script restarts the Naming, Scheduling and Event Service,
-# if "clean" is specified as a parameter, then the old
-# services are only killed and not restarted
-
-# save the old working dir
-old_dir=$cwd
-# get the user name
-login=`whoami`
-# get the user id
-uid=`id | cut -c5-20 | cut -f1 -d"("`
-
-#### Set TAO_ROOT, if it wasn't set.
-if [ ! "$TAO_ROOT" ]; then
- if [ "$ACE_ROOT" ]; then
- TAO_ROOT=$ACE_ROOT/TAO
- else
- echo $0: you must set ACE_ROOT or TAO_ROOT!
- exit 1
- fi
-fi
-
-echo // Killing the old services
-
-ps -ef | grep Service | grep $login | grep -v grep | cut -c10-17 > /tmp/pids$login
-
-if [ -s /tmp/pids$login ]; then
- pids=`cat /tmp/pids$login`
- kill $pids
-fi
-
-# stop here if "ss clean" was called
-if [ $1 ]; then
- if [ $1 = "clean" ]; then
- exit
- fi
-fi
-
-echo // Initializing the log file
-
-if [ -r /tmp/logfile_$login ]; then
- rm /tmp/logfile_$login
-fi
-
-echo // Logfile for the script "ss" which startes Name, Scheduling and Event Service > /tmp/logfile_$login
-
-nameserviceport=`expr 20023 + $uid`
-schedulerserviceport=`expr 60023 + $uid`
-eventserviceport=`expr 100023 + $uid`
-
-cd $TAO_ROOT/orbsvcs/Naming_Service
-./Naming_Service -ORBport $nameserviceport >> /tmp/logfile_$login 2>&1 &
-
-sleep 1
-
-IOR=`cat /tmp/logfile_$login | grep IOR | cut -c22-300 | cut -f1 -d">" `
-
-echo // The IOR of the Naming Service: $IOR
-
-echo // Started Naming Service on port $nameserviceport
-
-cd $TAO_ROOT/orbsvcs/Scheduling_Service
-./Scheduling_Service -ORBnameserviceior $IOR -ORBport $schedulerserviceport >> /tmp/logfile_$login 2>&1 &
-
-sleep 1
-
-echo // Started Scheduling Service on port $schedulerserviceport
-
-cd $TAO_ROOT/orbsvcs/Event_Service
-./Event_Service -ORBnameserviceior $IOR -ORBport $eventserviceport >> /tmp/logfile_$login 2>&1 &
-
-cd $old_dir
-echo // Started Event Service on port $eventserviceport
-
-echo "// Enjoy the use ;-)"
-ps -ef | grep Service | grep -v grep