001 
002/**
003 *                    BioJava development code
004 *
005 * This code may be freely distributed and modified under the
006 * terms of the GNU Lesser General Public Licence.  This should
007 * be distributed with the code.  If you do not have a copy,
008 * see:
009 *
010 *      http://www.gnu.org/copyleft/lesser.html
011 *
012 * Copyright for this code is held jointly by the individual
013 * authors.  These should be listed in @author doc comments.
014 *
015 * For more information on the BioJava project and its aims,
016 * or to join the biojava-l mailing list, visit the home page
017 * at:
018 *
019 *      http://www.biojava.org/
020 *
021 */
022
023package org.biojava.bio.seq.io.game;
024
025import org.biojava.bio.seq.StrandedFeature;
026import org.biojava.bio.symbol.Location;
027/**
028 * An interface that can be tested for by nested handlers
029 * when trying to do a callback.
030 * This one handles callbacks from nested elements that
031 * determine strandedness of a nesting element.
032 *
033 * @author David Huen
034 * @since 1.8
035 */
036public interface GAMEFeatureCallbackItf {
037
038/**
039 * Allows nesting class that manages a gene template
040 * to gain information about its extent from nested
041 * elements.  Strand is reported separately as
042 * some gene features may not have strand.
043 */
044  public void reportFeature(Location loc);
045  public void reportStrand(StrandedFeature.Strand strand);
046}
047