public class ApproximateFinalPaths extends Object implements FinalPaths
Constructor and Description |
---|
ApproximateFinalPaths()
Creates an empty cycle
|
Modifier and Type | Method and Description |
---|---|
void |
addOutputPaths(Collection<String> states,
Collection<String> exits,
double prob)
Creates transitions with uniform probability from a given cycle to its exits
|
void |
addOutputPaths(Collection<String> states,
Collection<String> exits,
double[][] prob)
Inserts transitions from a given cycle to its exits
|
Map<String,Double> |
getPaths(String state)
Returns the transitions to reachable exit states from a given state in the cycle
|
public void addOutputPaths(Collection<String> states, Collection<String> exits, double prob)
FinalPaths
addOutputPaths
in interface FinalPaths
states
- the states within the cycleexits
- the states accessible from the states within the cycleprob
- the uniform probability of the transitions between the all the cycle states and exit statespublic void addOutputPaths(Collection<String> states, Collection<String> exits, double[][] prob) throws AvatarLogicalModelException
FinalPaths
addOutputPaths
in interface FinalPaths
states
- the states within the cycleexits
- the states accessible from the states within the cycleprob
- a matrix specifying the probabilities of the transitions from the all the states of the cycle towards all the exit statesAvatarLogicalModelException
public Map<String,Double> getPaths(String state)
FinalPaths
getPaths
in interface FinalPaths
state
- the state in the cycle whose exits are to be computedCopyright © 2005–2020. All rights reserved.