ScriptTraceDiagramCollection¶
- class ScriptTraceDiagramCollection.ScriptTraceDiagramCollection(iterable=(), /)¶
- Bases: - listRepresents the collection of Diagrams in one TraceObject.- __iter__() Iterable[ScriptTraceDiagram]¶
 - __next__() ScriptTraceDiagram¶
 - __len__() int¶
- Returns the number of ScriptTraceDiagrams in this ScriptTraceDiagramCollection.
 - __contains__(diagram: ScriptTraceDiagram) bool¶
- Returns, wether the ScriptTraceDiagramCollection contains the ScriptTraceDiagram.Allows usage of ‘in’ and ‘not in’ operators.
 - __getitem__(index: int) ScriptTraceDiagram¶
- Gets or sets the diagram at the given index.
 - add() ScriptTraceDiagram¶
- Creates and adds a ScriptTraceDiagram to the collection. Returns the ScriptTraceDiagram.Not allowed for the ScriptTraceDiagramCollection of the DeviceTrace.
 - remove(index: int) None¶
- remove(diagram: ScriptTraceDiagram) None
- Removes the ScriptTraceDiagram at the given index.
 - clear() None¶
- Removes all ScriptTraceDiagrams from this ScriptTraceDiagramCollection.
 - index_of(diagram: ScriptTraceDiagram) int¶
- Returns the index of the ScriptTraceDiagram in the collection or -1, if the Variable could not be found.
 - contains(diagram: ScriptTraceDiagram) bool¶
- Returns, wether the ScriptTraceDiagramCollection contains the ScriptTraceDiagram.