package Savage.ShipsMilitary.PatrolCraftNavalAcademyBrazil;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Brazilian Naval Academy Training Ship. </p>
 <p> Related links: Catalog page <a href="../../../../ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLightsIndex.html" target="_blank">NavigationLights</a>,  source <a href="../../../../ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLights.java">NavigationLights.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="../../../../ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLights.x3d">NavigationLights.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Brazilian Naval Academy Training Ship </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Claudio Coreixas </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 20 October 2009 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 20 October 2019 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.en.mar.mil.br" target="_blank">http://www.en.mar.mil.br</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> ships parts </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/ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLights.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLights.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit, <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="../../../../ShipsMilitary/PatrolCraftNavalAcademyBrazil/../../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 Claudio Coreixas
 */

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

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_INTERCHANGE).setVersion(X3D.VERSION_3_2)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("NavigationLights.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Brazilian Naval Academy Training Ship"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Claudio Coreixas"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("20 October 2009"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.en.mar.mil.br"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("ships parts"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/NavigationLights.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit, 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("NavigationLights.x3d"))
    .addChild(new Viewpoint("basic").setDescription("basic view").setPosition(6.0,1.9,6.0))
    .addChild(new NavigationInfo().setHeadlight(false).setType(new String[] {"EXAMINE"}))
    .addChild(new Shape("stbSideLightGray")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setDiffuseColor(0.82,0.78,0.74)))
      .setGeometry(new IndexedFaceSet("stbSideLightGrayIFS").setDEF("stbSideLightGrayIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {1,12,11,0,-1,1,2,13,0,-1,2,3,13,-1,3,4,5,13,-1,5,6,13,-1,13,6,7,-1,13,7,8,9,-1,13,9,10,-1,13,10,11,0,-1})
        .setCoord(new Coordinate("stbSideLightGrayCOORD").setPoint(new MFVec3f(new double[] {5.9,1.9,1.001,5.9,1.9,1.1,6.1,1.9,1.1,6.138,1.9,1.092,6.171,1.9,1.071,6.192,1.9,1.038,6.2,1.9,1.001,6.192,1.938,1.001,6.171,1.971,1.001,6.138,1.971,1.001,6.100,1.971,1.001,5.9,1.971,1.001,5.9,1.971,1.1,6.1,1.9,1.001})))))
    .addChild(new Shape("stbSideLightBlack")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setDiffuseColor(0.0,0.0,0.0)))
      .setGeometry(new IndexedFaceSet("stbSideLightBlackIFS").setDEF("stbSideLightBlackIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {1,12,11,0,-1,1,2,13,0,-1,2,3,13,-1,3,4,5,13,-1,5,6,13,-1,13,6,7,-1,13,7,8,9,-1,13,9,10,-1,13,10,11,0,-1})
        .setCoord(new Coordinate("stbSideLightBlackCOORD").setPoint(new MFVec3f(new double[] {5.901,1.901,1.002,5.901,1.901,1.100,6.100,1.901,1.100,6.138,1.901,1.092,6.171,1.901,1.071,6.192,1.901,1.038,6.200,1.901,1.002,6.192,1.938,1.002,6.171,1.971,1.002,6.138,1.971,1.002,6.100,1.971,1.002,5.901,1.971,1.002,5.901,1.971,1.100,6.100,1.901,1.002})))))
    .addChild(new Shape("stbSideLightBulbDome")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setAmbientIntensity(0.04).setDiffuseColor(0.0,0.419608,0.094118).setShininess(0.09)))
      .setGeometry(new IndexedFaceSet("stbSideLightBulbDomeIFS").setDEF("stbSideLightBulbDomeIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {0,1,15,-1,1,2,14,15,-1,2,3,13,14,-1,3,4,12,13,-1,4,5,11,12,-1,5,6,10,11,-1,6,7,9,10,-1,7,8,9,-1,16,17,31,-1,17,18,30,31,-1,18,19,29,30,-1,19,20,28,29,-1,20,21,27,28,-1,21,22,26,27,-1,22,23,25,26,-1,23,24,25,-1,33,36,42,32,-1,41,34,35,47,-1,0,16,17,1,-1,1,17,18,2,-1,2,18,19,3,-1,3,19,20,4,-1,4,20,21,5,-1,5,21,22,6,-1,6,22,23,7,-1,7,23,24,8,-1,8,24,25,9,-1,9,25,26,10,-1,10,26,27,11,-1,11,41,40,12,-1,12,40,39,13,-1,13,39,38,14,-1,14,38,37,15,-1,15,37,36,0,-1,47,27,28,46,-1,46,28,29,45,-1,45,29,30,44,-1,44,30,31,43,-1,43,31,0,42,-1})
        .setCoord(new Coordinate("stbSideLightBulbDomeCOORD").setPoint(getstbSideLightBulbDomeCOORD_5_27_point()))))
    .addChild(new Shape("stbSideLightBulbGlass")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(0.062745,0.780392,0.0).setEmissiveColor(0.101961,0.6,0.0).setShininess(0.46)))
      .setGeometry(new IndexedFaceSet("stbSideLightBulbGlassIFS").setDEF("stbSideLightBulbGlassIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {41,47,46,40,-1,40,46,45,39,-1,39,45,44,38,-1,38,44,43,37,-1,37,43,42,36,-1})
        .setCoord(new Coordinate("stbSideLightBulbGlassCOORD").setPoint(getstbSideLightBulbGlassCOORD_5_32_point()))))
    .addChild(new Shape("portSideLightGray")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setDiffuseColor(0.82,0.78,0.74)))
      .setGeometry(new IndexedFaceSet("portSideLightGrayIFS").setDEF("portSideLightGrayIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {1,12,11,0,-1,1,2,13,0,-1,2,3,13,-1,3,4,5,13,-1,5,6,13,-1,13,6,7,-1,13,7,8,9,-1,13,9,10,-1,13,10,11,0,-1})
        .setCoord(new Coordinate("portSideLightGrayCOORD").setPoint(new MFVec3f(new double[] {5.900,1.900,-1.001,5.900,1.900,-1.100,6.100,1.900,-1.100,6.138,1.900,-1.092,6.171,1.900,-1.071,6.192,1.900,-1.038,6.200,1.900,-1.001,6.192,1.938,-1.001,6.171,1.971,-1.001,6.138,1.971,-1.001,6.100,1.971,-1.001,5.900,1.971,-1.001,5.900,1.971,-1.100,6.100,1.900,-1.001})))))
    .addChild(new Shape("portSideLightBlack")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setDiffuseColor(0.0,0.0,0.0)))
      .setGeometry(new IndexedFaceSet("portSideLightBlackIFS").setDEF("portSideLightBlackIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {1,12,11,0,-1,1,2,13,0,-1,2,3,13,-1,3,4,5,13,-1,5,6,13,-1,13,6,7,-1,13,7,8,9,-1,13,9,10,-1,13,10,11,0,-1})
        .setCoord(new Coordinate("portSideLightBlackCOORD").setPoint(new MFVec3f(new double[] {5.901,1.901,-1.002,5.901,1.901,-1.100,6.100,1.901,-1.100,6.138,1.901,-1.092,6.171,1.901,-1.071,6.192,1.901,-1.038,6.200,1.901,-1.002,6.192,1.938,-1.002,6.171,1.971,-1.002,6.138,1.971,-1.002,6.100,1.971,-1.002,5.901,1.971,-1.002,5.901,1.971,-1.100,6.100,1.901,-1.002})))))
    .addChild(new Shape("portSideLightBulbDome")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setAmbientIntensity(0.04).setDiffuseColor(0.639216,0.0,0.039216).setShininess(0.09)))
      .setGeometry(new IndexedFaceSet("portSideLightBulbDomeIFS").setDEF("portSideLightBulbDomeIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {0,1,15,-1,1,2,14,15,-1,2,3,13,14,-1,3,4,12,13,-1,4,5,11,12,-1,5,6,10,11,-1,6,7,9,10,-1,7,8,9,-1,16,17,31,-1,17,18,30,31,-1,18,19,29,30,-1,19,20,28,29,-1,20,21,27,28,-1,21,22,26,27,-1,22,23,25,26,-1,23,24,25,-1,33,36,42,32,-1,41,34,35,47,-1,0,16,17,1,-1,1,17,18,2,-1,2,18,19,3,-1,3,19,20,4,-1,4,20,21,5,-1,5,21,22,6,-1,6,22,23,7,-1,7,23,24,8,-1,8,24,25,9,-1,9,25,26,10,-1,10,26,27,11,-1,11,41,40,12,-1,12,40,39,13,-1,13,39,38,14,-1,14,38,37,15,-1,15,37,36,0,-1,47,27,28,46,-1,46,28,29,45,-1,45,29,30,44,-1,44,30,31,43,-1,43,31,0,42,-1})
        .setCoord(new Coordinate("portSideLightBulbDomeCOORD").setPoint(new MFVec3f(new double[] {6.010,1.980,-1.050,6.007,1.980,-1.035,5.998,1.980,-1.022,5.985,1.980,-1.013,5.970,1.980,-1.010,5.955,1.980,-1.013,5.942,1.980,-1.022,5.933,1.980,-1.035,5.930,1.980,-1.050,5.933,1.980,-1.065,5.942,1.980,-1.078,5.955,1.980,-1.087,5.970,1.980,-1.090,5.985,1.980,-1.087,5.998,1.980,-1.078,6.007,1.980,-1.065,6.010,1.901,-1.050,6.007,1.901,-1.035,5.998,1.901,-1.022,5.985,1.901,-1.013,5.970,1.901,-1.010,5.955,1.901,-1.013,5.942,1.901,-1.022,5.933,1.901,-1.035,5.930,1.901,-1.050,5.933,1.901,-1.065,5.942,1.901,-1.078,5.955,1.901,-1.087,5.970,1.901,-1.090,5.985,1.901,-1.087,5.998,1.901,-1.078,6.007,1.901,-1.065,6.025,1.915,-1.050,6.025,1.965,-1.050,5.949,1.965,-1.101,5.949,1.915,-1.101,6.010,1.965,-1.050,6.007,1.965,-1.065,5.998,1.965,-1.078,5.985,1.965,-1.087,5.970,1.965,-1.090,5.955,1.965,-1.087,6.010,1.915,-1.050,6.007,1.915,-1.065,5.998,1.915,-1.078,5.985,1.915,-1.087,5.970,1.915,-1.090,5.955,1.915,-1.087})))))
    .addChild(new Shape("portSideLightBulbGlass")
      .setAppearance(new Appearance()
        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(1.0,0.12549,0.101961).setEmissiveColor(1.0,0.121569,0.121569).setShininess(0.58).setTransparency(0.13)))
      .setGeometry(new IndexedFaceSet("portSideLightBulbGlassIFS").setDEF("portSideLightBulbGlassIFS").setCreaseAngle(1.5).setSolid(false).setCoordIndex(new int[] {41,47,46,40,-1,40,46,45,39,-1,39,45,44,38,-1,38,44,43,37,-1,37,43,42,36,-1})
        .setCoord(new Coordinate("portSideLightBulbGlassCOORD").setPoint(new MFVec3f(new double[] {6.010,1.980,-1.050,6.007,1.980,-1.035,5.998,1.980,-1.022,5.985,1.980,-1.013,5.970,1.980,-1.010,5.955,1.980,-1.013,5.942,1.980,-1.022,5.933,1.980,-1.035,5.930,1.980,-1.050,5.933,1.980,-1.065,5.942,1.980,-1.078,5.955,1.980,-1.087,5.970,1.980,-1.090,5.985,1.980,-1.087,5.998,1.980,-1.078,6.007,1.980,-1.065,6.010,1.901,-1.050,6.007,1.901,-1.035,5.998,1.901,-1.022,5.985,1.901,-1.013,5.970,1.901,-1.010,5.955,1.901,-1.013,5.942,1.901,-1.022,5.933,1.901,-1.035,5.930,1.901,-1.050,5.933,1.901,-1.065,5.942,1.901,-1.078,5.955,1.901,-1.087,5.970,1.901,-1.090,5.985,1.901,-1.087,5.998,1.901,-1.078,6.007,1.901,-1.065,6.025,1.915,-1.050,6.025,1.965,-1.050,5.949,1.965,-1.101,5.949,1.915,-1.101,6.010,1.965,-1.050,6.007,1.965,-1.065,5.998,1.965,-1.078,5.985,1.965,-1.087,5.970,1.965,-1.090,5.955,1.965,-1.087,6.010,1.915,-1.050,6.007,1.915,-1.065,5.998,1.915,-1.078,5.985,1.915,-1.087,5.970,1.915,-1.090,5.955,1.915,-1.087,0.0,0.0,0.0}))))));
            }
            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


		/** Large attribute array: Coordinate DEF='stbSideLightBulbDomeCOORD' point field, scene-graph level=5, element #27, 144 total numbers made up of 48 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 getstbSideLightBulbDomeCOORD_5_27_point()
		{
			MFVec3f stbSideLightBulbDomeCOORD_5_27_point = new MFVec3f(new double[] {6.010,1.98,1.050,6.007,1.98,1.035,5.998,1.98,1.022,5.985,1.98,1.013,5.970,1.98,1.010,5.955,1.98,1.013,5.942,1.98,1.022,5.933,1.98,1.035,5.930,1.98,1.050,5.933,1.98,1.065,5.942,1.98,1.078,5.955,1.98,1.087,5.970,1.98,1.090,5.985,1.98,1.087,5.998,1.98,1.078,6.007,1.98,1.065,6.01,1.901,1.05,6.007,1.901,1.03470002,5.998,1.901,1.021726993,5.985,1.901,1.013053968,5.970,1.901,1.010000013,5.955,1.901,1.0130296,5.942,1.901,1.021681964,5.933,1.901,1.034641178,5.930,1.901,1.049936294,5.933,1.901,1.065241099,5.942,1.901,1.078227906,5.955,1.901,1.086921571,5.970,1.901,1.089999886,5.985,1.901,1.086994674,5.998,1.901,1.078362994,6.007,1.901,1.065417625,6.025,1.915,1.05,6.025,1.965,1.05,5.948841186,1.965,1.10076716,5.948841186,1.915,1.10076716,6.01,1.965,1.05,6.006909305,1.965,1.065417625,5.998205329,1.965,1.078362994,5.985211644,1.965,1.086994674,5.969904441,1.965,1.089999886,5.954611771,1.965,1.086921571,6.01,1.915,1.05,6.006909305,1.915,1.065417625,5.998205329,1.915,1.078362994,5.985211644,1.915,1.086994674,5.969904441,1.915,1.089999886,5.954611771,1.915,1.086921571});
			return stbSideLightBulbDomeCOORD_5_27_point;
		}
		/** Large attribute array: Coordinate DEF='stbSideLightBulbGlassCOORD' point field, scene-graph level=5, element #32, 147 total numbers made up of 49 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 getstbSideLightBulbGlassCOORD_5_32_point()
		{
			MFVec3f stbSideLightBulbGlassCOORD_5_32_point = new MFVec3f(new double[] {6.010,1.98,1.050,6.007,1.98,1.035,5.998,1.98,1.022,5.985,1.98,1.013,5.970,1.98,1.010,5.955,1.98,1.013,5.942,1.98,1.022,5.933,1.98,1.035,5.930,1.98,1.050,5.933,1.98,1.065,5.942,1.98,1.078,5.955,1.98,1.087,5.970,1.98,1.090,5.985,1.98,1.087,5.998,1.98,1.078,6.007,1.98,1.065,6.01,1.901,1.05,6.007,1.901,1.03470002,5.998,1.901,1.021726993,5.985,1.901,1.013053968,5.970,1.901,1.010000013,5.955,1.901,1.0130296,5.942,1.901,1.021681964,5.933,1.901,1.034641178,5.930,1.901,1.049936294,5.933,1.901,1.065241099,5.942,1.901,1.078227906,5.955,1.901,1.086921571,5.970,1.901,1.089999886,5.985,1.901,1.086994674,5.998,1.901,1.078362994,6.007,1.901,1.065417625,6.025,1.915,1.05,6.025,1.965,1.05,5.948841186,1.965,1.10076716,5.948841186,1.915,1.10076716,6.01,1.965,1.05,6.006909305,1.965,1.065417625,5.998205329,1.965,1.078362994,5.985211644,1.965,1.086994674,5.969904441,1.965,1.089999886,5.954611771,1.965,1.086921571,6.01,1.915,1.05,6.006909305,1.915,1.065417625,5.998205329,1.915,1.078362994,5.985211644,1.915,1.086994674,5.969904441,1.915,1.089999886,5.954611771,1.915,1.086921571,0.0,0.0,0.0});
			return stbSideLightBulbGlassCOORD_5_32_point;
		}

	/** 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 NavigationLights 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 NavigationLights().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.ShipsMilitary.PatrolCraftNavalAcademyBrazil.NavigationLights\" 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.ShipsMilitary.PatrolCraftNavalAcademyBrazil.NavigationLights self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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