Skip to content

Commit 22c0759

Browse files
committed
Add Java LotsOfSatellites demo.
1 parent 72b3d8e commit 22c0759

18 files changed

Lines changed: 1033 additions & 0 deletions

Java/LotsOfSatellites/.classpath

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src" />
4+
<classpathentry including="EOP-v1.1.txt|LeapSecond.dat|SatelliteDatabase/|Textures/OverlayToolbar/|plneph.430" kind="src" output="Data" path="commonData" />
5+
<classpathentry including="agi/examples/EarthOrientationParametersHelper.java|agi/examples/Insight3DHelper.java|agi/examples/LeapSecondsFacetHelper.java|agi/examples/OverlayToolbar.java|agi/examples/TwoLineElementSetHelper.java" kind="src" path="commonSrc" />
6+
<classpathentry kind="src" output="Data" path="projectData" />
7+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8" />
8+
<classpathentry kind="lib" path="jars/agi.foundation.core-2019r3.jar">
9+
<attributes>
10+
<attribute name="javadoc_location" value="jar:platform:/resource/LotsOfSatellites/doc/agi.foundation.javadoc-2019r3.zip!/" />
11+
</attributes>
12+
</classpathentry>
13+
<classpathentry kind="lib" path="jars/agi.foundation.graphics-2019r3.jar">
14+
<attributes>
15+
<attribute name="javadoc_location" value="jar:platform:/resource/LotsOfSatellites/doc/agi.foundation.javadoc-2019r3.zip!/" />
16+
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="LotsOfSatellites/jars" />
17+
</attributes>
18+
</classpathentry>
19+
<classpathentry kind="lib" path="jars/agi.foundation.models-2019r3.jar">
20+
<attributes>
21+
<attribute name="javadoc_location" value="jar:platform:/resource/LotsOfSatellites/doc/agi.foundation.javadoc-2019r3.zip!/" />
22+
</attributes>
23+
</classpathentry>
24+
<classpathentry kind="lib" path="jars/agi.foundation.terrainreaders-2019r3.jar">
25+
<attributes>
26+
<attribute name="javadoc_location" value="jar:platform:/resource/LotsOfSatellites/doc/agi.foundation.javadoc-2019r3.zip!/" />
27+
</attributes>
28+
</classpathentry>
29+
<classpathentry kind="lib" path="jars/agi.foundation.platforms-2019r3.jar">
30+
<attributes>
31+
<attribute name="javadoc_location" value="jar:platform:/resource/LotsOfSatellites/doc/agi.foundation.javadoc-2019r3.zip!/" />
32+
</attributes>
33+
</classpathentry>
34+
<classpathentry kind="output" path="bin" />
35+
</classpath>

Java/LotsOfSatellites/.project

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>LotsOfSatellites</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
<linkedResources>
18+
<link>
19+
<name>commonData</name>
20+
<type>2</type>
21+
<locationURI>$%7BPARENT-1-PROJECT_LOC%7D/Common/Data</locationURI>
22+
</link>
23+
<link>
24+
<name>commonSrc</name>
25+
<type>2</type>
26+
<locationURI>$%7BPARENT-1-PROJECT_LOC%7D/Common/src</locationURI>
27+
</link>
28+
<link>
29+
<name>doc</name>
30+
<type>2</type>
31+
<locationURI>$%7BPARENT-2-PROJECT_LOC%7D/Documentation</locationURI>
32+
</link>
33+
<link>
34+
<name>jars</name>
35+
<type>2</type>
36+
<locationURI>$%7BPARENT-2-PROJECT_LOC%7D/Jars</locationURI>
37+
</link>
38+
</linkedResources>
39+
<filteredResources>
40+
<filter>
41+
<id>1497896520584</id>
42+
<name></name>
43+
<type>10</type>
44+
<matcher>
45+
<id>org.eclipse.ui.ide.multiFilter</id>
46+
<arguments>1.0-name-matches-false-false-ant</arguments>
47+
</matcher>
48+
</filter>
49+
<filter>
50+
<id>1497896520587</id>
51+
<name></name>
52+
<type>10</type>
53+
<matcher>
54+
<id>org.eclipse.ui.ide.multiFilter</id>
55+
<arguments>1.0-name-matches-false-false-dist</arguments>
56+
</matcher>
57+
</filter>
58+
</filteredResources>
59+
</projectDescription>

Java/LotsOfSatellites/.settings/org.eclipse.jdt.core.prefs

Lines changed: 326 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
cleanup.add_default_serial_version_id=true
2+
cleanup.add_generated_serial_version_id=false
3+
cleanup.add_missing_annotations=true
4+
cleanup.add_missing_deprecated_annotations=true
5+
cleanup.add_missing_methods=false
6+
cleanup.add_missing_nls_tags=false
7+
cleanup.add_missing_override_annotations=true
8+
cleanup.add_missing_override_annotations_interface_methods=true
9+
cleanup.add_serial_version_id=false
10+
cleanup.always_use_blocks=true
11+
cleanup.always_use_parentheses_in_expressions=false
12+
cleanup.always_use_this_for_non_static_field_access=false
13+
cleanup.always_use_this_for_non_static_method_access=false
14+
cleanup.convert_functional_interfaces=true
15+
cleanup.convert_to_enhanced_for_loop=true
16+
cleanup.correct_indentation=false
17+
cleanup.format_source_code=false
18+
cleanup.format_source_code_changes_only=false
19+
cleanup.insert_inferred_type_arguments=false
20+
cleanup.make_local_variable_final=false
21+
cleanup.make_parameters_final=false
22+
cleanup.make_private_fields_final=true
23+
cleanup.make_type_abstract_if_missing_method=false
24+
cleanup.make_variable_declarations_final=true
25+
cleanup.never_use_blocks=false
26+
cleanup.never_use_parentheses_in_expressions=true
27+
cleanup.organize_imports=true
28+
cleanup.qualify_static_field_accesses_with_declaring_class=false
29+
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
30+
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
31+
cleanup.qualify_static_member_accesses_with_declaring_class=true
32+
cleanup.qualify_static_method_accesses_with_declaring_class=false
33+
cleanup.remove_private_constructors=true
34+
cleanup.remove_redundant_type_arguments=true
35+
cleanup.remove_trailing_whitespaces=true
36+
cleanup.remove_trailing_whitespaces_all=true
37+
cleanup.remove_trailing_whitespaces_ignore_empty=false
38+
cleanup.remove_unnecessary_casts=true
39+
cleanup.remove_unnecessary_nls_tags=true
40+
cleanup.remove_unused_imports=true
41+
cleanup.remove_unused_local_variables=false
42+
cleanup.remove_unused_private_fields=true
43+
cleanup.remove_unused_private_members=false
44+
cleanup.remove_unused_private_methods=true
45+
cleanup.remove_unused_private_types=true
46+
cleanup.sort_members=false
47+
cleanup.sort_members_all=false
48+
cleanup.use_anonymous_class_creation=false
49+
cleanup.use_blocks=false
50+
cleanup.use_blocks_only_for_return_and_throw=false
51+
cleanup.use_lambda=true
52+
cleanup.use_parentheses_in_expressions=true
53+
cleanup.use_this_for_non_static_field_access=true
54+
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
55+
cleanup.use_this_for_non_static_method_access=true
56+
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
57+
cleanup_profile=_demos
58+
cleanup_settings_version=2
59+
eclipse.preferences.version=1
60+
formatter_profile=_demo settings
61+
formatter_settings_version=14
74.4 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4+
<listEntry value="/LotsOfSatellites/src/agi/examples/lotsofsatellites/Main.java"/>
5+
</listAttribute>
6+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7+
<listEntry value="1"/>
8+
</listAttribute>
9+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
10+
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
11+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
12+
</listAttribute>
13+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="agi.examples.lotsofsatellites.Main"/>
14+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="LotsOfSatellites"/>
15+
</launchConfiguration>

Java/LotsOfSatellites/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
To compile this sample application with Ant:
2+
* Copy your AGI.Foundation.lic file into the src directory.
3+
* Run "ant package".
4+
5+
The application will be compiled, packaged into a jar, and placed in the dist
6+
directory. You can then double-click the LotsOfSatellites.jar file to run the
7+
application, or, simply run "ant run".

Java/LotsOfSatellites/build.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<project name="LotsOfSatellites" basedir="." default="package">
2+
<property name="jar.name" value="LotsOfSatellites.jar" />
3+
4+
<property name="output.dir" value="ant" />
5+
<property name="bin.dir" value="${output.dir}/bin" />
6+
<property name="dist.dir" value="dist" />
7+
<property name="jars.dir" value="../../Jars" />
8+
9+
<target name="clean" description="Clean all generated output.">
10+
<delete dir="${output.dir}" />
11+
<delete dir="${dist.dir}" />
12+
</target>
13+
14+
<target name="prepare">
15+
<mkdir dir="${bin.dir}" />
16+
<mkdir dir="${dist.dir}" />
17+
<path id="project.classpath">
18+
<fileset dir="${jars.dir}">
19+
<include name="agi.foundation.core-*.jar" />
20+
<include name="agi.foundation.models-*.jar" />
21+
<include name="agi.foundation.platforms-*.jar" />
22+
<include name="agi.foundation.graphics-*.jar" />
23+
<include name="agi.foundation.terrainreaders-*.jar" />
24+
</fileset>
25+
</path>
26+
</target>
27+
28+
<target name="compile" depends="prepare" description="Compile source code.">
29+
<fail message="License not present. Copy your STK Components license file, AGI.Foundation.lic, into the src folder.">
30+
<condition>
31+
<not>
32+
<available file="src/AGI.Foundation.lic" />
33+
</not>
34+
</condition>
35+
</fail>
36+
37+
<javac source="1.8" target="1.8" destdir="${bin.dir}" classpathref="project.classpath" includeantruntime="no">
38+
<src path="src" />
39+
<src path="../Common/src/" />
40+
<include name="agi/examples/lotsofsatellites/**" />
41+
</javac>
42+
</target>
43+
44+
<target name="package" depends="compile" description="Package the application into a jar, and copy all needed resources to the dist directory.">
45+
<!-- Copy library jars to the dist directory -->
46+
<copy todir="${dist.dir}" flatten="true">
47+
<path refid="project.classpath" />
48+
</copy>
49+
50+
<!-- Build the jar file containing the application itself -->
51+
<copy todir="${bin.dir}">
52+
<fileset dir="src" excludes="**/*.java" />
53+
</copy>
54+
55+
<pathconvert property="manifest.classpath" pathsep=" ">
56+
<path refid="project.classpath" />
57+
<flattenmapper />
58+
</pathconvert>
59+
60+
<jar destfile="${dist.dir}/${jar.name}">
61+
<fileset dir="${bin.dir}" />
62+
<manifest>
63+
<attribute name="Class-Path" value="${manifest.classpath}" />
64+
<attribute name="Main-Class" value="agi.examples.lotsofsatellites.Main" />
65+
</manifest>
66+
</jar>
67+
68+
<!-- Copy other resources to the dist directory -->
69+
<copy todir="${dist.dir}/Data">
70+
<fileset dir="../Common/Data">
71+
<include name="EOP-v1.1.txt" />
72+
<include name="LeapSecond.dat" />
73+
<include name="plneph.430" />
74+
<include name="SatelliteDatabase/**" />
75+
<include name="Textures/OverlayToolbar/**" />
76+
</fileset>
77+
<fileset dir="projectData" includes="**" />
78+
</copy>
79+
<copy todir="${dist.dir}">
80+
<fileset dir="${jars.dir}">
81+
<include name="**/*.dll" />
82+
<include name="**/*.manifest" />
83+
</fileset>
84+
</copy>
85+
</target>
86+
87+
<target name="run" depends="package" description="Build and run the demo application.">
88+
<java fork="true" spawn="true" jar="${dist.dir}/${jar.name}" dir="${dist.dir}" />
89+
</target>
90+
</project>
343 Bytes
Loading
276 Bytes
Loading

0 commit comments

Comments
 (0)