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
9f67734a
Commit
9f67734a
authored
Nov 08, 2015
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackerThread update
parent
70eccf31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
16 deletions
+44
-16
trackerThread.java
src/satellite/trackerThread.java
+44
-16
No files found.
src/satellite/trackerThread.java
View file @
9f67734a
package
satellite
;
package
satellite
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
TrackerThread
{
public
class
trackerThread
implements
Runnable
{
//trackerThread.setSatellite(curSat);
//(new Thread(new trackerThread())).start();
private
static
List
<
thread
>
threadList
=
new
ArrayList
<
thread
>();
static
SatelliteTrack
sat
;
public
void
startTrack
(
String
sat
,
String
gs
){
int
satNum
=
SatelliteDB
.
getSatIndex
(
sat
);
SatelliteTrack
satellite
=
SatelliteDB
.
sat
(
satNum
);
threadList
.
add
(
new
thread
(
satellite
));
threadList
.
get
(
threadList
.
size
()-
1
).
run
();
}
public
void
stopTrack
(
String
sat
){
}
private
void
searchThread
(
String
sat
){
for
(
int
i
=
0
;
i
<
threadList
.
size
();
i
++){
if
(
sat
.
trim
().
equals
(
threadList
.
get
(
i
).
name
)){
//threadList.get(i).stopTrack(sat);;
}
}
}
private
class
thread
implements
Runnable
{
public
thread
(
SatelliteTrack
satellite
){
sat
=
satellite
;
name
=
satellite
.
getTLE
().
getName
();
}
String
name
;
SatelliteTrack
sat
;
int
seconds
=
0
;
int
seconds
=
0
;
public
void
run
(){
public
void
run
(){
while
(
true
){
while
(
true
){
...
@@ -18,9 +49,6 @@ public class trackerThread implements Runnable{
...
@@ -18,9 +49,6 @@ public class trackerThread implements Runnable{
}
}
}
}
}
}
public
static
void
setSatellite
(
SatelliteTrack
satellite
){
sat
=
satellite
;
}
}
}
}
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