summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java')
-rw-r--r--TAO/examples/Simulator/Sim_Display/Display_Object_Factory.java42
1 files changed, 0 insertions, 42 deletions
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;
- }
-}
-