Package b2p.search.aima
Class Metrics
- java.lang.Object
-
- b2p.search.aima.Metrics
-
public class Metrics extends java.lang.ObjectThis 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 bothnodeExpandedandcurrDepthLimit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrDepthLimit()Returns the variablecurrDepthLimitintgetNodesExpanded()Returns the variablenodesExpandedvoidsetCurrDepthLimit(int currDepthLimit)Sets the variablecurrDepthLimitto the value passed as inputvoidsetNodesExpanded(int nodesExpanded)Sets the variablenodesExpandedto the value passed as inputvoidupdateMetrics(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 variablenodesExpandedto 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 variablecurrDepthLimitto 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
-
-