Package fuzz :: Module visualization :: Class VisManager
[hide private]
[frames] | no frames]

Class VisManager

source code

object --+
         |
        VisManager

Visualization plugin factory class.

Provides plugin management methods and a helper method to dispatch a FuzzPy object to a plugin.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
list
get_supported_plugins(datatype=None)
Returns a list of plugins supported by the current system.
source code
tuple (format, payload)
create_backend(obj, plugin=None, *args, **kwargs)
Visualization plugin factory method.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_supported_plugins(datatype=None)
Static Method

source code 

Returns a list of plugins supported by the current system.

If datatype is specified, try to find supported plugins that can be used to represent the specified datatype. Otherwise, return a list of all plugins that can run on that system.

If any type of exception is raised during the is_supported() call, the plugin will not be included in the resulting list.

Parameters:
  • datatype (str) - fuzzpy datatype to look for supported plugins.
Returns: list
list of plugins that can run in the current environment

create_backend(obj, plugin=None, *args, **kwargs)
Static Method

source code 

Visualization plugin factory method.

Returns a new instance of the appropriate visualization plugin. If no 'plugin' argument is specified as the preferred visualization backend, the first plugin that supports visualization for 'obj's class name will be used as the backend.

Parameters:
  • obj (Object) - Object to draw
  • plugin (str) - Name of the plugin to use
Returns: tuple (format, payload)
The return value of the plugin's visualize() method