You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.0 KiB
49 lines
2.0 KiB
#pragma once
|
|
|
|
#include "storm/storage/dd/bisimulation/PartitionRefiner.h"
|
|
|
|
namespace storm {
|
|
namespace models {
|
|
namespace symbolic {
|
|
template <storm::dd::DdType DdType, typename ValueType>
|
|
class Mdp;
|
|
}
|
|
}
|
|
|
|
namespace dd {
|
|
namespace bisimulation {
|
|
|
|
template <storm::dd::DdType DdType, typename ValueType>
|
|
class MdpPartitionRefiner : public PartitionRefiner<DdType, ValueType> {
|
|
public:
|
|
MdpPartitionRefiner(storm::models::symbolic::Mdp<DdType, ValueType> const& mdp, Partition<DdType, ValueType> const& initialStatePartition);
|
|
|
|
/*!
|
|
* Refines the partition.
|
|
*
|
|
* @param mode The signature mode to use.
|
|
* @return False iff the partition is stable and no refinement was actually performed.
|
|
*/
|
|
virtual bool refine(bisimulation::SignatureMode const& mode = bisimulation::SignatureMode::Eager) override;
|
|
|
|
/*!
|
|
* Retrieves the current choice partition in the refinement process.
|
|
*/
|
|
Partition<DdType, ValueType> const& getChoicePartition() const;
|
|
|
|
private:
|
|
virtual bool refineWrtStateActionRewards(storm::models::symbolic::Model<DdType, ValueType> const& model, storm::dd::Add<DdType, ValueType> const& stateActionRewards) override;
|
|
|
|
// The choice partition in the refinement process.
|
|
Partition<DdType, ValueType> choicePartition;
|
|
|
|
// The object used to compute the state signatures.
|
|
SignatureComputer<DdType, ValueType> stateSignatureComputer;
|
|
|
|
// The object used to refine the state partition based on the signatures.
|
|
SignatureRefiner<DdType, ValueType> stateSignatureRefiner;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|