Receiver_Native.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/Receiver_Native.h
10 
11 #ifndef __Receiver_Native_h
12 #define __Receiver_Native_h
13 
14 #include "Pulsar/Receiver.h"
15 
16 namespace Pulsar {
17 
19  class Receiver::Native : public Receiver::State {
20 
21  public:
22 
24  Native ();
25 
27  Signal::Basis get_basis () const
28  { return basis; }
29 
31  void set_basis (Signal::Basis _basis)
32  { basis = _basis; }
33 
35  Signal::Hand get_hand () const
36  { return hand; }
37 
39  void set_hand (Signal::Hand h)
40  { hand = h; }
41 
43  Angle get_orientation () const
44  { return orientation; }
45 
47  void set_orientation (const Angle& angle)
48  { orientation = angle; }
49 
52  { return reference_source_phase; }
53 
57 
59  void copy (const State*);
60 
61  protected:
62 
65 
68 
71 
74 
75  };
76 
77 }
78 
79 #endif
Signal::Hand hand
The hand of the basis.
Definition: Receiver_Native.h:77
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition: Fourier.C:135
The internal state of the Receiver Extension class.
Definition: Receiver.h:194
void set_hand(Signal::Hand)
Set the hand of the basis.
Definition: Receiver.C:112
Reference::To< State > state
State of the receiver.
Definition: Receiver.h:230
void set_hand(Signal::Hand h)
Set true if the basis is right-handed.
Definition: Receiver_Native.h:49
void set_basis(Signal::Basis basis)
Set the basis of the feed receptors.
Definition: Receiver.C:97
Signal::Hand get_hand() const
Get the hand of the basis.
Definition: Receiver_Native.h:45
void set_name(const std::string &_name)
Set the name of the receiver.
Definition: Receiver.h:92
Signal::Basis get_basis() const
Get the basis of the feed receptors.
Definition: Receiver_Native.h:37
Contains information about the receiver and receiver platform.
Definition: Receiver.h:28
Angle get_orientation() const
Get the orientation of the basis about the line of sight.
Definition: Receiver_Native.h:53
Angle reference_source_phase
Phase of p^* q for reference source.
Definition: Receiver_Native.h:83
void set_orientation(const Angle &angle)
Set the orientation of the basis about the line of sight.
Definition: Receiver_Native.h:57
void parse(std::string text)
Parses the value of a Receiver attribute from a string.
Definition: Receiver_load.C:38
Native()
Default constructor.
Definition: Receiver_Native.C:9
void set_reference_source_phase(const Angle &phase)
Set the phase of the reference source.
Definition: Receiver.C:118
static Receiver * new_Receiver(const std::string &text)
Construct a new Receiver instance from a string.
Definition: Receiver_load.C:30
void set_basis(Signal::Basis _basis)
Set the basis of the feed receptors.
Definition: Receiver_Native.h:41
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void copy(const State *)
Copy the state from another.
Definition: Receiver_Native.C:16
void set_orientation(const Angle &celestial_position_angle)
Set the orientation of the basis about the line of sight.
Definition: Receiver.C:105
Signal::Basis basis
Basis of the feed receptors.
Definition: Receiver_Native.h:74
Angle orientation
The orientation of the basis about the line of sight.
Definition: Receiver_Native.h:80
Angle get_reference_source_phase() const
Get the phase of the reference source.
Definition: Receiver_Native.h:61
void set_reference_source_phase(const Angle &phase)
Set the phase of the reference source.
Definition: Receiver_Native.h:65
static Receiver * load(const std::string &filename)
Construct a new Receiver instance from a file.
Definition: Receiver_load.C:15

Generated using doxygen 1.8.17