Browse Source
removed RewardIncrement. fixed PRISM to JANI converter
removed RewardIncrement. fixed PRISM to JANI converter
Former-commit-id:mainc189fa8e60
[formerly63dccbdb95
] Former-commit-id:36449defd0
13 changed files with 130 additions and 132 deletions
-
23src/storage/jani/Automaton.cpp
-
8src/storage/jani/Automaton.h
-
46src/storage/jani/EdgeDestination.cpp
-
37src/storage/jani/EdgeDestination.h
-
7src/storage/jani/Location.h
-
23src/storage/jani/Model.cpp
-
10src/storage/jani/Model.h
-
19src/storage/jani/RewardIncrement.cpp
-
39src/storage/jani/RewardIncrement.h
-
1src/storage/jani/Variable.h
-
9src/storage/jani/VariableSet.cpp
-
6src/storage/jani/VariableSet.h
-
26src/storage/prism/Program.cpp
@ -1,19 +0,0 @@ |
|||
#include "src/storage/jani/RewardIncrement.h"
|
|||
|
|||
namespace storm { |
|||
namespace jani { |
|||
|
|||
RewardIncrement::RewardIncrement(uint64_t rewardIndex, storm::expressions::Expression const& value) : rewardIndex(rewardIndex), value(value) { |
|||
// Intentionally left empty.
|
|||
} |
|||
|
|||
uint64_t RewardIncrement::getRewardIndex() const { |
|||
return rewardIndex; |
|||
} |
|||
|
|||
storm::expressions::Expression const& RewardIncrement::getValue() const { |
|||
return value; |
|||
} |
|||
|
|||
} |
|||
} |
@ -1,39 +0,0 @@ |
|||
#pragma once |
|||
|
|||
#include <cstdint> |
|||
|
|||
#include "src/storage/expressions/Expression.h" |
|||
|
|||
namespace storm { |
|||
namespace jani { |
|||
|
|||
class RewardIncrement { |
|||
public: |
|||
/*! |
|||
* Creates an increment of a reward (given by its index) by the given expression. |
|||
* |
|||
* @param rewardIndex The index of the reward to increment. |
|||
* @param value The expression defining the amount the reward is the incremented. |
|||
*/ |
|||
RewardIncrement(uint64_t rewardIndex, storm::expressions::Expression const& value); |
|||
|
|||
/*! |
|||
* Retrieves the index of the reward to increment. |
|||
*/ |
|||
uint64_t getRewardIndex() const; |
|||
|
|||
/*! |
|||
* Retrieves the expression defining the amount by which the reward is to be incremented. |
|||
*/ |
|||
storm::expressions::Expression const& getValue() const; |
|||
|
|||
private: |
|||
// The index of the reward that is to be incremented. |
|||
uint64_t rewardIndex; |
|||
|
|||
// The expression defining the amount the reward is to be incremented. |
|||
storm::expressions::Expression value; |
|||
}; |
|||
|
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue