|
|
@ -226,6 +226,14 @@ public class DTMCSparse extends DTMCExplicit |
|
|
|
|
|
|
|
|
//--- DTMC --- |
|
|
//--- DTMC --- |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void forEachTransition(int state, TransitionConsumer consumer) |
|
|
|
|
|
{ |
|
|
|
|
|
for (int col = rows[state], stop = rows[state+1]; col < stop; col++) { |
|
|
|
|
|
consumer.accept(state, columns[col], probabilities[col]); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public int getNumTransitions(int state) |
|
|
public int getNumTransitions(int state) |
|
|
{ |
|
|
{ |
|
|
|