Class RfMediumHelper
Static class with methods that are usefull for RF communication
Inheritance
System.Object
RfMediumHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class RfMediumHelper
Methods
Broadcast<T>(T)
Sends message to every registered rf device.
Declaration
public static void Broadcast<T>(T msg)
where T : RfMessage
Parameters
Type |
Name |
Description |
T |
msg |
|
Type Parameters
GetAllRfDevices()
Declaration
public static RfDevice[] GetAllRfDevices()
Returns
GetRfDeviceById(Int32)
Declaration
public static RfDevice GetRfDeviceById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
GetRfDeviceById<T>(Int32)
Declaration
public static T GetRfDeviceById<T>(int id)
where T : RfDevice
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type Parameters
GetRfDevicesOnProtocol(String)
Declaration
public static RfDevice[] GetRfDevicesOnProtocol(string protocol)
Parameters
Type |
Name |
Description |
System.String |
protocol |
|
Returns
Range(RfDevice, RfDevice)
Emulates time needed for message to arrive and sends it to other nanomodem.
AcousticDevice does not have to have the same message as generic. If it knows how to decode
the protocoll, it will receive the message
Declaration
public static float Range(RfDevice source, RfDevice target)
Parameters
Returns
Type |
Description |
System.Single |
|
Transmit<T>(T, RfReceiver)
RfDevice does not have to have the same message as generic. If it knows how to decode
the protocoll, it will receive the message
Declaration
public static bool Transmit<T>(T message, RfReceiver receiver)
where T : RfMessage
Parameters
Type |
Name |
Description |
T |
message |
|
RfReceiver |
receiver |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters