Class PilotRating

java.lang.Object
org.deltava.beans.servinfo.NetworkUser
org.deltava.beans.servinfo.PilotRating
All Implemented Interfaces:
Serializable, Comparable<NetworkUser>, ViewEntry

public class PilotRating extends NetworkUser
A bean to store VATSIM Pilot Rating certificates.
Since:
7.2
Version:
7.2
Author:
Luke
See Also:
  • Constructor Details

    • PilotRating

      public PilotRating(int id, String rating)
      Creates the bean.
      Parameters:
      id - the certificate ID
      rating - the rating code
  • Method Details

    • getATOName

      public String getATOName()
      Returns the Authorized Training Organization name.
      Returns:
      the name
    • getATO

      public String getATO()
      Returns the Authorized Training Organization URL.
      Returns:
      the URL
    • getInstructor

      public int getInstructor()
      Returns the Instructor's certificate ID.
      Returns:
      the cert ID
    • getRatingCode

      public String getRatingCode()
      Returns the rating code.
      Returns:
      the code
    • getIssueDate

      public Instant getIssueDate()
      Returns the certification's issuance date.
      Returns:
      the issue date/time
    • setATO

      public void setATO(String name, String url)
      Sets the Authorized Training Organizataion.
      Parameters:
      name - the ATO name
      url - the ATO URL
    • setIssueDate

      public void setIssueDate(Instant dt)
      Sets the rating's date of issue
      Parameters:
      dt - the date/time
    • setInstructorID

      public void setInstructorID(int cid)
      Sets the Instructor Certificate ID.
      Parameters:
      cid - the Instructor's cert ID
    • getType

      public NetworkUser.Type getType()
      Description copied from class: NetworkUser
      Returns the user type.
      Specified by:
      getType in class NetworkUser
      Returns:
      the Type
    • toString

      public String toString()
      Overrides:
      toString in class NetworkUser