package Savage.Space.Satellites;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Interpolation.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Texturing.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Radarsat 2 Remote Sensing Satellite. </p>
 <p> Related links: Catalog page <a href="../../../../Space/Satellites/RadarsatPrototypeIndex.html" target="_blank">RadarsatPrototype</a>,  source <a href="../../../../Space/Satellites/RadarsatPrototype.java">RadarsatPrototype.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../Space/Satellites/RadarsatPrototype.x3d">RadarsatPrototype.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Radarsat 2 Remote Sensing Satellite </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Derek Sebalj </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 10 January 2007 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 14 February 2016 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.radarsat2.info" target="_blank">http://www.radarsat2.info</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/Savage/Space/Satellites/RadarsatPrototype.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/Space/Satellites/RadarsatPrototype.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.3, <a href="https://www.web3d.org/x3d/tools/X3D-Edit" target="_blank">https://www.web3d.org/x3d/tools/X3D-Edit</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../Space/Satellites/../../license.html">../../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author Derek Sebalj
 */

public class RadarsatPrototype
{
	/** Default constructor to create this object. */
	public RadarsatPrototype ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_1)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("RadarsatPrototype.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Radarsat 2 Remote Sensing Satellite"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Derek Sebalj"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("10 January 2007"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("14 February 2016"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.radarsat2.info"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/Space/Satellites/RadarsatPrototype.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("SavageVehicleMetadataTemplate")
      .setMetadata(new MetadataSet().setName("SMAL").setReference("https://www.web3d.org/x3d/content/examples/Savage/Tools/SMAL/SMAL.html")
        .setMetadata(new MetadataString().setName("version").setValue(new String[] {"1.0"})
          .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"This is the version of SMAL employed, not of the model."})))
        .setMetadata(new MetadataSet().setName("EntityDefinition")
          .addComments(" Identifying metadata for the current simulation of interest ")
          .setMetadata(new MetadataSet().setName("Classification")
            .setMetadata(new MetadataString().setName("level").setValue(new String[] {"UNCLASSIFIED"})
              .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"UNCLASSIFIED","FOUO","CONFIDENTIAL","SECRET"})))
            .setMetadata(new MetadataString().setName("reference").setValue(new String[] {"http://www.radarsat2.info"})
              .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The published source of classified information, if any, contained in the Metadata."})))
            .setMetadata(new MetadataString().setName("rationale").setValue(new String[] {"not applicable"})
              .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The specific element which contains the information classifying this document."}))))
          .setMetadata(new MetadataSet().setName("IdentificationParameters")
            .setMetadata(new MetadataString().setName("name").setValue(new String[] {"Radarsat2"})
              .setMetadata(new MetadataString().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)."}))))
          .setMetadata(new MetadataSet().setName("X3DArchiveModel")
            .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"This is a placeholder element which ensures the proper validation of autogenerated SMAL code."})))
          .setMetadata(new MetadataSet().setName("PhysicalParameters")
            .setMetadata(new MetadataSet().setName("PhysicalConstraints")
              .setMetadata(new MetadataFloat().setName("height").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum structural height of the object in meters. This may be used for clearance checking or other calculations."})))
              .setMetadata(new MetadataFloat().setName("width").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().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."})))
              .setMetadata(new MetadataFloat().setName("length").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum structural length of the object in meters. This may be used for clearance checking or other calculations."})))
              .setMetadata(new MetadataFloat().setName("draft").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().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."})))
              .setMetadata(new MetadataFloat().setName("wheelbase").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The longitudinal distance in meters from the center of the forwardmost roadwheel axle to the center of the rearmost roadwheel axle on this vehicle."})))
              .setMetadata(new MetadataFloat().setName("trackWidth").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The horizontal distance in meters from the rightmost edge of the right wheel or track to the leftmost edge of the left wheel or track on this vehicle."})))
              .setMetadata(new MetadataFloat().setName("grossWeight").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The standard operational weight of the vehicle in pounds or kilograms. This may be used in physics calculations."}))))
            .setMetadata(new MetadataSet().setName("DynamicResponseConstraints")
              .setMetadata(new MetadataFloat().setName("centerOfGravity").setValue(new double[] {0.0,0.0,0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"Sets the Center of Gravity of the object as an (x, y, z) distance in meters from the physical center of the object, which is located at (0, 0, 0)."})))
              .setMetadata(new MetadataFloat().setName("aerodynamicCenter").setValue(new double[] {0.0,0.0,0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"Sets the Aerodynamic Center of the object as an (x, y, z) distance in meters from the physical center of the object, which is located at (0, 0, 0)."})))
              .setMetadata(new MetadataFloat().setName("centerOfBuoyancy").setValue(new double[] {0.0,0.0,0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"Sets the Center of Buoyancy of the object as an (x, y, z) distance in meters from the physical center of the object, which is located at (0, 0, 0)."})))
              .setMetadata(new MetadataFloat().setName("maximumSpeed").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum rated speed for this vehicle in mph or kph."})))
              .setMetadata(new MetadataFloat().setName("cruiseSpeed").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The published cruise speed for this vehicle in mph or kph."})))
              .setMetadata(new MetadataFloat().setName("maximumAltitude").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The absolute ceiling for this aircraft in feet or meters."})))
              .setMetadata(new MetadataFloat().setName("cruiseAltitude").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The cruise ceiling for this aircraft in feet or meters."})))
              .setMetadata(new MetadataFloat().setName("maximumDepth").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The absolute depth for this submersible in feet or meters."})))
              .setMetadata(new MetadataFloat().setName("cruiseDepth").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The cruise depth for this submersible in feet or meters."})))
              .setMetadata(new MetadataFloat().setName("maximumAcceleration").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The ideal maximum acceleration achievable by this vehicle in feet or meters per second squared, as in at maximum Power excess for aircraft."})))
              .setMetadata(new MetadataFloat().setName("maximumDeceleration").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The ideal best braking performance achievable by this vehicle in feet or meters per second squared."})))
              .setMetadata(new MetadataFloat().setName("minimumTurnRadius").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The minimum turning radius for this vehicle in feet or meters, as in at best cornering speed for aircraft."})))
              .setMetadata(new MetadataFloat().setName("maximumTurnRate").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum turning rate for this vehicle in degrees per second, as in at best cornering speed for aircraft."})))
              .setMetadata(new MetadataFloat().setName("maximumFuelCapacity").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum usable internal fuel capacity of this vehicle in liters."}))))
            .setMetadata(new MetadataSet().setName("TacticalConstraints")
              .setMetadata(new MetadataFloat().setName("maximumAirThreatRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum effective range in miles or kilometers of the longest-range anti-aircraft weapon on this platform."})))
              .setMetadata(new MetadataFloat().setName("maximumSurfaceThreatRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum effective range in miles or kilometers of the longest-range anti-surface weapon on this platform."})))
              .setMetadata(new MetadataFloat().setName("maximumSubsurfaceThreatRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum effective range in miles or kilometers of the longest-range anti-submarine weapon on this platform."})))
              .setMetadata(new MetadataFloat().setName("maximumAirDetectionRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum detection range of the longest-range air detection sensor on this platform."})))
              .setMetadata(new MetadataFloat().setName("maximumSurfaceDetectionRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the overall type of this object (for vehicles this value should be 1)."})))
              .setMetadata(new MetadataFloat().setName("maximumSubsurfaceDetectionRange").setValue(new double[] {0.0})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The maximum detection range of the longest-range subsurface detection sensor on this platform."})))))
          .setMetadata(new MetadataSet().setName("CurrentConditionParameters")
            .addComments(" <MetadataString name=\"appinfo\" value=\"This is a placeholder element which ensures the proper validation of autogenerated SMAL code.\"/> "))
          .setMetadata(new MetadataSet().setName("NetworkedCommunicationParameterSet")
            .setMetadata(new MetadataSet().setName("DisConfiguration")
              .setMetadata(new MetadataInteger().setName("entityKind").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the overall type of this object (for vehicles this value should be 1)."})))
              .setMetadata(new MetadataInteger().setName("entityDomain").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the domain of operations of this object (air, surface, sub-surface, etc.)."})))
              .setMetadata(new MetadataInteger().setName("entityCountry").setValue(new int[] {225})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the country of origin of this object (the value for United States is 225)."})))
              .setMetadata(new MetadataInteger().setName("entityCategory").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the type of this vehicle (cruiser or destroyer, tank or truck, bomber or fighter, etc.)."})))
              .setMetadata(new MetadataInteger().setName("entitySubCategory").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the class designation of this vehicle (CG-47 Ticonderoga, DDG-51 Arleigh Burke, M1A2, M880, B-52, F-22."})))
              .setMetadata(new MetadataInteger().setName("entitySpecific").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for the specific unit or variant of this object (CG-68, DDG-77, HMMVW w/TOW package, etc.)."})))
              .setMetadata(new MetadataInteger().setName("entityExtra").setValue(new int[] {1})
                .setMetadata(new MetadataString().setName("appinfo").setValue(new String[] {"The DIS enumeration for optional equipment or configurations for this vehicle."}))))))))
    .addComments(" TODO: replace Protos with DEF/USE if they are not going to be reused externally ")
    .addChild(new ProtoDeclare("SolarPanel").setName("SolarPanel")
      .setProtoBody(new ProtoBody()
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setTexture(new ImageTexture().setUrl(new String[] {"grill.png","https://www.web3d.org/x3d/content/examples/Savage/Space/Satellites/grill.png","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter18-TextureMapping/grill.png"}))
            .setTextureTransform(new TextureTransform().setCenter(0.5,0.5).setScale(16.0,16.0)))
          .setGeometry(new IndexedFaceSet().setCoordIndex(new int[] {0,1,2,3,-1,7,6,5,4,-1,0,4,5,1,-1,1,5,6,2,-1,2,6,7,3,-1,3,7,4,0}).setTexCoordIndex(new int[] {0,1,2,3,4,5,6,7})
            .setCoord(new Coordinate().setPoint(new MFVec3f(new double[] {-.9,-.9,0.05,.9,-.9,0.05,.9,.9,0.05,-.9,.9,0.05,-.9,-.9,-0.05,.9,-.9,-0.05,.9,.9,-0.05,-.9,.9,-0.05})))))))
    .addChild(new ProtoDeclare("SolarPanelHinge").setName("SolarPanelHinge")
      .setProtoBody(new ProtoBody()
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material()))
          .setGeometry(new Cylinder().setHeight(.75).setRadius(.05)))))
    .addChild(new ProtoDeclare("SARHinge").setName("SARHinge")
      .setProtoBody(new ProtoBody()
        .addChild(new Shape()
          .setGeometry(new Box().setSize(.1,.25,1.5))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.05,.05,.05))))))
    .addChild(new ProtoDeclare("ShortSARPanel").setName("ShortSARPanel")
      .setProtoBody(new ProtoBody()
        .addChild(new Shape()
          .setGeometry(new Box().setSize(4.2,.25,1.5))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.1,.1,.1).setShininess(1))))))
    .addChild(new ProtoDeclare("LongSARPanel").setName("LongSARPanel")
      .setProtoBody(new ProtoBody()
        .addChild(new Shape()
          .setGeometry(new Box().setSize(5.0,.25,1.5))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.1,.1,.1).setShininess(1))))))
    .addChild(new Group("Spacecraft")
      .addChild(new Transform("Satellite").setRotation(0.0,1.0,0.0,1.57).setTranslation(0.0,20.0,0.0)
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57)
          .addChild(new Shape("SatBus")
            .setGeometry(new Box("SatelliteStructure").setSize(1.36,3.7,1.36))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.95,.65,.11).setEmissiveColor(1.0,1.0,0.0).setShininess(1))))
          .addChild(new Transform().setRotation(0.0,0.0,1.0,1.57)
            .addChild(new Shape()
              .setGeometry(new Cylinder().setHeight(10.5).setRadius(.025))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(.1,.1,.1).setShininess(1)))))
          .addChild(new Transform().setTranslation(0.0,1.9,0.0)
            .addChild(new Shape()
              .setGeometry(new Cylinder("DockingRing").setHeight(.2).setRadius(.68))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(1.0,1.0,1.0))))
            .addChild(new Shape()
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(0.0,0.0,0.0)))
              .setGeometry(new Cylinder().setHeight(.205).setRadius(.65))))
          .addChild(new Transform().setTranslation(0.0,-1.9,.75)
            .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material()))
                .setGeometry(new Cylinder().setHeight(.5).setRadius(.1)))
              .addChild(new Transform().setTranslation(0.0,.2,0.0)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material()))
                  .setGeometry(new Sphere().setRadius(.15)))
                .addChild(new Transform().setTranslation(0.0,.3,0.0)
                  .addChild(new Transform().setRotation(1.0,0.0,0.0,1.0)
                    .addChild(new Shape()
                      .setGeometry(new Cylinder().setHeight(.1).setRadius(.35))
                      .setAppearance(new Appearance()
                        .setMaterial(new Material()))))))))
          .addChild(new Group("InnerVertESSTPosX")
            .addChild(new Transform("InnerVertESSTBackPosX").setRotation(1.0,0.0,0.0,.32).setTranslation(.85,-1.0,-.325)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                .setGeometry(new Cylinder("ESSTruss").setHeight(2.2).setRadius(.025))))
            .addChild(new Transform("InnerVertESSTFrontPosX").setRotation(1.0,0.0,0.0,-.32).setTranslation(.85,-1.0,.325)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                .setGeometry(new Cylinder().setUSE("ESSTruss")))))
          .addChild(new Group("InnerVertESSTNegX")
            .addChild(new Transform("InnerVertESSTBackNegX").setRotation(1.0,0.0,0.0,.32).setTranslation(-.85,-1.0,-.325)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                .setGeometry(new Cylinder().setUSE("ESSTruss"))))
            .addChild(new Transform("InnerVertESSTFrontNegX").setRotation(1.0,0.0,0.0,-.32).setTranslation(-.85,-1.0,.325)
              .addChild(new Shape()
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                .setGeometry(new Cylinder().setUSE("ESSTruss")))))
          .addChild(new Transform().setTranslation(6.1,0.0,0.0)
            .addChild(new Group()
              .addChild(new Transform("OuterVertESSTBackPosX").setRotation(1.0,0.0,0.0,.32).setTranslation(-.85,-1.0,-.325)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                  .setGeometry(new Cylinder().setUSE("ESSTruss"))))
              .addChild(new Transform("ESSTConnectPosX").setTranslation(-.85,0.0,0.0)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                  .setGeometry(new Sphere().setRadius(.05)))
                .addChild(new Transform().setRotation(0.0,.10,1.0,-2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape("OuterTruss")
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,-.10,1.0,-2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,-0.1,1.0,2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,.10,1.0,2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025))))))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-.32).setTranslation(-.85,-1.0,.325)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                  .setGeometry(new Cylinder().setUSE("ESSTruss"))))))
          .addChild(new Transform().setTranslation(-4.4,0.0,0.0)
            .addChild(new Group()
              .addChild(new Transform().setRotation(1.0,0.0,0.0,.32).setTranslation(-.85,-1.0,-.325)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))
                  .setGeometry(new Cylinder().setUSE("ESSTruss"))))
              .addChild(new Transform().setTranslation(-.85,0.0,0.0)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                  .setGeometry(new Sphere().setRadius(.05)))
                .addChild(new Transform().setRotation(0.0,-0.1,1.0,2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,.10,1.0,2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,.10,1.0,-2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025)))))
                .addChild(new Transform().setRotation(0.0,-0.1,1.0,-2.01)
                  .addChild(new Transform().setCenter(0.0,-2.5,0.0).setTranslation(0.0,2.4,0.0)
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setShininess(1).setSpecularColor(.1,.1,.1)))
                      .setGeometry(new Cylinder().setHeight(4.7).setRadius(.025))))))
              .addChild(new Transform().setRotation(1.0,0.0,0.0,-.32).setTranslation(-.85,-1.0,.325)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(.1,.1,.1).setEmissiveColor(.1,.1,.1).setShininess(1)))
                  .setGeometry(new Cylinder().setUSE("ESSTruss"))))))
          .addChild(new Transform().setTranslation(0.0,-2.0,0.0)
            .addChild(new Shape()
              .setGeometry(new Box().setSize(1.5,.25,1.5))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(.1,.1,.1).setShininess(1)))))
          .addChild(new Viewpoint().setDescription("TopOfSat").setOrientation(1.0,0.0,0.0,-0.8).setPosition(0.0,10.0,10.0))
          .addChild(new Group("SolarPanelPosX")
            .addChild(new Transform("SolarPanelRHS").setTranslation(.7,1.0,.6)
              .addChild(new Transform().setRotation(1.0,0.0,0.0,.75)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(.8,.8,.8).setShininess(1)))
                  .setGeometry(new Extrusion().setCreaseAngle(3.1416).setCrossSection(new MFVec2f(new double[] {0.0,0.0,0.0,.25,1.5,.9,1.5,-.9,0.0,-.25,0.0,0.0,.4,0.0,.4,.2,.425,.25,.475,.28,.5,.3,1.2,.6,1.225,.575,1.25,.55,1.275,.525,1.3,.5,1.3,-.5,1.275,-.525,1.25,-.55,1.225,-.58,1.2,-.6,.5,-.3,.475,-.28,.425,-.25,.4,-.2,.4,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.1}))))
                .addChild(new Transform().setTranslation(1.55,0.0,.05)
                  .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                  .addChild(new Transform().setTranslation(.95,0.0,0.0)
                    .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))
                    .addChild(new Transform().setTranslation(.95,0.0,0.0)
                      .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                      .addChild(new Transform().setTranslation(.95,0.0,0.0)
                        .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))
                        .addChild(new Transform().setTranslation(.95,0.0,0.0)
                          .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                          .addChild(new Transform().setTranslation(.95,0.0,0.0)
                            .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))))))))))
            .addChild(new TimeSensor("Clock").setCycleInterval(30.0).setLoop(true))
            .addChild(new OrientationInterpolator("SolarPanelRHSPath").setKey(new double[] {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.628,1.0,0.0,0.0,1.256,1.0,0.0,0.0,1.884,1.0,0.0,0.0,2.512,1.0,0.0,0.0,3.14,1.0,0.0,0.0,3.768,1.0,0.0,0.0,4.396,1.0,0.0,0.0,4.924,1.0,0.0,0.0,5.552,1.0,0.0,0.0,6.28})))
            .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("SolarPanelRHSPath").setToField("set_fraction"))
            .addChild(new ROUTE().setFromNode("SolarPanelRHSPath").setFromField("value_changed").setToNode("SolarPanelRHS").setToField("set_rotation")))
          .addChild(new Group("SolarPanelNegX")
            .addChild(new Transform("SolarPanelLHS").setTranslation(-.7,1.0,-.6)
              .addChild(new Transform().setRotation(1.0,0.0,0.0,.75)
                .addChild(new Shape()
                  .setAppearance(new Appearance()
                    .setMaterial(new Material().setDiffuseColor(.8,.8,.8)))
                  .setGeometry(new Extrusion().setCreaseAngle(2.0).setCrossSection(new MFVec2f(new double[] {0.0,0.0,0.0,.25,-1.5,.9,-1.5,-.9,0.0,-.25,0.0,0.0,-.4,0.0,-.4,.2,-.425,.25,-.475,.28,-.5,.3,-1.2,.6,-1.225,.575,-1.25,.55,-1.275,.525,-1.3,.5,-1.3,-.5,-1.275,-.525,-1.25,-.55,-1.225,-.58,-1.2,-.6,-.5,-.3,-.475,-.28,-.425,-.25,-.4,-.2,-.4,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,.1}))))
                .addChild(new Transform().setTranslation(-1.55,0.0,.05)
                  .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                  .addChild(new Transform().setTranslation(-.95,0.0,0.0)
                    .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))
                    .addChild(new Transform().setTranslation(-.95,0.0,0.0)
                      .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                      .addChild(new Transform().setTranslation(-.95,0.0,0.0)
                        .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))
                        .addChild(new Transform().setTranslation(-.95,0.0,0.0)
                          .addChild(new ProtoInstance("SolarPanelHinge").setContainerField("children"))
                          .addChild(new Transform().setTranslation(-.95,0.0,0.0)
                            .addChild(new ProtoInstance("SolarPanel").setContainerField("children"))))))))))
            .addChild(new OrientationInterpolator("SolarPanelLHSPath").setKey(new double[] {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.628,1.0,0.0,0.0,1.256,1.0,0.0,0.0,1.884,1.0,0.0,0.0,2.512,1.0,0.0,0.0,3.14,1.0,0.0,0.0,3.768,1.0,0.0,0.0,4.396,1.0,0.0,0.0,4.924,1.0,0.0,0.0,5.552,1.0,0.0,0.0,6.28})))
            .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("SolarPanelLHSPath").setToField("set_fraction"))
            .addChild(new ROUTE().setFromNode("SolarPanelLHSPath").setFromField("value_changed").setToNode("SolarPanelLHS").setToField("set_rotation")))
          .addChild(new Group("TRMod1NegX")
            .addChild(new Transform().setTranslation(-.85,-2.0,0.0)
              .addChild(new ProtoInstance("SARHinge").setContainerField("children"))
              .addChild(new Transform().setTranslation(-2.2,0.0,0.0)
                .addChild(new ProtoInstance("ShortSARPanel").setContainerField("children"))))
            .addChild(new Group("TRMod2NegX")
              .addChild(new Transform().setTranslation(-5.25,-2.0,0.0)
                .addChild(new ProtoInstance("SARHinge").setContainerField("children"))
                .addChild(new Transform().setTranslation(-2.6,0.0,0.0)
                  .addChild(new ProtoInstance("LongSARPanel").setContainerField("children"))))))
          .addChild(new Group("TRMod1PosX")
            .addChild(new Transform().setTranslation(.85,-2.0,0.0)
              .addChild(new ProtoInstance("SARHinge").setContainerField("children"))
              .addChild(new Transform().setTranslation(2.2,0.0,0.0)
                .addChild(new ProtoInstance("ShortSARPanel").setContainerField("children")))))
          .addChild(new Group("TRMod2PosX")
            .addChild(new Transform().setTranslation(5.25,-2.0,0.0)
              .addChild(new ProtoInstance("SARHinge").setContainerField("children"))
              .addChild(new Transform().setTranslation(2.6,0.0,0.0)
                .addChild(new ProtoInstance("LongSARPanel").setContainerField("children")))))
          .addChild(new Transform("RadarBeam").setTranslation(0.0,-2.2,0.0)
            .addChild(new Shape()
              .setGeometry(new Box().setSize(20.5,.4,1.5))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setEmissiveColor(1.0,1.0,0.0).setTransparency(.8)))))
          .addChild(new TimeSensor("RadarClock").setLoop(true))
          .addChild(new PositionInterpolator("RadarBeamPath").setKey(new double[] {0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,-2.20,0.0,0.0,-5.0,0.0,0.0,-9.0,0.0,0.0,-12.0,0.0,0.0,-17.0,0.0,0.0,-20.0,0.0,0.0,-22.0,0.0,0.0,-26.0,0.0,0.0,-28.0,0.0,0.0,-30.0,0.0})))
          .addChild(new ROUTE().setFromNode("RadarClock").setFromField("fraction_changed").setToNode("RadarBeamPath").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("RadarBeamPath").setFromField("value_changed").setToNode("RadarBeam").setToField("set_translation"))
          .addChild(new PositionInterpolator("SatellitePath").setKey(getSatellitePath_6_354_key()).setKeyValue(getSatellitePath_6_354_keyValue()))
          .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("SatellitePath").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("SatellitePath").setFromField("value_changed").setToNode("Satellite").setToField("set_translation"))
          .addChild(new OrientationInterpolator("SatellitePointingPath").setKey(new double[] {0.0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7,0.75,0.8,0.85,0.9,0.95,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.314,1.0,0.0,0.0,0.628,1.0,0.0,0.0,0.942,1.0,0.0,0.0,1.256,1.0,0.0,0.0,1.570,1.0,0.0,0.0,1.884,1.0,0.0,0.0,2.198,1.0,0.0,0.0,2.512,1.0,0.0,0.0,2.826,1.0,0.0,0.0,3.14,1.0,0.0,0.0,3.454,1.0,0.0,0.0,3.768,1.0,0.0,0.0,4.082,1.0,0.0,0.0,4.396,1.0,0.0,0.0,4.710,1.0,0.0,0.0,4.924,1.0,0.0,0.0,5.238,1.0,0.0,0.0,5.552,1.0,0.0,0.0,5.866,1.0,0.0,0.0,6.28})))
          .addChild(new ROUTE().setFromNode("Clock").setFromField("fraction_changed").setToNode("SatellitePointingPath").setToField("set_fraction"))
          .addChild(new ROUTE().setFromNode("SatellitePointingPath").setFromField("value_changed").setToNode("Satellite").setToField("set_rotation")))
        .addChild(new Viewpoint().setDescription("AlongXAxis").setOrientation(-0.787,-0.467,0.402,1.6876).setPosition(-19.4,23.4,-0.9)))));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

		/** Define subarrays using type double[] */
		private double[] getSatellitePath_6_354_key_1()
		{
			double[] value = {0.002463054,0.004926108,0.007389163,0.009852217,0.012315271,0.014778325,0.017241379,0.019704433,0.022167488,0.024630542,0.027093596,0.02955665,0.032019704,0.034482759,0.036945813,0.039408867,0.041871921,0.044334975,0.04679803,0.049261084,0.051724138,0.054187192,0.056650246,0.0591133,0.061576355,0.064039409,0.066502463,0.068965517,0.071428571,0.073891626,0.07635468,0.078817734,0.081280788,0.083743842,0.086206897,0.088669951,0.091133005,0.093596059,0.096059113,0.098522167,0.100985222,0.103448276,0.10591133,0.108374384,0.110837438,0.113300493,0.115763547,0.118226601,0.120689655,0.123152709,0.125615764,0.128078818,0.130541872,0.133004926,0.13546798,0.137931034,0.140394089,0.142857143,0.145320197,0.147783251,0.150246305,0.15270936,0.155172414,0.157635468,0.160098522,0.162561576,0.165024631,0.167487685,0.169950739,0.172413793,0.174876847,0.177339901,0.179802956,0.18226601,0.184729064,0.187192118,0.189655172,0.192118227,0.194581281,0.197044335,0.199507389,0.201970443,0.204433498,0.206896552,0.209359606,0.21182266,0.214285714,0.216748768,0.219211823,0.221674877,0.224137931,0.226600985,0.229064039,0.231527094,0.233990148,0.236453202,0.238916256,0.24137931,0.243842365,0.246305419,0.248768473,0.251231527,0.253694581,0.256157635,0.25862069,0.261083744,0.263546798,0.266009852,0.268472906,0.270935961,0.273399015,0.275862069,0.278325123,0.280788177,0.283251232,0.285714286,0.28817734,0.290640394,0.293103448,0.295566502,0.298029557,0.300492611,0.302955665,0.305418719,0.307881773,0.310344828,0.312807882,0.315270936,0.31773399,0.320197044,0.322660099,0.325123153,0.327586207,0.330049261,0.332512315,0.334975369,0.337438424,0.339901478,0.342364532,0.344827586,0.34729064,0.349753695,0.352216749,0.354679803,0.357142857,0.359605911,0.362068966,0.36453202,0.366995074,0.369458128,0.371921182,0.374384236,0.376847291,0.379310345,0.381773399,0.384236453,0.386699507,0.389162562,0.391625616,0.39408867,0.396551724,0.399014778,0.401477833,0.403940887,0.406403941,0.408866995,0.411330049,0.413793103,0.416256158,0.418719212,0.421182266,0.42364532,0.426108374,0.428571429,0.431034483,0.433497537,0.435960591,0.438423645,0.4408867,0.443349754,0.445812808,0.448275862,0.450738916,0.45320197,0.455665025,0.458128079,0.460591133,0.463054187,0.465517241,0.467980296,0.47044335,0.472906404,0.475369458,0.477832512,0.480295567,0.482758621,0.485221675,0.487684729,0.490147783,0.492610837,0.495073892,0.497536946,0.5,0.502463054,0.504926108,0.507389163,0.509852217,0.512315271,0.514778325,0.517241379,0.519704433,0.522167488,0.524630542,0.527093596,0.52955665,0.532019704,0.534482759,0.536945813,0.539408867,0.541871921,0.544334975,0.54679803,0.549261084,0.551724138,0.554187192,0.556650246,0.5591133,0.561576355,0.564039409,0.566502463,0.568965517,0.571428571,0.573891626,0.57635468,0.578817734,0.581280788,0.583743842,0.586206897,0.588669951,0.591133005,0.593596059,0.596059113,0.598522167,0.600985222,0.603448276,0.60591133,0.608374384,0.610837438,0.613300493,0.615763547,0.618226601,0.620689655,0.623152709,0.625615764,0.628078818,0.630541872,0.633004926,0.63546798,0.637931034,0.640394089,0.642857143,0.645320197,0.647783251,0.650246305,0.65270936,0.655172414,0.657635468,0.660098522,0.662561576,0.665024631,0.667487685,0.669950739,0.672413793,0.674876847,0.677339901,0.679802956,0.68226601,0.684729064,0.687192118,0.689655172,0.692118227,0.694581281,0.697044335,0.699507389,0.701970443,0.704433498,0.706896552,0.709359606,0.71182266,0.714285714,0.716748768,0.719211823,0.721674877,0.724137931,0.726600985,0.729064039,0.731527094,0.733990148,0.736453202,0.738916256,0.74137931,0.743842365,0.746305419,0.748768473,0.751231527,0.753694581,0.756157635,0.75862069,0.761083744,0.763546798,0.766009852,0.768472906,0.770935961,0.773399015,0.775862069,0.778325123,0.780788177,0.783251232,0.785714286,0.78817734,0.790640394,0.793103448,0.795566502,0.798029557,0.800492611,0.802955665,0.805418719,0.807881773,0.810344828,0.812807882,0.815270936,0.81773399,0.820197044,0.822660099,0.825123153,0.827586207,0.830049261,0.832512315,0.834975369,0.837438424,0.839901478,0.842364532,0.844827586,0.84729064,0.849753695,0.852216749,0.854679803,0.857142857,0.859605911,0.862068966,0.86453202,0.866995074,0.869458128,0.871921182,0.874384236,0.876847291,0.879310345,0.881773399,0.884236453,0.886699507,0.889162562,0.891625616,0.89408867,0.896551724,0.899014778,0.901477833,0.903940887,0.906403941,0.908866995,0.911330049,0.913793103,0.916256158,0.918719212,0.921182266,0.92364532,0.926108374,0.928571429,0.931034483,0.933497537,0.935960591,0.938423645,0.9408867,0.943349754,0.945812808,0.948275862,0.950738916,0.95320197,0.955665025,0.958128079,0.960591133,0.963054187,0.965517241,0.967980296,0.97044335,0.972906404,0.975369458,0.977832512,0.980295567,0.982758621,0.985221675,0.987684729,0.990147783,0.992610837,0.995073892,0.997536946,1.0};
			return value;
		}


		/** Define subarrays using type double[] */
		private double[] getSatellitePath_6_354_keyValue_1()
		{
			double[] value = {0.00,100.00,0.00,0.00,99.98,2.24,0.00,99.90,4.47,0.00,99.80,6.32,0.00,99.60,8.94,0.00,99.40,10.94,0.00,99.20,12.62,0.00,99.00,14.11,0.00,98.00,19.90,0.00,97.00,24.31,0.00,96.00,28.00,0.00,95.00,31.22,0.00,94.00,34.12,0.00,93.00,36.76,0.00,92.00,39.19,0.00,91.00,41.46,0.00,90.00,43.59,0.00,89.00,45.60,0.00,88.00,47.50,0.00,87.00,49.31,0.00,86.00,51.03,0.00,85.00,52.68,0.00,84.00,54.26,0.00,83.00,55.78,0.00,82.00,57.24,0.00,81.00,58.64,0.00,80.00,60.00,0.00,79.00,61.31,0.00,78.00,62.58,0.00,77.00,63.80,0.00,76.00,64.99,0.00,75.00,66.14,0.00,74.00,67.26,0.00,73.00,68.34,0.00,72.00,69.40,0.00,71.00,70.42,0.00,70.00,71.41,0.00,69.00,72.38,0.00,68.00,73.32,0.00,67.00,74.24,0.00,66.00,75.13,0.00,65.00,75.99,0.00,64.00,76.84,0.00,63.00,77.66,0.00,62.00,78.46,0.00,61.00,79.24,0.00,60.00,80.00,0.00,59.00,80.74,0.00,58.00,81.46,0.00,57.00,82.16,0.00,56.00,82.85,0.00,55.00,83.52,0.00,54.00,84.17,0.00,53.00,84.80,0.00,52.00,85.42,0.00,51.00,86.02,0.00,50.00,86.60,0.00,49.00,87.17,0.00,48.00,87.73,0.00,47.00,88.27,0.00,46.00,88.79,0.00,45.00,89.30,0.00,44.00,89.80,0.00,43.00,90.28,0.00,42.00,90.75,0.00,41.00,91.21,0.00,40.00,91.65,0.00,39.00,92.08,0.00,38.00,92.50,0.00,37.00,92.90,0.00,36.00,93.30,0.00,35.00,93.67,0.00,34.00,94.04,0.00,33.00,94.40,0.00,32.00,94.74,0.00,31.00,95.07,0.00,30.00,95.39,0.00,29.00,95.70,0.00,28.00,96.00,0.00,27.00,96.29,0.00,26.00,96.56,0.00,25.00,96.82,0.00,24.00,97.08,0.00,23.00,97.32,0.00,22.00,97.55,0.00,21.00,97.77,0.00,20.00,97.98,0.00,19.00,98.18,0.00,18.00,98.37,0.00,17.00,98.54,0.00,16.00,98.71,0.00,15.00,98.87,0.00,14.00,99.02,0.00,12.00,99.28,0.00,11.00,99.39,0.00,9.00,99.59,0.00,8.00,99.68,0.00,6.00,99.82,0.00,4.00,99.92,0.00,3.00,99.95};
			return value;
		}
		private double[] getSatellitePath_6_354_keyValue_2()
		{
			double[] value = {0.00,1.00,99.99,0.00,0.00,100.00,0.00,-1.00,99.99,0.00,-3.00,99.95,0.00,-4.00,99.92,0.00,-6.00,99.82,0.00,-8.00,99.68,0.00,-9.00,99.59,0.00,-11.00,99.39,0.00,-12.00,99.28,0.00,-14.00,99.02,0.00,-15.00,98.87,0.00,-16.00,98.71,0.00,-17.00,98.54,0.00,-18.00,98.37,0.00,-19.00,98.18,0.00,-20.00,97.98,0.00,-21.00,97.77,0.00,-22.00,97.55,0.00,-23.00,97.32,0.00,-24.00,97.08,0.00,-25.00,96.82,0.00,-26.00,96.56,0.00,-27.00,96.29,0.00,-28.00,96.00,0.00,-29.00,95.70,0.00,-30.00,95.39,0.00,-31.00,95.07,0.00,-32.00,94.74,0.00,-33.00,94.40,0.00,-34.00,94.04,0.00,-35.00,93.67,0.00,-36.00,93.30,0.00,-37.00,92.90,0.00,-38.00,92.50,0.00,-39.00,92.08,0.00,-40.00,91.65,0.00,-41.00,91.21,0.00,-42.00,90.75,0.00,-43.00,90.28,0.00,-44.00,89.80,0.00,-45.00,89.30,0.00,-46.00,88.79,0.00,-47.00,88.27,0.00,-48.00,87.73,0.00,-49.00,87.17,0.00,-50.00,86.60,0.00,-51.00,86.02,0.00,-52.00,85.42,0.00,-53.00,84.80,0.00,-54.00,84.17,0.00,-55.00,83.52,0.00,-56.00,82.85,0.00,-57.00,82.16,0.00,-58.00,81.46,0.00,-59.00,80.74,0.00,-60.00,80.00,0.00,-61.00,79.24,0.00,-62.00,78.46,0.00,-63.00,77.66,0.00,-64.00,76.84,0.00,-65.00,75.99,0.00,-66.00,75.13,0.00,-67.00,74.24,0.00,-68.00,73.32,0.00,-69.00,72.38,0.00,-70.00,71.41,0.00,-71.00,70.42,0.00,-72.00,69.40,0.00,-73.00,68.34,0.00,-74.00,67.26,0.00,-75.00,66.14,0.00,-76.00,64.99,0.00,-77.00,63.80,0.00,-78.00,62.58,0.00,-79.00,61.31,0.00,-80.00,60.00,0.00,-81.00,58.64,0.00,-82.00,57.24,0.00,-83.00,55.78,0.00,-84.00,54.26,0.00,-85.00,52.68,0.00,-86.00,51.03,0.00,-87.00,49.31,0.00,-88.00,47.50,0.00,-89.00,45.60,0.00,-90.00,43.59,0.00,-91.00,41.46,0.00,-92.00,39.19,0.00,-93.00,36.76,0.00,-94.00,34.12,0.00,-95.00,31.22,0.00,-96.00,28.00,0.00,-97.00,24.31,0.00,-98.00,19.90,0.00,-99.00,14.11,0.00,-99.20,12.62,0.00,-99.40,10.94,0.00,-99.60,8.94,0.00,-99.80,6.32};
			return value;
		}
		private double[] getSatellitePath_6_354_keyValue_3()
		{
			double[] value = {0.00,-99.90,4.47,0.00,-99.98,2.24,0.00,-100.00,0.00,0.00,-99.98,-2.24,0.00,-99.90,-4.47,0.00,-99.80,-6.32,0.00,-99.60,-8.94,0.00,-99.40,-10.94,0.00,-99.20,-12.62,0.00,-99.00,-14.11,0.00,-98.50,-17.26,0.00,-98.00,-19.90,0.00,-97.00,-24.31,0.00,-96.00,-28.00,0.00,-95.00,-31.22,0.00,-94.00,-34.12,0.00,-93.00,-36.76,0.00,-92.00,-39.19,0.00,-91.00,-41.46,0.00,-90.00,-43.59,0.00,-89.00,-45.60,0.00,-88.00,-47.50,0.00,-87.00,-49.31,0.00,-86.00,-51.03,0.00,-85.00,-52.68,0.00,-84.00,-54.26,0.00,-83.00,-55.78,0.00,-82.00,-57.24,0.00,-81.00,-58.64,0.00,-80.00,-60.00,0.00,-79.00,-61.31,0.00,-78.00,-62.58,0.00,-77.00,-63.80,0.00,-76.00,-64.99,0.00,-75.00,-66.14,0.00,-74.00,-67.26,0.00,-73.00,-68.34,0.00,-72.00,-69.40,0.00,-71.00,-70.42,0.00,-70.00,-71.41,0.00,-69.00,-72.38,0.00,-68.00,-73.32,0.00,-67.00,-74.24,0.00,-66.00,-75.13,0.00,-65.00,-75.99,0.00,-64.00,-76.84,0.00,-63.00,-77.66,0.00,-62.00,-78.46,0.00,-61.00,-79.24,0.00,-60.00,-80.00,0.00,-59.00,-80.74,0.00,-58.00,-81.46,0.00,-57.00,-82.16,0.00,-56.00,-82.85,0.00,-55.00,-83.52,0.00,-54.00,-84.17,0.00,-53.00,-84.80,0.00,-52.00,-85.42,0.00,-51.00,-86.02,0.00,-50.00,-86.60,0.00,-49.00,-87.17,0.00,-48.00,-87.73,0.00,-47.00,-88.27,0.00,-46.00,-88.79,0.00,-45.00,-89.30,0.00,-44.00,-89.80,0.00,-43.00,-90.28,0.00,-42.00,-90.75,0.00,-41.00,-91.21,0.00,-40.00,-91.65,0.00,-39.00,-92.08,0.00,-38.00,-92.50,0.00,-37.00,-92.90,0.00,-36.00,-93.30,0.00,-35.00,-93.67,0.00,-34.00,-94.04,0.00,-33.00,-94.40,0.00,-32.00,-94.74,0.00,-31.00,-95.07,0.00,-30.00,-95.39,0.00,-29.00,-95.70,0.00,-28.00,-96.00,0.00,-27.00,-96.29,0.00,-26.00,-96.56,0.00,-25.00,-96.82,0.00,-24.00,-97.08,0.00,-23.00,-97.32,0.00,-22.00,-97.55,0.00,-21.00,-97.77,0.00,-20.00,-97.98,0.00,-19.00,-98.18,0.00,-18.00,-98.37,0.00,-17.00,-98.54,0.00,-16.00,-98.71,0.00,-15.00,-98.87,0.00,-14.00,-99.02,0.00,-12.00,-99.28,0.00,-11.00,-99.39,0.00,-9.00,-99.59,0.00,-8.00,-99.68};
			return value;
		}
		private double[] getSatellitePath_6_354_keyValue_4()
		{
			double[] value = {0.00,-6.00,-99.82,0.00,-4.00,-99.92,0.00,-3.00,-99.95,0.00,-1.00,-99.99,0.00,0.00,-100.00,0.00,1.00,-99.99,0.00,3.00,-99.95,0.00,4.00,-99.92,0.00,6.00,-99.82,0.00,8.00,-99.68,0.00,9.00,-99.59,0.00,11.00,-99.39,0.00,12.00,-99.28,0.00,14.00,-99.02,0.00,15.00,-98.87,0.00,16.00,-98.71,0.00,17.00,-98.54,0.00,18.00,-98.37,0.00,19.00,-98.18,0.00,20.00,-97.98,0.00,21.00,-97.77,0.00,22.00,-97.55,0.00,23.00,-97.32,0.00,24.00,-97.08,0.00,25.00,-96.82,0.00,26.00,-96.56,0.00,27.00,-96.29,0.00,28.00,-96.00,0.00,29.00,-95.70,0.00,30.00,-95.39,0.00,31.00,-95.07,0.00,32.00,-94.74,0.00,33.00,-94.40,0.00,34.00,-94.04,0.00,35.00,-93.67,0.00,36.00,-93.30,0.00,37.00,-92.90,0.00,38.00,-92.50,0.00,39.00,-92.08,0.00,40.00,-91.65,0.00,41.00,-91.21,0.00,42.00,-90.75,0.00,43.00,-90.28,0.00,44.00,-89.80,0.00,45.00,-89.30,0.00,46.00,-88.79,0.00,47.00,-88.27,0.00,48.00,-87.73,0.00,49.00,-87.17,0.00,50.00,-86.60,0.00,51.00,-86.02,0.00,52.00,-85.42,0.00,53.00,-84.80,0.00,54.00,-84.17,0.00,55.00,-83.52,0.00,56.00,-82.85,0.00,57.00,-82.16,0.00,58.00,-81.46,0.00,59.00,-80.74,0.00,60.00,-80.00,0.00,61.00,-79.24,0.00,62.00,-78.46,0.00,63.00,-77.66,0.00,64.00,-76.84,0.00,65.00,-75.99,0.00,66.00,-75.13,0.00,67.00,-74.24,0.00,68.00,-73.32,0.00,69.00,-72.38,0.00,70.00,-71.41,0.00,71.00,-70.42,0.00,72.00,-69.40,0.00,73.00,-68.34,0.00,74.00,-67.26,0.00,75.00,-66.14,0.00,76.00,-64.99,0.00,77.00,-63.80,0.00,78.00,-62.58,0.00,79.00,-61.31,0.00,80.00,-60.00,0.00,81.00,-58.64,0.00,82.00,-57.24,0.00,83.00,-55.78,0.00,84.00,-54.26,0.00,85.00,-52.68,0.00,86.00,-51.03,0.00,87.00,-49.31,0.00,88.00,-47.50,0.00,89.00,-45.60,0.00,90.00,-43.59,0.00,91.00,-41.46,0.00,92.00,-39.19,0.00,93.00,-36.76,0.00,94.00,-34.12,0.00,95.00,-31.22,0.00,96.00,-28.00,0.00,97.00,-24.31,0.00,98.00,-19.90,0.00,99.00,-14.11,0.00,99.20,-12.62};
			return value;
		}
		private double[] getSatellitePath_6_354_keyValue_5()
		{
			double[] value = {0.00,99.40,-10.94,0.00,99.60,-8.94,0.00,99.80,-6.32,0.00,99.90,-4.47,0.00,99.98,-2.24,0.00,100.00,0.00};
			return value;
		}

		/** Large attribute array: PositionInterpolator DEF='SatellitePath' key field, scene-graph level=6, element #354, 406 total numbers.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFFloat getSatellitePath_6_354_key()
		{
			MFFloat SatellitePath_6_354_key = new MFFloat()/*2.finalize*/
				.append(new MFFloat(getSatellitePath_6_354_key_1()));
			return SatellitePath_6_354_key;
		}
		/** Large attribute array: PositionInterpolator DEF='SatellitePath' keyValue field, scene-graph level=6, element #354, 1218 total numbers made up of 406 3-tuple values.
		 * Reassemble split array as single method to improve readability and runnability.
		 * Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors. 
		 * Individual Java methods (including aggregated initializations) are limited to 64KB.
		 * @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
		 * @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
		 */
		private MFVec3f getSatellitePath_6_354_keyValue()
		{
			MFVec3f SatellitePath_6_354_keyValue = new MFVec3f()/*2.finalize*/
				.append(new MFVec3f(getSatellitePath_6_354_keyValue_1()))
				.append(new MFVec3f(getSatellitePath_6_354_keyValue_2()))
				.append(new MFVec3f(getSatellitePath_6_354_keyValue_3()))
				.append(new MFVec3f(getSatellitePath_6_354_keyValue_4()))
				.append(new MFVec3f(getSatellitePath_6_354_keyValue_5()));
			return SatellitePath_6_354_keyValue;
		}

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return RadarsatPrototype model
	 */
	public X3D 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 <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-">X3D.handleArguments(args)</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--">X3D.validationReport()</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html">CommandLine</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE">CommandLine.USAGE</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html">ConfigurationProperties</a>
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new RadarsatPrototype().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        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(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"Savage.Space.Satellites.RadarsatPrototype\" 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
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("Savage.Space.Satellites.RadarsatPrototype self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

                // experimental: test X3DJSAIL output files
                // Space/Satellites/RadarsatPrototype_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "Space/Satellites/RadarsatPrototype_JavaExport.x3d"; 
                String filenameX3DV = "Space/Satellites/RadarsatPrototype_JavaExport.x3dv"; 
                String filenameJSON = "Space/Satellites/RadarsatPrototype_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
