spot  1.0.2
Public Types | Public Member Functions | Private Attributes | List of all members
spot::postprocessor Class Reference

Wrap TGBA/BA/Monitor post-processing algorithms in an easy interface. More...

#include <tgbaalgos/postproc.hh>

Collaboration diagram for spot::postprocessor:
Collaboration graph

Public Types

enum  output_type { TGBA, BA, Monitor }
enum  output_pref { Any, Small, Deterministic }
enum  optimization_level { Low, Medium, High }

Public Member Functions

 postprocessor ()
void set_type (output_type type)
void set_pref (output_pref pref)
void set_level (optimization_level level)
const tgbarun (const tgba *input_disown, const ltl::formula *f)
 Return the optimized automaton and delete input_disown.

Private Attributes

output_type type_
output_pref pref_
optimization_level level_

Detailed Description

Wrap TGBA/BA/Monitor post-processing algorithms in an easy interface.

This class is a shell around scc_filter(), minimize_obligation(), simulation(), iterated_simulations(), and degeneralize(). These different algorithms will be combined depending on the various options set with set_type(), set_pref(), and set_level().

This helps hiding some of the logic required to combine these simplifications efficiently (e.g., there is no point calling degeneralize() or any simulation when minimize_obligation() succeeded.)

Use set_pref() method to specify whether you favor deterministic automata or small automata. If you don't care, less post processing will be done.

The set_level() method let you set the optimization level. Higher level enable more costly postprocessign. For instance pref=Small,level=High will try two different postprocessings (one with minimize_obligation(), and one with iterated_simulations()) an keep the smallest result. pref=Small,level=Medium will only try the iterated_simulations() when minimized_obligation failed to produce an automaton smaller than its input. pref=Small,level=Low will only run simulation().

Member Enumeration Documentation

Enumerator:
Low 
Medium 
High 
Enumerator:
Any 
Small 
Deterministic 
Enumerator:
TGBA 
BA 
Monitor 

Constructor & Destructor Documentation

spot::postprocessor::postprocessor ( )
inline

Member Function Documentation

const tgba* spot::postprocessor::run ( const tgba input_disown,
const ltl::formula f 
)

Return the optimized automaton and delete input_disown.

void spot::postprocessor::set_level ( optimization_level  level)
inline

References level_.

void spot::postprocessor::set_pref ( output_pref  pref)
inline

References pref_.

void spot::postprocessor::set_type ( output_type  type)
inline

References type_.

Member Data Documentation

optimization_level spot::postprocessor::level_
private

Referenced by set_level().

output_pref spot::postprocessor::pref_
private

Referenced by set_pref().

output_type spot::postprocessor::type_
private

Referenced by set_type().


The documentation for this class was generated from the following file:

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Mar 6 2013 09:25:16 for spot by doxygen 1.8.1.2