move copy_acceptance_of and copy_ap_of to tgba.hh
Fixes #65. * src/tgba/tgbagraph.hh (copy_acceptance_of, copy_ap_of): Move... * src/tgba/tgba.hh: ... here.
This commit is contained in:
parent
a79267b8a3
commit
2dbef514bd
2 changed files with 15 additions and 16 deletions
|
|
@ -658,6 +658,21 @@ namespace spot
|
|||
prop_state_based_acc();
|
||||
}
|
||||
|
||||
/// \brief Copy the acceptance condition of another tgba.
|
||||
void copy_acceptance_of(const const_tgba_ptr& a)
|
||||
{
|
||||
acc_ = a->acc();
|
||||
unsigned num = acc_.num_sets();
|
||||
prop_single_acc_set(!acc_.uses_fin_acceptance() && num == 1);
|
||||
if (num == 0)
|
||||
prop_state_based_acc();
|
||||
}
|
||||
|
||||
void copy_ap_of(const const_tgba_ptr& a)
|
||||
{
|
||||
get_dict()->register_all_propositions_of(a, this);
|
||||
}
|
||||
|
||||
protected:
|
||||
/// Do the actual computation of tgba::support_conditions().
|
||||
virtual bdd compute_support_conditions(const state* state) const = 0;
|
||||
|
|
|
|||
|
|
@ -425,22 +425,6 @@ namespace spot
|
|||
auto is_dead_transition(const graph_t::trans_storage_t& t) const
|
||||
SPOT_RETURN(g_.is_dead_transition(t));
|
||||
|
||||
/// \brief Copy the acceptance conditions of another tgba.
|
||||
void copy_acceptance_of(const const_tgba_ptr& a)
|
||||
{
|
||||
// FIXME: Should rename as copy_acceptance_condition*_of
|
||||
acc_ = a->acc();
|
||||
unsigned num = acc_.num_sets();
|
||||
prop_single_acc_set(!acc_.uses_fin_acceptance() && num == 1);
|
||||
if (num == 0)
|
||||
prop_state_based_acc();
|
||||
}
|
||||
|
||||
void copy_ap_of(const const_tgba_ptr& a)
|
||||
{
|
||||
get_dict()->register_all_propositions_of(a, this);
|
||||
}
|
||||
|
||||
virtual bdd compute_support_conditions(const state* s) const
|
||||
{
|
||||
bdd sum = bddfalse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue