public class ExhaustiveFinalPaths extends Object implements FinalPaths
Modifier and Type | Field and Description |
---|---|
Map<String,Integer> |
cycle |
List<List<Double>> |
exitProbs |
Map<String,Integer> |
out |
Constructor and Description |
---|
ExhaustiveFinalPaths()
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[][] probs)
Inserts transitions from a given cycle to its exits
|
FinalPaths |
copy() |
Map<String,Double> |
getPaths(String state)
Returns the transitions to reachable exit states from a given state in the cycle
|
public FinalPaths copy()
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[][] probs)
FinalPaths
addOutputPaths
in interface FinalPaths
states
- the states within the cycleexits
- the states accessible from the states within the cycleprobs
- a matrix specifying the probabilities of the transitions from the all the states of the cycle towards all the exit statespublic 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.