9 changed files with 186 additions and 55 deletions
-
14src/storm/abstraction/AbstractionInformation.cpp
-
17src/storm/abstraction/AbstractionInformation.h
-
5src/storm/abstraction/MenuGameAbstractor.h
-
44src/storm/abstraction/MenuGameRefiner.cpp
-
13src/storm/abstraction/MenuGameRefiner.h
-
27src/storm/abstraction/RefinementCommand.cpp
-
36src/storm/abstraction/RefinementCommand.h
-
47src/storm/abstraction/prism/PrismMenuGameAbstractor.cpp
-
32src/storm/abstraction/prism/PrismMenuGameAbstractor.h
@ -0,0 +1,27 @@ |
|||||
|
#include "storm/abstraction/RefinementCommand.h"
|
||||
|
|
||||
|
namespace storm { |
||||
|
namespace abstraction { |
||||
|
|
||||
|
RefinementCommand::RefinementCommand(uint64_t referencedPlayer1Choice, std::vector<storm::expressions::Expression> const& predicates) : referencedPlayer1Choice(referencedPlayer1Choice), predicates(predicates) { |
||||
|
// Intentionally left empty.
|
||||
|
} |
||||
|
|
||||
|
RefinementCommand::RefinementCommand(std::vector<storm::expressions::Expression> const& predicates) : predicates(predicates) { |
||||
|
// Intentionally left empty.
|
||||
|
} |
||||
|
|
||||
|
bool RefinementCommand::refersToPlayer1Choice() const { |
||||
|
return static_cast<bool>(referencedPlayer1Choice); |
||||
|
} |
||||
|
|
||||
|
uint64_t RefinementCommand::getReferencedPlayer1Choice() const { |
||||
|
return referencedPlayer1Choice.get(); |
||||
|
} |
||||
|
|
||||
|
std::vector<storm::expressions::Expression> const& RefinementCommand::getPredicates() const { |
||||
|
return predicates; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include <cstdint> |
||||
|
#include <vector> |
||||
|
|
||||
|
#include <boost/optional.hpp> |
||||
|
|
||||
|
#include "storm/storage/expressions/Expression.h" |
||||
|
|
||||
|
namespace storm { |
||||
|
namespace abstraction { |
||||
|
|
||||
|
class RefinementCommand { |
||||
|
public: |
||||
|
/*! |
||||
|
* Creates a new refinement command for the given player 1 choice. |
||||
|
*/ |
||||
|
RefinementCommand(uint64_t referencedPlayer1Choice, std::vector<storm::expressions::Expression> const& predicates); |
||||
|
|
||||
|
/*! |
||||
|
* Creates a new refinement command for all player 1 choices. |
||||
|
*/ |
||||
|
RefinementCommand(std::vector<storm::expressions::Expression> const& predicates); |
||||
|
|
||||
|
/// Access to the details of this refinement commands. |
||||
|
bool refersToPlayer1Choice() const; |
||||
|
uint64_t getReferencedPlayer1Choice() const; |
||||
|
std::vector<storm::expressions::Expression> const& getPredicates() const; |
||||
|
|
||||
|
private: |
||||
|
boost::optional<uint64_t> referencedPlayer1Choice; |
||||
|
std::vector<storm::expressions::Expression> predicates; |
||||
|
}; |
||||
|
|
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue