Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
Satellite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Reis
Satellite
Commits
658471f8
Commit
658471f8
authored
Nov 02, 2015
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tracker thread
parent
a9ebd350
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
59 deletions
+64
-59
.classpath
.classpath
+1
-0
.gitignore
bin/.gitignore
+1
-0
tracker.class
bin/satellite/tracker.class
+0
-0
jgoodies-forms-1.8.0-sources.jar
jgoodies-forms-1.8.0-sources.jar
+0
-0
jgoodies-forms-1.8.0.jar
jgoodies-forms-1.8.0.jar
+0
-0
Application.java
src/GUI/Application.java
+7
-1
satelliteInfo.java
src/GUI/satelliteInfo.java
+0
-33
satelliteStatus.java
src/GUI/satelliteStatus.java
+32
-0
satelliteTree.java
src/GUI/satelliteTree.java
+2
-1
tracker.java
src/satellite/tracker.java
+0
-24
trackerThread.java
src/satellite/trackerThread.java
+21
-0
No files found.
.classpath
View file @
658471f8
...
@@ -17,5 +17,6 @@
...
@@ -17,5 +17,6 @@
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"
/>
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"
/>
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"
/>
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"
/>
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"
/>
<classpathentry
kind=
"lib"
path=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"
sourcepath=
"C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"
/>
<classpathentry
kind=
"lib"
path=
"jgoodies-forms-1.8.0.jar"
sourcepath=
"jgoodies-forms-1.8.0-sources.jar"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
</classpath>
bin/.gitignore
View file @
658471f8
/GUI/
/GUI/
/satellite/
bin/satellite/tracker.class
deleted
100644 → 0
View file @
a9ebd350
File deleted
jgoodies-forms-1.8.0-sources.jar
0 → 100644
View file @
658471f8
File added
jgoodies-forms-1.8.0.jar
0 → 100644
View file @
658471f8
File added
src/GUI/Application.java
View file @
658471f8
...
@@ -108,7 +108,7 @@ public class Application {
...
@@ -108,7 +108,7 @@ public class Application {
});
});
mnFile
.
add
(
mntmSaveTleXml
);
mnFile
.
add
(
mntmSaveTleXml
);
JMenuItem
mntmCustomeSatelliteTrack
=
new
JMenuItem
(
"Custom
e
Satellite Track"
);
JMenuItem
mntmCustomeSatelliteTrack
=
new
JMenuItem
(
"Custom Satellite Track"
);
mnFile
.
add
(
mntmCustomeSatelliteTrack
);
mnFile
.
add
(
mntmCustomeSatelliteTrack
);
JMenuItem
mntmSettings
=
new
JMenuItem
(
"Settings"
);
JMenuItem
mntmSettings
=
new
JMenuItem
(
"Settings"
);
...
@@ -136,6 +136,12 @@ public class Application {
...
@@ -136,6 +136,12 @@ public class Application {
menuBar
.
add
(
mnView
);
menuBar
.
add
(
mnView
);
JMenuItem
mntmSelectSatellite
=
new
JMenuItem
(
"Select Satellite"
);
JMenuItem
mntmSelectSatellite
=
new
JMenuItem
(
"Select Satellite"
);
mntmSelectSatellite
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mousePressed
(
MouseEvent
arg0
)
{
(
new
Thread
(
new
trackerThread
())).
start
();
}
});
mnView
.
add
(
mntmSelectSatellite
);
mnView
.
add
(
mntmSelectSatellite
);
JMenu
mnWindows
=
new
JMenu
(
"Windows"
);
JMenu
mnWindows
=
new
JMenu
(
"Windows"
);
...
...
src/GUI/satelliteInfo.java
deleted
100644 → 0
View file @
a9ebd350
package
GUI
;
import
java.awt.EventQueue
;
import
javax.swing.JInternalFrame
;
public
class
satelliteInfo
extends
JInternalFrame
{
/**
* Launch the application.
*/
public
static
void
main
(
String
[]
args
)
{
EventQueue
.
invokeLater
(
new
Runnable
()
{
public
void
run
()
{
try
{
satelliteInfo
frame
=
new
satelliteInfo
();
frame
.
setVisible
(
true
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
});
}
/**
* Create the frame.
*/
public
satelliteInfo
()
{
setBounds
(
100
,
100
,
450
,
300
);
}
}
src/GUI/satelliteStatus.java
0 → 100644
View file @
658471f8
package
GUI
;
import
java.awt.EventQueue
;
import
javax.swing.JInternalFrame
;
import
com.jgoodies.forms.layout.FormLayout
;
import
com.jgoodies.forms.layout.ColumnSpec
;
import
com.jgoodies.forms.layout.RowSpec
;
import
com.jgoodies.forms.layout.FormSpecs
;
import
javax.swing.JLabel
;
public
class
satelliteStatus
extends
JInternalFrame
{
/**
* Create the frame.
*/
public
satelliteStatus
()
{
setBounds
(
100
,
100
,
451
,
576
);
getContentPane
().
setLayout
(
new
FormLayout
(
new
ColumnSpec
[]
{
FormSpecs
.
RELATED_GAP_COLSPEC
,
FormSpecs
.
DEFAULT_COLSPEC
,
FormSpecs
.
RELATED_GAP_COLSPEC
,
FormSpecs
.
DEFAULT_COLSPEC
,},
new
RowSpec
[]
{
FormSpecs
.
RELATED_GAP_ROWSPEC
,
FormSpecs
.
DEFAULT_ROWSPEC
,
FormSpecs
.
RELATED_GAP_ROWSPEC
,
FormSpecs
.
DEFAULT_ROWSPEC
,}));
}
}
src/GUI/satelliteTree.java
View file @
658471f8
...
@@ -94,7 +94,8 @@ public class satelliteTree extends JInternalFrame {
...
@@ -94,7 +94,8 @@ public class satelliteTree extends JInternalFrame {
BufferedImage
img
=
null
;
BufferedImage
img
=
null
;
try
{
try
{
img
=
ImageIO
.
read
(
new
File
(
"C:\\Users\\Christopher\\Documents\\GitHub\\Satellite\\satellite.png"
));
img
=
ImageIO
.
read
(
new
File
(
"D:\\MyDocuments\\GitHub\\Satellite\\satellite.png"
));
//C:\\Users\\Christopher\\Documents\\GitHub\\Satellite\\satellite.png
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
src/satellite/tracker.java
deleted
100644 → 0
View file @
a9ebd350
package
satellite
;
public
class
tracker
{
public
static
void
main
(
String
[]
args
)
{
SatelliteDB
satellites
=
new
SatelliteDB
(
"SatelliteDB"
);
satellites
.
readXML
();
satellites
.
getSatellites_GPS
();
satellites
.
getSatellites_NOAA
();
satellites
.
getSatellites_Stations
();
satellites
.
getSatellites_GEO
();
satellites
.
getSatellites_Iridium
();
satellites
.
writeToXML
();
System
.
out
.
println
(
"There are "
+
satellites
.
getSize
()
+
" in the database!"
);
}
}
src/satellite/trackerThread.java
0 → 100644
View file @
658471f8
package
satellite
;
public
class
trackerThread
implements
Runnable
{
int
seconds
=
0
;
public
void
run
(){
while
(
true
){
System
.
out
.
println
(
"Running for: "
+
seconds
);
seconds
++;
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment