Package fuzz :: Package visplugins :: Module abc_plugin :: Class AbstractPlugin
[hide private]
[frames] | no frames]

Class AbstractPlugin

source code

object --+
         |
        AbstractPlugin
Known Subclasses:

Abstract plugins class.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
bool
is_supported(self)
Return whether the plugin is supported.
source code
tuple
visualize(self, *args, **kwargs)
Main visualization callback.
source code

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

Class Variables [hide private]
  types = []
Supported datatypes for visualization.
  __abstractmethods__ = frozenset(['is_supported', 'visualize'])
  _abc_cache = set([<class 'fuzz.visplugins.num_gnuplot.FuzzPyGn...
  _abc_negative_cache = set([])
  _abc_negative_cache_version = 14
  _abc_registry = set([])
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_supported(self)

source code 

Return whether the plugin is supported.

Returns: bool
True if the plugin can run in the current environment, False\ otherwise.
Decorators:
  • @abstractmethod

visualize(self, *args, **kwargs)

source code 

Main visualization callback.

Draws the visualization in-memory and saves the visualization data in a payload string to be returned.

Arbitrary keyword arguments can be passed that will be send to the backend object constructor. Future versions will attempt to provide a consistent framework for marshalling those keywords.

Returns: tuple
(format, payload) tuple.
Decorators:
  • @abstractmethod

Class Variable Details [hide private]

_abc_cache

Value:
set([<class 'fuzz.visplugins.num_gnuplot.FuzzPyGnuplot'>,
     <class 'fuzz.visplugins.graph_pydot.FuzzPyDot'>])