Documentation ¶
Index ¶
- type GroundStation
- type Satellite
- func (s *Satellite) AddGroundStation(groundStation *GroundStation)
- func (s *Satellite) AddTransceiver(transceiver *Transceiver)
- func (s *Satellite) CommunicateWithGroundStation(groundStation *GroundStation, data []byte) error
- func (s *Satellite) CommunicateWithMultipleGroundStations(groundStations []*GroundStation, data []byte) error
- func (s *Satellite) GetGroundStations() []*GroundStation
- func (s *Satellite) GetTransceivers() []*Transceiver
- func (s *Satellite) StartOrbit()
- type Transceiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroundStation ¶
type GroundStation struct {
// contains filtered or unexported fields
}
GroundStation represents a ground station
func NewGroundStation ¶
func NewGroundStation(id string) *GroundStation
NewGroundStation returns a new GroundStation instance
func (*GroundStation) ReceiveData ¶
func (g *GroundStation) ReceiveData(data []byte) error
ReceiveData receives data from the satellite
type Satellite ¶
type Satellite struct {
// contains filtered or unexported fields
}
Satellite represents a satellite in orbit
func NewSatellite ¶
NewSatellite returns a new Satellite instance
func (*Satellite) AddGroundStation ¶
func (s *Satellite) AddGroundStation(groundStation *GroundStation)
AddGroundStation adds a ground station to the satellite
func (*Satellite) AddTransceiver ¶
func (s *Satellite) AddTransceiver(transceiver *Transceiver)
AddTransceiver adds a transceiver to the satellite
func (*Satellite) CommunicateWithGroundStation ¶
func (s *Satellite) CommunicateWithGroundStation(groundStation *GroundStation, data []byte) error
CommunicateWithGroundStation communicates with a ground station
func (*Satellite) CommunicateWithMultipleGroundStations ¶
func (s *Satellite) CommunicateWithMultipleGroundStations(groundStations []*GroundStation, data []byte) error
CommunicateWithMultipleGroundStations communicates with multiple ground stations concurrently
func (*Satellite) GetGroundStations ¶
func (s *Satellite) GetGroundStations() []*GroundStation
GetGroundStations returns the satellite's ground stations
func (*Satellite) GetTransceivers ¶
func (s *Satellite) GetTransceivers() []*Transceiver
GetTransceivers returns the satellite's transceivers
func (*Satellite) StartOrbit ¶
func (s *Satellite) StartOrbit()
StartOrbit starts the satellite's orbit
type Transceiver ¶
type Transceiver struct {
// contains filtered or unexported fields
}
Transceiver represents a transceiver
func NewTransceiver ¶
func NewTransceiver(id string) *Transceiver
NewTransceiver returns a new Transceiver instance