|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ereinion.search.SearchStats
Classe che compie operazioni statistiche su di un problema di Search.
Field Summary | |
static long |
INFINITE_TIME
Il valore associato con un tempo di ricerca infinito. |
Constructor Summary | |
SearchStats()
Setta i valori iniziali delle statistiche (0 per exapndedNode, maximumDepth e timeOut, -1 per le altre). |
|
SearchStats(long time)
Setta i valori iniziali delle statistiche (0 per exapndedNode e maximumDepth, -1 per le altre). |
Method Summary | |
int |
getExpandedCount()
Restituisce il numero di nodi espansi nella ricerca. |
int |
getMaximumDepth()
Restituisce la massima profondit� ragggiunta nella ricerca. |
int |
getMaximumSpace()
Restituisce il numero massimo di nodi che sono stati presenti in memoria. |
long |
getTimeOut()
Restituisce il valore di time out per questo SearchStats |
long |
getUsedTime()
Restituisce il tempo contabilizzato da questo SearchStats. |
void |
makeStats(SearchNode node,
int queueSize)
Fa valutazione statistiche sulla ricerca in corso. |
void |
reset()
Resetta i valori iniziali delle statistiche (0 per exapndedNode, maximumDepth e timeOut, -1 per le altre). |
void |
reset(long time)
Resetta i valori iniziali delle statistiche (0 per exapndedNode e maximumDepth, -1 per le altre). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long INFINITE_TIME
Constructor Detail |
public SearchStats()
public SearchStats(long time)
time
- il tempo massimo concesso alla ricerca in millisecondi.Method Detail |
public void reset()
public void reset(long time)
time
- il tempo massimo concesso alla ricerca in millisecondi.public void makeStats(SearchNode node, int queueSize) throws SearchExceptionFail
node
- il nodo corrente che sta per essere espanso.queueSize
- le dimensioni correnti della coda dei nodi da espandere mantenuta in memoria.
getHead()
SearchExceptionFail
- se viene raggiunto il timeOut per la ricerca. il tipo dell' eccezione � SearchExceptionFail.FAIL_TIMEOUT.public int getMaximumDepth()
public int getExpandedCount()
public int getMaximumSpace()
public long getUsedTime()
public long getTimeOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |