CSemiMDPTransition Class Reference
Transition for the semiMDP
case. More...
#include <ctheoreticalmodel.h>
Inheritance diagram for CSemiMDPTransition:
List of all
members.
Detailed Description
Transition for the semiMDP case.
CSemiMDPTranstion stores a Transition for the Semi-Markov case.
Additionally has an list of possible durations and the
probabilities of the duration, so the probability of the duration
multiplied with the transition probability is the probability of
coming from state A to state B in "duration" steps, executing the
given action. The type field of CSemiMDP transition is set to
SEMIMDPTRANSITION. When adding a duration with a specific factor,
all other duration factors get multiplied by 1 - factor, and then
the given duration's factor is added or a nes duration is added to
the list if the duration wasn't member. When setting a duration all
other durations factors are multiplied by 1 - (factor -
factor_{old}).
Constructor & Destructor Documentation
|
CSemiMDPTransition::CSemiMDPTransition
|
( |
int |
startState,
|
|
|
int |
endState,
|
|
|
double |
prop |
|
) |
|
|
| virtual
CSemiMDPTransition::~CSemiMDPTransition
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| void
CSemiMDPTransition::addDuration
|
( |
int |
duration,
|
|
|
double |
factor |
|
) |
|
|
| |
adds the given factor the duration's factor
When adding a duration with a specific factor, all other
duration factors get multiplied by 1 - factor, and then the given
duration's factor is added or a nes duration is added to the list
if the duration wasn't member.
|
| double
CSemiMDPTransition::getDurationFaktor
|
( |
int |
duration |
) |
|
|
| double
CSemiMDPTransition::getDurationPropability
|
( |
int |
duration |
) |
|
|
| |
returns the propability of transition with the specified
duration
The propability is getPropability() *
getDurationFaktor(duration)
|
| std::map<int,
double>* CSemiMDPTransition::getDurations
|
( |
|
) |
|
|
| double
CSemiMDPTransition::getSemiMDPFaktor
|
( |
double |
gamma |
) |
|
|
| |
Returns the Faktor sum_N gamma^N
|
| virtual void
CSemiMDPTransition::loadASCII
|
( |
FILE * |
stream,
|
|
|
int |
fixedState,
|
|
|
bool |
forward |
|
) |
[virtual] |
|
| virtual void
CSemiMDPTransition::saveASCII
|
( |
FILE * |
stream,
|
|
|
bool |
forward |
|
) |
[virtual] |
|
| void
CSemiMDPTransition::setDuration
|
( |
int |
duration,
|
|
|
double |
factor |
|
) |
|
|
| |
adds the duration's factor to the given
factor
|
Member Data Documentation
| |
the list of the durations
|
The documentation for this class was generated from the following
file:
|