automaton.hpp

Go to the documentation of this file.
00001 #ifndef WALI_NWA_QUERY_automaton_HPP
00002 #define WALI_NWA_QUERY_automaton_HPP
00003 
00004 #include "opennwa/NwaFwd.hpp"
00005 
00006 
00007 namespace opennwa {
00008     namespace query {
00009 
00010       
00011       /**
00012        *
00013        * @brief tests whether this NWA is deterministic 
00014        *
00015        * This method tests whether this NWA is deterministic or nondeterministic. If this 
00016        * NWA is deterministic, true is returned.  Otherwise, false is returned.
00017        *
00018        * @return true if this NWA is deterministic, false otherwise
00019        *
00020        */
00021       bool
00022       isDeterministic(Nwa const & nwa);
00023 
00024 
00025       /**
00026        * 
00027        * @brief determines whether there is any overlap in the states of the given NWAs
00028        *
00029        * This method tests whether there is any overlap in the states of the given NWAs.
00030        *
00031        *   first->states()  intersect  second->states()  = {]
00032        *
00033        * @param - first: one of the NWAs whose states to compare
00034        * @param - second: one of the NWAs whose states to compare
00035        * @return true if there is some overlap in the states of the given NWAs, false otherwise
00036        *
00037        */
00038       bool
00039       statesOverlap(Nwa const & first, Nwa const & second);
00040 
00041   }
00042 }
00043 
00044 
00045 
00046 // Yo, Emacs!
00047 // Local Variables:
00048 //   c-file-style: "ellemtel"
00049 //   c-basic-offset: 2
00050 // End:
00051 
00052 #endif
00053