PyvsimObject

class pyvsim.Core.PyvsimObject[source]

This is the base class of the program. It is used to implement the following behaviors:

  • Serialization (via the __getstate__ method)
  • Visitor pattern
  • Identification and naming of objects

Methods

acceptVisitor(visitor)[source]

This method is a provision for the Visitor Pattern and is used for traversing the tree.

Some possible uses are the display or the saving routine.

If you are inheriting from this class and your node is non-terminal, please override this method

Parameters :

visitor :

an object inheriting from Visitor

name = None

Name of the object, used for displaying and referencing the object

transientFields = None

Fields to be excluded in the serialization process, empty list by default

This Page