Class OpticalReceiver
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] An optical receiver is able to have a line of sight that is affected by the laser link that is set. The optical receiver is a form of a laser receiver that is able to receive data from a laser transmitter.
public class OpticalReceiver : Receiver
- Inheritance
-
OpticalReceiver
Constructors
OpticalReceiver()
Default constructor
protected OpticalReceiver()
Methods
OnCreate()
Called when the 'Component' is created from the controller.
protected override void OnCreate()
OnLoad(double)
Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.
protected override void OnLoad(double time)
Parameters
time
double[s] The current clock time of the simulation
SetLineOfSight(bool, Transmitter)
Updates the line of sight flag if this uses a particular transmission type that disables connection if the line of sight is blocked, for example, optical.
public void SetLineOfSight(bool los, Transmitter transmitter)
Parameters
los
boolA flag if the los is clear
transmitter
TransmitterThe transmitter for the connection