|
|
@ -50,8 +50,6 @@ public class PathToText extends PathDisplayer |
|
|
private String colSep = " "; |
|
|
private String colSep = " "; |
|
|
|
|
|
|
|
|
// Displayer state |
|
|
// Displayer state |
|
|
/** Step counter */ |
|
|
|
|
|
private int step; |
|
|
|
|
|
/** Is the next column the first? */ |
|
|
/** Is the next column the first? */ |
|
|
private boolean firstCol; |
|
|
private boolean firstCol; |
|
|
/** Last state */ |
|
|
/** Last state */ |
|
|
@ -147,7 +145,6 @@ public class PathToText extends PathDisplayer |
|
|
|
|
|
|
|
|
// Display initial step |
|
|
// Display initial step |
|
|
changed = true; |
|
|
changed = true; |
|
|
step = 0; |
|
|
|
|
|
firstCol = true; |
|
|
firstCol = true; |
|
|
if (!getShowSnapshots()) { |
|
|
if (!getShowSnapshots()) { |
|
|
log.print(getColSep() + "-"); |
|
|
log.print(getColSep() + "-"); |
|
|
@ -168,7 +165,7 @@ public class PathToText extends PathDisplayer |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void displayStep(double timeSpent, double timeCumul, Object action, double probability, double[] transitionRewards, State newState, double[] newStateRewards) |
|
|
|
|
|
|
|
|
public void displayStep(double timeSpent, double timeCumul, Object action, double probability, double[] transitionRewards, int newStateIndex, State newState, double[] newStateRewards) |
|
|
{ |
|
|
{ |
|
|
if (!showChangesOnly || changed) { |
|
|
if (!showChangesOnly || changed) { |
|
|
// display rewards for last state |
|
|
// display rewards for last state |
|
|
@ -191,7 +188,6 @@ public class PathToText extends PathDisplayer |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
step++; |
|
|
|
|
|
firstCol = true; |
|
|
firstCol = true; |
|
|
|
|
|
|
|
|
// display action |
|
|
// display action |
|
|
@ -200,7 +196,7 @@ public class PathToText extends PathDisplayer |
|
|
if (showProbs) |
|
|
if (showProbs) |
|
|
log.print(getColSep() + probability); |
|
|
log.print(getColSep() + probability); |
|
|
// display state index |
|
|
// display state index |
|
|
log.print(getColSep() + step); |
|
|
|
|
|
|
|
|
log.print(getColSep() + newStateIndex); |
|
|
// display cumulative time |
|
|
// display cumulative time |
|
|
if (contTime && showTimeCumul) |
|
|
if (contTime && showTimeCumul) |
|
|
log.print(getColSep() + timeCumul); |
|
|
log.print(getColSep() + timeCumul); |
|
|
@ -213,9 +209,8 @@ public class PathToText extends PathDisplayer |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void displaySnapshot(double timeCumul, State newState, double[] newStateRewards) |
|
|
|
|
|
|
|
|
public void displaySnapshot(double timeCumul, int newStateIndex, State newState, double[] newStateRewards) |
|
|
{ |
|
|
{ |
|
|
step++; |
|
|
|
|
|
firstCol = true; |
|
|
firstCol = true; |
|
|
|
|
|
|
|
|
// display cumulative time |
|
|
// display cumulative time |
|
|
|