Generate TDMA¶
-
class
Options
(tdmaPeriod=0.01, tdmaSlots=2, node='notdma', outputFilename='tdma', activeSlot=0)¶ -
parseArgs
(args)¶
-
-
class
TDMA
(period, slots, selectedSlot)¶ A TDMA period describes when nodes can transmit in which slots on the network during a given period.
Parameters: - period (double) – the period of the TDMA profile
- slots (int) – number of slots this TDMA profile has
- selectedSlot (int) – which slot are we analyzing?
-
generateNewProfile
(oldProfile, tdma)¶ Create a TDMA profile network Profile from a regular network Profile
Parameters: - oldProfile (list) – list of
networkProfile.ProfileEntry
describing the original profile - tdma (class) – a
generateTDMA.TDMA
object describing the TDMA scheme
- oldProfile (list) – list of
-
get_nodeProfiles
(folder)¶
-
generateProfile
(txtProfile)¶
-
main
()¶