Code Search for Developers
 
 
  

TermDeleterFacadeLocal.java from Texai at Krugle


Show TermDeleterFacadeLocal.java syntax highlighted

/*
 * TermDeleterFacadeLocal.java
 *
 * Created on October 17, 2006, 3:41 PM
 *
 * Description: Provides methods for deleting terms from the knowledge base and properly
 * cascades deletions to achieve truth maintenance.
 *
 * Copyright (C) 2006 Stephen L. Reed.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

package org.texai.kb.ejb.session.shared;

import com.sleepycat.persist.EntityStore;
import java.util.List;
import javax.ejb.Local;
import org.texai.kb.entity.AtomicTerm;
import org.texai.kb.entity.BinaryGAF;
import org.texai.kb.entity.QuaternaryGAF;
import org.texai.kb.entity.QuintaryGAF;
import org.texai.kb.entity.AbstractReifiedTerm;
import org.texai.kb.entity.AbstractTerm;
import org.texai.kb.entity.TernaryGAF;
import org.texai.kb.entity.UnaryGAF;


/**
 * This is the business interface for TermDeleterFacade enterprise bean.
 *
 * @author reed
 */
@Local
public interface TermDeleterFacadeLocal {

  /** Deletes the given AtomicTerm.
   *
   * @param atomicTerm the given atomic term
   * @return whether the atomic term was found and deleted
   */
  boolean deleteAtomicTerm(final AtomicTerm atomicTerm);
  
  /** Deletes the given unary ground atomic formula.
   *
   * @param unaryGAF the given unary ground atomic formula
   * @return whether the unary ground atomic formula was found and deleted
   */
  boolean deleteUnaryGAF(final UnaryGAF unaryGAF);
  
  /** Deletes the given binary ground atomic formula.
   *
   * @param binaryGAF the given binary ground atomic formula
   * @return whether the binary ground atomic formula was found and deleted
   */
  boolean deleteBinaryGAF(final BinaryGAF binaryGAF);
  
  /** Deletes the given ternary ground atomic formula.
   *
   * @param ternaryGAF the given ternary ground atomic formula
   * @return whether the ternary ground atomic formula was found and deleted
   */
  boolean deleteTernaryGAF(final TernaryGAF ternaryGAF);
  
  /** Deletes the given quaternary ground atomic formula.
   *
   * @param quaternaryGAF the given quaternary ground atomic formula
   * @return whether the quaternary ground atomic formula was found and deleted
   */
  boolean deleteQuaternaryGAF(final QuaternaryGAF quaternaryGAF);
  
  /** Deletes the given quintary ground atomic formula.
   *
   * @param quintaryGAF the given quintary ground atomic formula
   * @return whether the  quintary ground atomic formula was found and deleted
   */
  boolean deleteQuintaryGAF(final QuintaryGAF quintaryGAF);
  
  /** Sets the entity store. 
   *
   * @param entityStore
   */
  void setEntityStore(final EntityStore entityStore);
  
  /** Initializes the primary and secondary indicies. */
  void initializeIndices();
}




See more files for this project here

Texai

Texai is an chatbot that intelligently seeks to acquire knowledge and friendly behaviors.

Project homepage: http://sourceforge.net/projects/texai
Programming language(s): Java,Shell Script,XML
License: other

  AssociationEditorBean.java
  AssociationEditorLocal.java
  AssociationFinderBean.java
  AssociationFinderLocal.java
  KBPartitionFacadeBean.java
  KBPartitionFacadeLocal.java
  KBShardFacadeBean.java
  TermDeleterFacadeBean.java
  TermDeleterFacadeLocal.java
  TermFinderFacadeBean.java
  TermFinderFacadeLocal.java
  TermManagerBean.java
  TermManagerLocal.java