Klasse Spacecraft


@Entity public class Spacecraft extends PersistentObject
The abstraction of a spacecraft used for a specific Mission. A Mission may operate more than one spacecraft.
Autor:
Dr. Thomas Bassler
  • Konstruktordetails

    • Spacecraft

      public Spacecraft()
  • Methodendetails

    • getMission

      public Mission getMission()
      Gets the mission of this spacecraft
      Gibt zurück:
      the mission
    • setMission

      public void setMission(Mission mission)
      Sets the mission of this spacecraft
      Parameter:
      mission - the mission to set
    • getCode

      public String getCode()
      Gets the spacecraft code
      Gibt zurück:
      the code
    • setCode

      public void setCode(String code)
      Sets the spacecraft code
      Parameter:
      code - the code to set
    • getName

      public String getName()
      Gets the spacecraft name
      Gibt zurück:
      the name
    • setName

      public void setName(String name)
      Sets the spacecraft name
      Parameter:
      name - the name to set
    • getOrbits

      public List<Orbit> getOrbits()
      Get the orbits of the spacecraft
      Gibt zurück:
      the orbits
    • setOrbits

      public void setOrbits(List<Orbit> orbits)
      Set the orbits of the spacecraft
      Parameter:
      orbits - the orbits to set
    • getPayloads

      public List<Payload> getPayloads()
      Gets the list of payloads
      Gibt zurück:
      the payloads
    • setPayloads

      public void setPayloads(List<Payload> payloads)
      Sets the list of payloads
      Parameter:
      payloads - the payloads to set
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse PersistentObject
    • equals

      public boolean equals(Object obj)
      Beschreibung aus Klasse kopiert: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Setzt außer Kraft:
      equals in Klasse PersistentObject
      Parameter:
      obj - the object to compare this object to
      Gibt zurück:
      true, if obj is a persistent object and has the same ID, false otherwise
      Siehe auch:
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object