/** * Returns a read-only Map that maps PhysicalBody names to instances. * Names may be aliases and if so will map to the original instances. * * @return read-only Map from names to PhysicalBody instances, or null if * no instances */ public Map getNamedPhysicalBodies() { if (bodyMap != null) return bodyMap ; bodyMap = createMap("PhysicalBody") ; return bodyMap ; }
/** * Returns a read-only Map that maps generic object names to * instances. Names may be aliases and if so will map to the original * instances. * * @return read-only Map from names to generic object instances, or * null if no instances * @see #getGenericObjects */ public Map getNamedGenericObjects() { if (genericObjectMap != null) return genericObjectMap ; genericObjectMap = createMap("Object") ; return genericObjectMap ; }
/** * Returns a read-only Map that maps PhysicalEnvironment names to * instances. Names may be aliases and if so will map to the original * instances. * * @return read-only Map from names to PhysicalEnvironment instances, or * null if no instances */ public Map getNamedPhysicalEnvironments() { if (environmentMap != null) return environmentMap ; environmentMap = createMap("PhysicalEnvironment") ; return environmentMap ; }
/** * Returns a read-only Map that maps InputDevice names to instances. * Names may be aliases and if so will map to the original instances. All * InputDevice instances in the map are initialized and registered with * any PhysicalEnvironments that reference them. * * @return read-only Map from names to InputDevice instances, or * null if no instances * @see #getInputDevices */ public Map getNamedInputDevices() { if (deviceMap != null) return deviceMap ; deviceMap = createMap("Device") ; return deviceMap ; }
/** * Returns a read-only Map that maps Viewer names to instances. * Names may be aliases and if so will map to the original instances. * The Viewers will have incorporated any PhysicalEnvironment and * PhysicalBody objects specfied for them in the configuration file, and * will be attached to any ViewingPlatforms specified for them.<p> * * @return read-only Map from names to Viewer instances, or * null if no instances */ public Map getNamedViewers() { if (viewerMap != null) return viewerMap ; viewerMap = createMap("View") ; return viewerMap ; }
/** * Returns a read-only Map that maps ViewingPlatform names to instances. * Names may be aliases and if so will map to the original instances. The * ConfigContainer class itself does not attach the ViewingPlatform * instances to any scengraph components or universe Locales; they are not * "live" until made so by a separate client such as ConfiguredUniverse. * * @return read-only Map from names to ViewingPlatform instances, or * null if no instances */ public Map getNamedViewingPlatforms() { if (platformMap != null) return platformMap ; platformMap = createMap("ViewPlatform") ; return platformMap ; }
/** * Returns a read-only Map that maps Sensor names to instances. Names may * be aliases and if so will map to the original instances. The * associated InputDevices are all initialized and registered with any * PhysicalEnvironments that reference them.<p> * * With the sole exception of the Sensor assigned to the head tracker, * none of the Sensors defined in the configuration file are placed into * the Sensor array maintained by a PhysicalEnvironment. * * @return read-only Map from names to Sensor instances, or * null if no instances */ public Map getNamedSensors() { if (sensorMap != null) return sensorMap ; sensorMap = createMap("Sensor") ; return sensorMap ; }
/** * Returns a read-only Map that maps ViewPlatformBehavior names to * instances. Names may be aliases and if so will map to the original * instances.<p> * * The behaviors are attached to any ViewingPlatforms that specified them; * that is, the <code>setViewPlatformBehavior</code> and * <code>setViewingPlatform</code> methods of ViewingPlatform and * ViewPlatformBehavior have been called if appropriate. However, a * behavior's <code>initialize</code> method is not called until the * ViewingPlatform to which it is attached is made live.<p> * * @return read-only Map from names to ViewPlatformBehavior instances, or * null if no instances * @see #getViewPlatformBehaviors */ public Map getNamedViewPlatformBehaviors() { if (behaviorMap != null) return behaviorMap ; behaviorMap = createMap("ViewPlatformBehavior") ; return behaviorMap ; }