Package model
Class Satellite
java.lang.Object
model.Satellite
public class Satellite
extends java.lang.Object
Class to represent a Satellite with the for this project needed information
(could be extended).
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
sat
Used field name from JSON file.private java.util.ArrayList<Transponder>
transponders
List of transponders. -
Constructor Summary
Constructors Constructor Description Satellite(Transponder t)
Constructor for Satellites, adds a transponder to the list of transponders and sets the name of the satellite. -
Method Summary
Modifier and Type Method Description void
addTransponder(Transponder toAdd)
Adds a transponder to the transponders list.java.lang.String
getSat()
Returns the name of the Satellitejava.util.ArrayList<Transponder>
getTransponders()
Returns list of transponders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
sat
private java.lang.String satUsed field name from JSON file. -
transponders
List of transponders.
-
-
Constructor Details
-
Satellite
Constructor for Satellites, adds a transponder to the list of transponders and sets the name of the satellite.- Parameters:
t
- Transponder object
-
-
Method Details
-
addTransponder
Adds a transponder to the transponders list.- Parameters:
toAdd
- Transponder to add
-
getSat
public java.lang.String getSat()Returns the name of the Satellite- Returns:
- name of satellite
-
getTransponders
Returns list of transponders.- Returns:
- list of transponders
-