public class Cbr
extends java.lang.Object
Constructor and Description |
---|
Cbr() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
findBestTrafficSituationCase(java.util.ArrayList<TrafficSituationCase> trafficSituationCases)
Finds the best case out of a list of cases by looking at their similarity to the query case
|
java.util.ArrayList<TrafficSituationCase> |
getMatchingCases(TrafficSituationCase queryCase)
Initializes the retrieval of cases that matches the query
|
java.lang.String |
getSolutionCase(TrafficSituationCase queryCase)
Runs the method for retrieving the cases that matches the query, and runs the method for finding the best one in the set of retrieved cases.
|
void |
retain(TrafficSituationCase newTrafficSituationCase)
Is activated if an expert decides to save a query case as a new case in the case base.
|
public java.util.ArrayList<TrafficSituationCase> getMatchingCases(TrafficSituationCase queryCase)
queryCase
- The query case built by the systempublic java.lang.String getSolutionCase(TrafficSituationCase queryCase)
queryCase
- The query case that built by the systempublic java.lang.String findBestTrafficSituationCase(java.util.ArrayList<TrafficSituationCase> trafficSituationCases)
trafficSituationCases
- An ArrayList containing retrieved casespublic void retain(TrafficSituationCase newTrafficSituationCase)
newTrafficSituationCase
- The query case