changeset 418 | 64a8c24b61a5 |
parent 327 | b904d9a99e28 |
child 453 | c74a73474cce |
417:ae068232859c | 418:64a8c24b61a5 |
---|---|
389 that the structure of the Object Dictionary stay coherent |
389 that the structure of the Object Dictionary stay coherent |
390 """ |
390 """ |
391 |
391 |
392 class Node: |
392 class Node: |
393 |
393 |
394 DefaultStringSize = 10 |
|
395 |
|
394 def __init__(self, name = "", type = "slave", id = 0, description = "", profilename = "DS-301", profile = {}, specificmenu = []): |
396 def __init__(self, name = "", type = "slave", id = 0, description = "", profilename = "DS-301", profile = {}, specificmenu = []): |
395 self.Name = name |
397 self.Name = name |
396 self.Type = type |
398 self.Type = type |
397 self.ID = id |
399 self.ID = id |
398 self.Description = description |
400 self.Description = description |
476 """ |
478 """ |
477 Define the Specific Profile |
479 Define the Specific Profile |
478 """ |
480 """ |
479 def SetProfile(self, profile): |
481 def SetProfile(self, profile): |
480 self.Profile = profile |
482 self.Profile = profile |
483 |
|
484 """ |
|
485 Return the default string size |
|
486 """ |
|
487 def GetDefaultStringSize(self): |
|
488 return self.DefaultStringSize |
|
489 |
|
490 """ |
|
491 Define the default string size |
|
492 """ |
|
493 def SetDefaultStringSize(self, size): |
|
494 self.DefaultStringSize = size |
|
481 |
495 |
482 """ |
496 """ |
483 Define the DS-302 Profile |
497 Define the DS-302 Profile |
484 """ |
498 """ |
485 def SetDS302Profile(self, profile): |
499 def SetDS302Profile(self, profile): |