spot  2.5.1
Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members

An accepted run, for a twa. More...

#include <spot/twaalgos/emptiness.hh>

Collaboration diagram for spot::twa_run:

Classes

struct  step
 

Public Types

typedef std::list< stepsteps
 

Public Member Functions

 twa_run (const const_twa_ptr &aut)
 
 twa_run (const twa_run &run)
 
twa_runoperator= (const twa_run &run)
 
twa_run_ptr reduce () const
 Reduce an accepting run. More...
 
twa_run_ptr project (const const_twa_ptr &other, bool right=false)
 Project an accepting run. More...
 
bool replay (std::ostream &os, bool debug=false) const
 Replay a run. More...
 
void highlight (unsigned color)
 Highlight the accepting run on the automaton. More...
 
twa_graph_ptr as_twa (bool preserve_names=false) const
 Return a twa_graph_ptr corresponding to run. More...
 

Public Attributes

steps prefix
 
steps cycle
 
const_twa_ptr aut
 

Friends

std::ostream & operator<< (std::ostream &os, const twa_run &run)
 Display a twa_run. More...
 

Detailed Description

An accepted run, for a twa.

Member Function Documentation

◆ as_twa()

twa_graph_ptr spot::twa_run::as_twa ( bool  preserve_names = false) const

Return a twa_graph_ptr corresponding to run.

Identical states are merged.

If preserve_names is set, the created states are named using the format_state() result from the original state.

◆ highlight()

void spot::twa_run::highlight ( unsigned  color)

Highlight the accepting run on the automaton.

Note that this works only if the automaton is a twa_graph_ptr.

◆ project()

twa_run_ptr spot::twa_run::project ( const const_twa_ptr &  other,
bool  right = false 
)

Project an accepting run.

This only works if the automaton associated to this run has been created with otf_product() or product(), and other is one of the two operands of the product.

Use the right Boolean to specify whether other was a left or right operand.

◆ reduce()

twa_run_ptr spot::twa_run::reduce ( ) const

Reduce an accepting run.

Return a run which is still accepting for aut, but is no longer than this one.

◆ replay()

bool spot::twa_run::replay ( std::ostream &  os,
bool  debug = false 
) const

Replay a run.

This is similar to os << run;, except that the run is actually replayed on the automaton while it is printed. The output will stop if the run cannot be completed.

Parameters
osthe stream on which the replay should be traced
debugif set the output will be more verbose and extra debugging informations will be output on failure
Returns
true iff the run could be completed

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const twa_run run 
)
friend

Display a twa_run.

Output the prefix and cycle parts of the twa_run run on os.

The automaton object (stored by run) is used only to format the states, and to know how to print the BDDs describing the conditions and acceptance conditions of the run; it is not used to replay the run. In other words this function will work even if the twa_run you are trying to print appears to connect states that are not connected.

This is unlike replay_twa_run(), which will ensure the run actually exists in the automaton (and will also display any transition annotation).


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.8.13