LearnTA  0.0.1
Public Member Functions | Public Attributes | List of all members
learnta::ZoneAutomaton Struct Reference

A Zone automaton. More...

#include <zone_automaton.hh>

Inheritance diagram for learnta::ZoneAutomaton:
Inheritance graph
[legend]
Collaboration diagram for learnta::ZoneAutomaton:
Collaboration graph
[legend]

Public Member Functions

std::optional< TimedWordsample () const
 Sample a timed word in this zone automaton. More...
 
std::optional< TimedWordsampleWithMemo ()
 
void removeDeadStates ()
 Remove dead states, i.e., unreachable to any of the accepting states.
 
- Public Member Functions inherited from learnta::Automaton< ZAState >
std::size_t stateSize () const
 Returns the number of the states.
 
bool operator== (const Automaton< ZAState > &A) const
 Check the equivalence of two automata.
 

Public Attributes

std::optional< TimedWordsampleMemo
 
- Public Attributes inherited from learnta::Automaton< ZAState >
std::vector< std::shared_ptr< ZAState > > states
 The states of this automaton.
 
std::vector< std::shared_ptr< ZAState > > initialStates
 The initial states of this automaton.
 

Detailed Description

A Zone automaton.

Member Function Documentation

◆ sample()

std::optional<TimedWord> learnta::ZoneAutomaton::sample ( ) const
inline

Sample a timed word in this zone automaton.

We use the reconstruction algorithm in [Andre+, NFM'22]


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