Skip to content
Snippets Groups Projects
Select Git revision
  • ff75a69db28cf85455c71080bb7eaf8040de26fa
  • master default protected
  • gh-pages
  • build-process-upgrade-merge
  • eb-apollo-generate_names
  • BT5_travis
  • hello_github
  • v18.1.0
  • v18.0.3
  • v18.0.2
  • v18.0.1
  • v18.0.0
  • v18.0.0-RC1
  • v17.0.1
  • v17.0.0
  • v16.0.17
  • v16.0.0
  • v15.0.0
  • v14.0.0
  • v13.2.0
20 results

SequenceChangeEvent.java

Blame
  • SequenceChangeEvent.java 4.36 KiB
    /* SequenceChangeEvent.java
     *
     * created: Wed Oct 28 1998
     *
     * This file is part of Artemis
     * 
     * Copyright (C) 1998,1999,2000  Genome Research Limited
     * 
     * 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     *
     * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/sequence/SequenceChangeEvent.java,v 1.3 2005-11-28 16:46:38 tjc Exp $
     */
    
    package uk.ac.sanger.artemis.sequence;
    
    import uk.ac.sanger.artemis.io.Range;
    
    /**
     *  This event is sent when the sequence of bases in a strand changes.
     *
     *  @author Kim Rutherford
     *  @version $Id: SequenceChangeEvent.java,v 1.3 2005-11-28 16:46:38 tjc Exp $
     *
     **/
    
    public class SequenceChangeEvent extends uk.ac.sanger.artemis.ChangeEvent 
    {
      /**
       *  The type that was passed to the constructor.
       **/
      /* final */ private int type;
    
      /**
       *  The position that was passed to the constructor.
       **/
      /* final */ private int position;
    
      /**
       *  The sub sequence of bases that was passed to the constructor.
       **/
      /* final */ private String sub_sequence;
    
      private int length;
    
      private Range range;
    
      final public static int DELETION = 1;
    
      final public static int INSERTION = 2;
    
      final public static int REVERSE_COMPLEMENT = 3;
    
      final public static int CONTIG_REVERSE_COMPLEMENT = 4;
    
      final public static int CONTIG_REORDER = 5;
    
      /**
       *  Create a new SequenceChangeEvent object.