001 package aima.logic.fol.domain; 002 003 /** 004 * @author Ciaran O'Reilly 005 * 006 */ 007 public class FOLDomainAnswerLiteralAddedEvent extends FOLDomainEvent { 008 009 private static final long serialVersionUID = 1L; 010 011 private String answerLiteralName; 012 013 public FOLDomainAnswerLiteralAddedEvent(Object source, 014 String answerLiteralName) { 015 super(source); 016 017 this.answerLiteralName = answerLiteralName; 018 } 019 020 public String getAnswerLiteralNameName() { 021 return answerLiteralName; 022 } 023 024 public void notifyListener(FOLDomainListener listener) { 025 listener.answerLiteralNameAdded(this); 026 } 027 }