Package model
Class Transponder
java.lang.Object
model.Transponder
public class Transponder
extends java.lang.Object
Class to represent a Transponder with the for this project needed information
(could be extended).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Transponder()
-
Method Summary
Modifier and Type Method Description private int
getAmountChannels(java.lang.String type)
Returns the amount of channel this transponder holds for a specific type.int
getAmountRadioChannels()
Returns number of radio channels by calling getAmountChannels() with its type.int
getAmountTVChannels()
Returns number of TV channels by calling getAmountChannels() with its type.java.util.ArrayList<Channel>
getChannels()
Returns a list of channels.int
getFreq()
Returns the frequency of the transponder.java.lang.String
getSat()
Returns the satellite the transponder belongs to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
freq
private int freqUsed field name from JSON file. -
sat
private java.lang.String satUsed field name from JSON file. -
channels
List of channels.
-
-
Constructor Details
-
Transponder
public Transponder()
-
-
Method Details
-
getChannels
Returns a list of channels.- Returns:
- List of channels
-
getAmountChannels
private int getAmountChannels(java.lang.String type)Returns the amount of channel this transponder holds for a specific type.- Parameters:
type
- in question- Returns:
- number of channels of the type in question
-
getAmountTVChannels
public int getAmountTVChannels()Returns number of TV channels by calling getAmountChannels() with its type.- Returns:
- number of TV channels
-
getAmountRadioChannels
public int getAmountRadioChannels()Returns number of radio channels by calling getAmountChannels() with its type.- Returns:
- number of radio channels
-
getSat
public java.lang.String getSat()Returns the satellite the transponder belongs to.- Returns:
- satellite
-
getFreq
public int getFreq()Returns the frequency of the transponder.- Returns:
- frequency
-