|
|
@ -104,14 +104,15 @@ public class PathFull extends Path implements PathFullInfo |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void addStep(int choice, int moduleOrActionIndex, double probability, double[] transitionRewards, State newState, double[] newStateRewards, TransitionList transitionList) |
|
|
|
|
|
|
|
|
public void addStep(int choice, int moduleOrActionIndex, double probability, double[] transitionRewards, State newState, double[] newStateRewards, |
|
|
|
|
|
TransitionList transitionList) |
|
|
{ |
|
|
{ |
|
|
addStep(1.0, choice, moduleOrActionIndex, probability, transitionRewards, newState, newStateRewards, transitionList); |
|
|
addStep(1.0, choice, moduleOrActionIndex, probability, transitionRewards, newState, newStateRewards, transitionList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void addStep(double time, int choice, int moduleOrActionIndex, double probability, double[] transitionRewards, State newState, double[] newStateRewards, |
|
|
|
|
|
TransitionList transitionList) |
|
|
|
|
|
|
|
|
public void addStep(double time, int choice, int moduleOrActionIndex, double probability, double[] transitionRewards, State newState, |
|
|
|
|
|
double[] newStateRewards, TransitionList transitionList) |
|
|
{ |
|
|
{ |
|
|
Step stepOld, stepNew; |
|
|
Step stepOld, stepNew; |
|
|
// Add info to last existing step |
|
|
// Add info to last existing step |
|
|
@ -497,7 +498,8 @@ public class PathFull extends Path implements PathFullInfo |
|
|
displayer.start(getState(0), getStateRewards(0)); |
|
|
displayer.start(getState(0), getStateRewards(0)); |
|
|
int n = size(); |
|
|
int n = size(); |
|
|
for (int i = 1; i <= n; i++) { |
|
|
for (int i = 1; i <= n; i++) { |
|
|
displayer.step(getTime(i - 1), getCumulativeTime(i), getModuleOrAction(i - 1), getProbability(i - 1), getTransitionRewards(i), i, getState(i), getStateRewards(i)); |
|
|
|
|
|
|
|
|
displayer.step(getTime(i - 1), getCumulativeTime(i), getModuleOrAction(i - 1), getProbability(i - 1), getTransitionRewards(i), i, getState(i), |
|
|
|
|
|
getStateRewards(i)); |
|
|
} |
|
|
} |
|
|
displayer.end(); |
|
|
displayer.end(); |
|
|
} |
|
|
} |
|
|
|