ca.cas.patterns
Class Fragment

java.lang.Object
  extended by ca.cas.patterns.Fragment

public class Fragment
extends java.lang.Object

Class stores a String label, a boolean value for a centromere, and a long value for length.


Constructor Summary
Fragment(java.lang.String label, boolean centromere)
          Constructs a fragment to store label and centromere flag.
Fragment(java.lang.String label, boolean centromere, long length)
          Constructs a fragment to store label, centromere flag, and length.
 
Method Summary
 java.lang.String getLabel()
           
 boolean hasCentromere()
           
 long length()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fragment

public Fragment(java.lang.String label,
                boolean centromere,
                long length)
Constructs a fragment to store label, centromere flag, and length.

Parameters:
label -
centromere -
length -

Fragment

public Fragment(java.lang.String label,
                boolean centromere)
Constructs a fragment to store label and centromere flag. Length set to zero.

Parameters:
label -
centromere -
Method Detail

getLabel

public java.lang.String getLabel()

hasCentromere

public boolean hasCentromere()

length

public long length()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object