package Savage.Submarines.SSGNOhioUnitedStates; /* Copyright (c) 1995-2019 held by the author(s). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Web3D Consortium (http://www.web3D.org) nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ import java.util.*; import org.web3d.x3d.jsail.Core.*; import org.web3d.x3d.jsail.EnvironmentalEffects.*; import org.web3d.x3d.jsail.fields.*; import org.web3d.x3d.jsail.Geometry3D.*; import org.web3d.x3d.jsail.Grouping.*; import org.web3d.x3d.jsail.Navigation.*; import org.web3d.x3d.jsail.Rendering.*; import org.web3d.x3d.jsail.Shape.*; import org.web3d.x3d.jsail.Texturing.*; // Javadoc annotations follow, see below for source. /** *

Ohio Class SSBN or SSGN.

Related links: Ohio.java source, Ohio catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

meta tags   Document Metadata
title Ohio.x3d
description Ohio Class SSBN or SSGN
creator Stephen Matsuba
created 22 July 2007
modified 9 November 2015
reference http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm
reference http://www.chinfo.navy.mil/navpalib/cno/n87/usw/issue_6/ssgn.html
reference SsgnSecondCareer.pdf
reference http://www.chinfo.navy.mil/navpalib/cno/n87/future/ssgn.html
reference http://www.ohio.navy.mil/html/conversion.htm
subject Ohio Class Guided Missile Submarine (SSGN)
identifier https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/Ohio.x3d
generator X3D-Edit, https://savage.nps.edu/X3D-Edit
license ../../license.html
 

This program uses the X3D Java Scene Access Interface Library (X3DJSAIL). It has been produced using the X3dToJava.xslt stylesheet to create Java source code from an .x3d model.

* @author Stephen Matsuba */ public class Ohio { /** Default constructor to create this object. */ public Ohio () { initialize(); } /** Create and initialize the X3D model for this object. */ public final void initialize() { x3dModel = new X3DObject().setProfile(X3DObject.PROFILE_INTERCHANGE).setVersion(X3DObject.VERSION_3_0) .setHead(new headObject() .addMeta(new metaObject().setName(metaObject.NAME_TITLE ).setContent("Ohio.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("Ohio Class SSBN or SSGN")) .addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Stephen Matsuba")) .addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("22 July 2007")) .addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("9 November 2015")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.chinfo.navy.mil/navpalib/cno/n87/usw/issue_6/ssgn.html")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("SsgnSecondCareer.pdf")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.chinfo.navy.mil/navpalib/cno/n87/future/ssgn.html")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://www.ohio.navy.mil/html/conversion.htm")) .addMeta(new metaObject().setName(metaObject.NAME_SUBJECT ).setContent("Ohio Class Guided Missile Submarine (SSGN)")) .addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/Ohio.x3d")) .addComments(" ") .addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("X3D-Edit, https://savage.nps.edu/X3D-Edit")) .addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../../license.html"))) .setScene(new SceneObject() .addChild(new BackgroundObject().setGroundAngle(new float[] {1.309f,1.570796f}).setGroundColor(new MFColorObject(new float[] {0.0f,0.2f,0.4f,0.05f,0.25f,0.6f,0.1f,0.2f,0.4f})).setSkyAngle(new float[] {1.309f,1.571f}).setSkyColor(new MFColorObject(new float[] {0.1f,0.1f,0.4f,0.1f,0.125f,0.4f,0.1f,0.1f,0.3f}))) .addChild(new BackgroundObject().setGroundAngle(new float[] {1.57079f}).setGroundColor(new MFColorObject(new float[] {1.0f,0.8f,0.6f,0.6f,0.4f,0.2f})).setSkyAngle(new float[] {0.2f,1.57079f}).setSkyColor(new MFColorObject(new float[] {1.0f,1.0f,0.0f,1.0f,1.0f,1.0f,0.2f,0.2f,1.0f}))) .addChild(new ViewpointObject().setDescription("OHIO starboard side 200m").setPosition(0.0f,0.0f,200.0f)) .addChild(new ViewpointObject().setDescription("OHIO from above 200m").setOrientation(1.0f,0.0f,0.0f,-1.570796f).setPosition(0.0f,200.0f,0.0f)) .addChild(new ViewpointObject().setDescription("OHIO behind sail").setOrientation(0.0f,1.0f,0.0f,-1.570796f).setPosition(0.0f,20.0f,0.0f)) .addChild(new WorldInfoObject().setInfo(new String[] {"http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm"}).setTitle("Ohio Class Guided Missile Submarine (SSGN)") .setMetadata(new MetadataSetObject().setName("SMAL").setReference("https://savage.nps.edu/Savage/Tools/SMAL/SMAL.html") .addValue(new MetadataStringObject().setName("version").setValue(new String[] {"1.0"}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"This is the version of SMAL employed, not of the model."}))) .addValue(new MetadataSetObject().setName("EntityDefinition") .addComments(" Identifying metadata for the current simulation of interest ") .addValue(new MetadataSetObject().setName("Classification") .addValue(new MetadataStringObject().setName("level").setValue(new String[] {"UNCLASSIFIED"}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"UNCLASSIFIED","FOUO","CONFIDENTIAL","SECRET"}))) .addValue(new MetadataStringObject().setName("reference").setValue(new String[] {"http://www.fas.org/man/dod-101/sys/ship/ssgn-726.htm"}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The published source of classified information, if any, contained in the Metadata."}))) .setMetadata(new MetadataStringObject().setName("rationale").setReference("http://www.fas.org/man/dod-101/sys/ship/ssgn-726.htm").setValue(new String[] {"All information derived from an unclassified public source"}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The specific element which contains the information classifying this document."})))) .addValue(new MetadataSetObject().setName("IdentificationParameters") .addValue(new MetadataStringObject().setName("name").setValue(new String[] {"Ohio Class Guided Missile Submarine (SSGN)"}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The plain language name of the vehicle this model represents, i.e. the base class (DDG-51), or vehicle designation (M1A2)."})))) .addValue(new MetadataSetObject().setName("X3DArchiveModel").setReference("https://savage.nps.edu/Savage/Submarines/SSGN-Ohio-UnitedStates/Ohio.x3d") .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"This is a placeholder element which ensures the proper validation of autogenerated SMAL code."}))) .addValue(new MetadataSetObject().setName("PhysicalParameters") .addValue(new MetadataSetObject().setName("PhysicalConstraints") .addValue(new MetadataFloatObject().setName("height").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {10.06f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The maximum structural height of the object in meters. This may be used for clearance checking or other calculations."}))) .addValue(new MetadataFloatObject().setName("width").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {10.06f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The maximum width, beam, or wingspan of the vehicle in meters. This may be used for clearance checking or other calculations."}))) .addValue(new MetadataFloatObject().setName("length").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {170.69f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The maximum structural length of the object in meters. This may be used for clearance checking or other calculations."}))) .addComments(" FAS does not report a \"draft\" for an SSGN, only a displacement in tone. So, I took a swag at it being about 3/4 submerged when on the surface (tdn) ") .addValue(new MetadataFloatObject().setName("draft").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {6.4f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The vertical distance in meters from the deepest point (keel or other structure) to the waterline of a vehicle at its stated displacement or gross weight."}))) .addValue(new MetadataFloatObject().setName("grossWeight").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {17009713.0f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The standard operational weight of the vehicle in kilograms, usable in physics calculations."})))) .addValue(new MetadataSetObject().setName("DynamicResponseConstraints") .addValue(new MetadataFloatObject().setName("maximumSpeed").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {46.3f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The maximum rated speed for this vehicle in kph."}))) .addValue(new MetadataFloatObject().setName("cruiseSpeed").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {36.8f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The published cruise speed for this vehicle in kph."}))) .addValue(new MetadataFloatObject().setName("maximumDepth").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {1000.0f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The absolute depth for this submersible in feet or meters."}))) .addValue(new MetadataFloatObject().setName("cruiseDepth").setReference("http://www.fas.org/nuke/guide/usa/slbm/ssbn-726.htm").setValue(new float[] {800.0f}) .setMetadata(new MetadataStringObject().setName("appinfo").setValue(new String[] {"The cruise depth for this submersible in feet or meters."})))) .addComments(" MetadataSet containerField='value' name='TacticalConstraints'> shallow copy * of the X3D model. * @see X3DObject * @return Ohio model */ public X3DObject getX3dModel() { return x3dModel; } /** Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object. * @param args array of input parameters, provided as arguments * @see X3DObject.handleArguments(args) * @see X3DObject.validationReport() * @see CommandLine * @see CommandLine.USAGE * @see ConfigurationProperties */ public static void main(String args[]) { X3DObject thisExampleX3dObject = new Ohio().getX3dModel(); boolean hasArguments = (args != null) && (args.length > 0); boolean validate = true; // default boolean argumentsLoadNewModel = false; String fileName = new String(); if (args != null) { for (String arg : args) { if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate")) { validate = true; // making sure } if (arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_X3D) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_CLASSICVRML) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_X3DB) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_VRML97) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_EXI) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_GZIP) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_ZIP) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_HTML) || arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_XHTML)) { argumentsLoadNewModel = true; fileName = arg; } } } if (argumentsLoadNewModel) System.out.println("WARNING: \"Ohio\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored."); else if (hasArguments) // if no arguments provided, this method produces usage warning thisExampleX3dObject.handleArguments(args); if (validate) { System.out.print("Java program \"Ohio\" self-validation test results: "); String validationResults = thisExampleX3dObject.validationReport(); System.out.println(validationResults); } } }