|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iplan.SlipStats
public class SlipStats
Gathers or caculates various statistics for the Slip algorithm.
Field Summary | |
---|---|
(package private) boolean |
filledInValues
|
(package private) int |
longestPathLength
|
(package private) int |
numberAltsLeft
|
(package private) int |
numberAltsPicked
|
(package private) int |
numberAltsPosted
|
(package private) int |
numberNodes
|
(package private) int |
numberStepsTaken
|
(package private) java.util.Map |
otherStats
|
(package private) Slip |
slip
|
Constructor Summary | |
---|---|
SlipStats(Slip slip)
|
Method Summary | |
---|---|
void |
addStats(PlanStats planStats)
Increments, or otherwise modifies, the values in this object using values from the specified PlanStats object. |
void |
altPicked()
|
void |
altPosted()
|
int |
calcLongestPathLength()
|
int |
calcLongestPathLength(java.util.List nodeEnds)
|
(package private) void |
fillInValues()
Calculates and stores the statistics that are not accumulated during planning but instead computed after planning has finished. |
void |
incrementStat(java.lang.String key)
|
void |
recordStat(java.lang.String key,
java.lang.Object value)
Records a statistic. |
void |
report(java.io.PrintStream out)
Prints a plain text description of the statistics and their values. |
void |
stepTaken()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Slip slip
boolean filledInValues
int numberStepsTaken
int numberAltsPosted
int numberAltsPicked
int numberAltsLeft
int numberNodes
int longestPathLength
java.util.Map otherStats
Constructor Detail |
---|
public SlipStats(Slip slip)
Method Detail |
---|
public void stepTaken()
public void altPosted()
public void altPicked()
public void recordStat(java.lang.String key, java.lang.Object value)
PlanStats
recordStat
in interface PlanStats
public void incrementStat(java.lang.String key)
public void addStats(PlanStats planStats)
PlanStats
The two PlanStats objects involved when this method is called normally have to agree about value classes. Different statistics may have different value classes. Classes that implement PlanStats are free to combine the values in any way they want, and for a numeric statistic, the combined value does not have to be a straight sum.
addStats
in interface PlanStats
void fillInValues()
public void report(java.io.PrintStream out)
PlanStats
report
in interface PlanStats
public int calcLongestPathLength()
public int calcLongestPathLength(java.util.List nodeEnds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |