/**
 * Copyright 2010 David L. Whitehurst
 * 
 * Licensed under the Apache License, Version 2.0 
 * (the "License"); You may not use this file except 
 * in compliance with the License. You may obtain a 
 * copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an 
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
 * either express or implied. See the License for the specific 
 * language governing permissions and limitations under the 
 * License.
 * 
 */
package org.dlw.ai.blackboard.domain;

import org.dlw.ai.blackboard.knowledge.KnowledgeSource;

/**
 * <p>
 * The {@link Assumption} class is a retractable statement made about a
 * particular domain object that may or may not be true. The mediator or
 * {@link org.dlw.ai.blackboard.Cryptographer} at the
 * {@link org.dlw.ai.blackboard.Blackboard} problem solving session may chose to
 * table or locally keep these assumptions until an {@link Assertion} or
 * non-retractable Assumption can be made or placed on the
 * {@link org.dlw.ai.blackboard.Blackboard} visual.
 * </p>
 * 
 * <blockquote><i>Assumption -"(def.) a statement that is accepted as true or as
 * certain to happen, without proof "</i></blockquote>
 * 
 * @author <a href="mailto:dlwhitehurst@gmail.com">David L. Whitehurst</a>
 * @version 1.0.0-RC
 * 
 */
public class Assumption extends BlackboardObject {

    protected KnowledgeSource creator;
    
    protected BlackboardObject target;
    
    protected String reason;
    
    protected String cipherLetter;
    
    protected String plainLetter;
    
    /**
     * Assumption is always retractable. Please note that an Assertion (extends)
     * is not retractable and therefore overrides this method and returns false
     * 
     * @return true (always)
     */
    public boolean isRetractable() {
        return true;
    }

    @Override
    public void notifyDependents() {
        // TODO Auto-generated method stub
        
    }

    /**
     * @return the reason
     */
    public String getReason() {
        return reason;
    }

    /**
     * @param reason the reason to set
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * @return the cipherLetter
     */
    public String getCipherLetter() {
        return cipherLetter;
    }

    /**
     * @param cipherLetter the cipherLetter to set
     */
    public void setCipherLetter(String cipherLetter) {
        this.cipherLetter = cipherLetter;
    }

    /**
     * @return the plainLetter
     */
    public String getPlainLetter() {
        return plainLetter;
    }

    /**
     * @param plainLetter the plainLetter to set
     */
    public void setPlainLetter(String plainLetter) {
        this.plainLetter = plainLetter;
    }

    /**
     * @return the creator
     */
    public KnowledgeSource getCreator() {
        return creator;
    }

    /**
     * @param creator the creator to set
     */
    public void setCreator(KnowledgeSource creator) {
        this.creator = creator;
    }

    /**
     * @return the target
     */
    public BlackboardObject getTarget() {
        return target;
    }

    /**
     * @param target the target to set
     */
    public void setTarget(BlackboardObject target) {
        this.target = target;
    }

}

@@ -684,16 +684,24 @@
 owledge.
+Abstract
 Knowledg
@@ -1507,16 +1507,24 @@
 otected 
+Abstract
 Knowledg
@@ -2961,16 +2961,24 @@
  public 
+Abstract
 Knowledg
@@ -3115,16 +3115,24 @@
 Creator(
+Abstract
 Knowledg

refactor knowledge source name