uk.ac.sanger.psu.gfmerge.datacomp
Class FeatureComponent

java.lang.Object
  extended by uk.ac.sanger.psu.gfmerge.datacomp.FeatureComponent
All Implemented Interfaces:
FeatureComponentAble, LocateAble
Direct Known Subclasses:
Exon, Intron

public abstract class FeatureComponent
extends java.lang.Object
implements FeatureComponentAble

abstract class which contains the basic implementation of gene components (Intron, Exon).

Version:
1.0
Author:
Sebastian R. Spiegler
See Also:
Exon, Intron

Field Summary
private  GFMergeFeature gfmFeature
          reference to genemodel
private  org.biojava.bio.symbol.Location location
          Location of genemodel component
 
Constructor Summary
FeatureComponent(GFMergeFeature _gfmFeature, org.biojava.bio.symbol.Location _location)
          constructor which contains the basic implementation for genemodel components
 
Method Summary
 GFMergeFeature getGfmFeature()
          accessor method which returns reference to genemodel
 long getLength()
          method which returns length of genemodel component
 org.biojava.bio.symbol.Location getLocation()
          accessor method which returns Location of genemodel component
private  void setGfmFeature(GFMergeFeature _gfmFeature)
          accessor method which sets reference to genemodel genemodel component belongs to
private  void setLocation(org.biojava.bio.symbol.Location _location)
          accessor method which sets Location of genemodel component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private org.biojava.bio.symbol.Location location
Location of genemodel component


gfmFeature

private GFMergeFeature gfmFeature
reference to genemodel

Constructor Detail

FeatureComponent

public FeatureComponent(GFMergeFeature _gfmFeature,
                        org.biojava.bio.symbol.Location _location)
constructor which contains the basic implementation for genemodel components

Parameters:
_gfmFeature - genemodel
_location - Location of genemodel component
Method Detail

getLocation

public org.biojava.bio.symbol.Location getLocation()
accessor method which returns Location of genemodel component

Specified by:
getLocation in interface LocateAble
Returns:
Location of genemodel component

getGfmFeature

public GFMergeFeature getGfmFeature()
accessor method which returns reference to genemodel

Specified by:
getGfmFeature in interface FeatureComponentAble
Returns:
reference to genemodel

getLength

public long getLength()
method which returns length of genemodel component

Specified by:
getLength in interface FeatureComponentAble
Returns:
length of genemodel component

setLocation

private void setLocation(org.biojava.bio.symbol.Location _location)
accessor method which sets Location of genemodel component

Parameters:
_location - Location of genemodel component

setGfmFeature

private void setGfmFeature(GFMergeFeature _gfmFeature)
accessor method which sets reference to genemodel genemodel component belongs to

Parameters:
_gfmFeature - reference to genemodel