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

    Fields
    Modifier and Type Field Description
    private java.util.ArrayList<Channel> channels
    List of channels.
    private int freq
    Used field name from JSON file.
    private java.lang.String sat
    Used field name from JSON file.
  • 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 freq
      Used field name from JSON file.
    • sat

      private java.lang.String sat
      Used field name from JSON file.
    • channels

      private java.util.ArrayList<Channel> channels
      List of channels.
  • Constructor Details

    • Transponder

      public Transponder()
  • Method Details

    • getChannels

      public java.util.ArrayList<Channel> 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