Package b2p.search.aima
Class Metrics
- java.lang.Object
-
- b2p.search.aima.Metrics
-
public class Metrics extends java.lang.Object
This class defines all the parameters needed to understand how well the tree search exploration is doing- Author:
- Alessandro Buldini, Alessandro Pomponio, Federico Zanini
- See Also:
- Aima Java
-
-
Constructor Summary
Constructors Constructor Description Metrics()
Basic constructor that sets bothnodeExpanded
andcurrDepthLimit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrDepthLimit()
Returns the variablecurrDepthLimit
int
getNodesExpanded()
Returns the variablenodesExpanded
void
setCurrDepthLimit(int currDepthLimit)
Sets the variablecurrDepthLimit
to the value passed as inputvoid
setNodesExpanded(int nodesExpanded)
Sets the variablenodesExpanded
to the value passed as inputvoid
updateMetrics(int depth)
Function that needs to be invoked every time a new node is explored
-
-
-
Method Detail
-
getNodesExpanded
public int getNodesExpanded()
Returns the variablenodesExpanded
- Returns:
- the variable
nodesExpanded
-
setNodesExpanded
public void setNodesExpanded(int nodesExpanded)
Sets the variablenodesExpanded
to the value passed as input- Parameters:
nodesExpanded
- value to be set within the class
-
getCurrDepthLimit
public int getCurrDepthLimit()
Returns the variablecurrDepthLimit
- Returns:
- the variable
currDepthLimit
-
setCurrDepthLimit
public void setCurrDepthLimit(int currDepthLimit)
Sets the variablecurrDepthLimit
to the value passed as input- Parameters:
currDepthLimit
- value to be set within the class
-
updateMetrics
public void updateMetrics(int depth)
Function that needs to be invoked every time a new node is explored- Parameters:
depth
- current depth within the search algorithm
-
-