Package de.dlr.proseo.model
Class Spacecraft
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.Spacecraft
The abstraction of a spacecraft used for a specific Mission. A Mission may operate more than one spacecraft.
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.getCode()Gets the spacecraft codeGets the mission of this spacecraftgetName()Gets the spacecraft nameGet the orbits of the spacecraftGets the list of payloadsinthashCode()voidSets the spacecraft codevoidsetMission(Mission mission) Sets the mission of this spacecraftvoidSets the spacecraft namevoidSet the orbits of the spacecraftvoidsetPayloads(List<Payload> payloads) Sets the list of payloadstoString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
Spacecraft
public Spacecraft()
-
-
Method Details
-
getMission
Gets the mission of this spacecraft- Returns:
- the mission
-
setMission
Sets the mission of this spacecraft- Parameters:
mission- the mission to set
-
getCode
Gets the spacecraft code- Returns:
- the code
-
setCode
Sets the spacecraft code- Parameters:
code- the code to set
-
getName
Gets the spacecraft name- Returns:
- the name
-
setName
Sets the spacecraft name- Parameters:
name- the name to set
-
getOrbits
Get the orbits of the spacecraft- Returns:
- the orbits
-
setOrbits
Set the orbits of the spacecraft- Parameters:
orbits- the orbits to set
-
getPayloads
Gets the list of payloads- Returns:
- the payloads
-
setPayloads
Sets the list of payloads- Parameters:
payloads- the payloads to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
Description copied from class:PersistentObjectTest equality of persistent objects based on their unique ID.- Overrides:
equalsin classPersistentObject- Parameters:
obj- the object to compare this object to- Returns:
- true, if obj is a persistent object and has the same ID, false otherwise
- See Also:
-
toString
-