Class AcousticMedium
Inheritance
System.Object
AcousticMedium
Assembly: cs.temp.dll.dll
Syntax
public class AcousticMedium : MediumBase
Constructors
AcousticMedium()
Declaration
protected AcousticMedium()
Fields
C
Speed of sound in medium (in meters per second)
Default is average speed of sound in sea water.
Declaration
Field Value
Type |
Description |
System.Single |
|
Name
Declaration
Field Value
Type |
Description |
System.String |
|
Methods
Broadcast<T>(T)
Sends message to every registered nanomodem device.
Declaration
public void Broadcast<T>(T msg)
where T : AcousticMessage
Parameters
Type |
Name |
Description |
T |
msg |
|
Type Parameters
Transmit<T>(T, AcousticReceiver)
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 bool Transmit<T>(T message, AcousticReceiver receiver)
where T : AcousticMessage
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters