smartinspectpython.siwatch
Represents the Watch packet type which is used in the Watch methods in the SISession class.
A Watch is responsible for sending variables and their values to the Console. These key/value pairs will be displayed in the Watches toolbox. If a Watch with the same name is sent twice, the old value is overwritten and the Watches toolbox displays the most current value.
Threadsafety:
This class is not guaranteed to be thread-safe. However, instances of this class will normally only be used in the context of a single thread.
Initializes a new SIWatch instance with a custom watch type.
Arguments:
- watchType (SIWatchType): The type of the new Watch describes the variable type (String, Integer and so on). Please see the SIWatchType enum for more information.
Gets the Name property value.
Represents the name of this Watch.
If a Watch with the same name is sent twice, the old value is overwritten and the Watches toolbox displays the most current value. The name of this Watch will be empty in the SmartInspect Console when this property is set to null.
Overridden. Returns the total occupied memory size of this Watch packet.
The total occupied memory size of this Watch is the size of memory occupied by all strings and any internal data structures of this Watch.
Gets the Timestamp property value.
Represents the time-stamp of this Watch object.
This property returns the creation time of this object.
Gets the Value property value.
Represents the value of this Watch.
The value of a Watch is always sent as String. To view the type of this variable Watch, please have a look at the WatchType property. The value of this Watch will be empty in the SmartInspect Console when this property is set to null.
Gets the WatchType property value.
Represents the type of this Watch.
The type of this Watch describes the variable type (String, Integer and so on). Please see the SIWatchType enum for more information.