Class DataSubsystem
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
The data subsystem handles the interactions between transmitters and receivers by creating the link blocks between each of the antenna nodes. This ensures that the appropriate links are created and altered if the bandwidths or frequency ranges change.
public class DataSubsystem : SimulationSystem
- Inheritance
-
DataSubsystem
- Inherited Members
Constructors
DataSubsystem()
public DataSubsystem()
Fields
LinkBlocks
A list of all link blocks for handling the updates
public List<LinkBlock> LinkBlocks
Field Value
Properties
NumLinks
The total number of links that are created
[EditableVariable("-", true, "", "")]
public int NumLinks { get; }
Property Value
Methods
GetAntennaLink(Receiver, Transmitter)
Returns the link message between a receiver and a transmitter if it is valid and exists.
public DataLinkMessage? GetAntennaLink(Receiver receiver, Transmitter transmitter)
Parameters
receiver
ReceiverThe receiver antenna
transmitter
TransmitterThe transmitter antenna
Returns
- DataLinkMessage
The data link message
GetAntennaLinks(PhysicalObject, PhysicalObject)
Returns an array of data link messages between two entities, such as a ground station and a spacecraft. These are all valid link messages.
public DataLinkMessage[] GetAntennaLinks(PhysicalObject entity1, PhysicalObject entity2)
Parameters
entity1
PhysicalObjectThe first object
entity2
PhysicalObjectThe second object
Returns
- DataLinkMessage[]
A list of data link messages
OnDecodeMetadata(JObject)
Called after the "SimulationSystem" was loaded to handle additional metadata.
protected override void OnDecodeMetadata(JObject metadata)
Parameters
metadata
JObject
OnReset(double)
Called when the 'SimulationSystem' is resetting
protected override void OnReset(double time)
Parameters
time
doublereset time (seconds)
OnUpdate(double, double)
Called when the 'SimulationSystem' should update
protected override void OnUpdate(double time, double step)