001package es.ucm.fdi.gaia.jcolibri.cbrcore;
002
003/**
004 * Interface that represents any Case structure of jCOLIBRI. It is composed by several CaseComponents:
005 * <ul>
006 * <li>A description (inherited from CBRQuery).
007 * <li>A solution.
008 * <li>A justification of a Solution.
009 * <li>A result.
010 * </ul>
011 * <p>These components of a case where decided after a revision of the following books:
012 * <ul>
013 * <li>I. Watson. Applying case-based reasoning: techniques for enterprise systems. Morgan Kaufmann Publishers Inc.,
014 * San Francisco, CA, USA, 1998.
015 * <li>K.-D. Althoff, E. Auriol, R. Barletta, and M. Manago. A Review of Industrial Case-Based Reasoning Tools.
016 * AI Intelligence, Oxford, 1995.
017 * </ul>
018 * 
019 * @see CaseComponent
020 */
021public class CBRCase extends CBRQuery  {
022
023        CaseComponent solution;
024        CaseComponent justificationOfSolution;
025        CaseComponent result;
026        
027        /**
028         * Returns the justificationOfSolution.
029         */
030        public CaseComponent getJustificationOfSolution() {
031                return justificationOfSolution;
032        }
033
034        /**
035         * Sets the Justification of Solution component.
036         * @param justificationOfSolution The justificationOfSolution to set.
037         */
038        public void setJustificationOfSolution(CaseComponent justificationOfSolution) {
039                this.justificationOfSolution = justificationOfSolution;
040        }
041
042        /**
043         * Returns the result.
044         */
045        public CaseComponent getResult() {
046                return result;
047        }
048
049        /**
050         * Sets the Result component
051         */
052        public void setResult(CaseComponent result) {
053                this.result = result;
054        }
055
056        /**
057         * Returns the solution.
058         */
059        public CaseComponent getSolution() {
060                return solution;
061        }
062
063        /**
064         * Sets the solution component
065         */
066        public void setSolution(CaseComponent solution) {
067                this.solution = solution;
068        }
069        
070        
071        public String toString() {
072                return super.toString()+"[Solution: "+solution+"][Sol.Just.: "+justificationOfSolution+"][Result: "+result+"]";
073        }
074
075}