|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.cas.patterns.FPChrom
public class FPChrom
This class stores a final pattern chromosome. This is little more than a vector of Fragment objects and a boolean flag to indicate if the chromosome is a ring.
| Constructor Summary | |
|---|---|
FPChrom()
|
|
FPChrom(boolean ring)
|
|
| Method Summary | |
|---|---|
boolean |
add(Fragment frag)
adds the fragment to the end of the chromosome |
void |
add(int index,
Fragment frag)
adds the fragment at the specified index. |
java.util.Enumeration<Fragment> |
fragments()
returns an enumeration of the fragments in the chromosome. |
Fragment |
getFragment(int index)
returns the fragment at the specified index. |
boolean |
isRing()
returns true if the chromosome is a ring. |
Fragment |
removeFragment(int index)
remove the fragment at the specified index. |
int |
size()
returns the number of fragments in this chromosome |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FPChrom()
public FPChrom(boolean ring)
| Method Detail |
|---|
public boolean add(Fragment frag)
frag - fragment to add
public void add(int index,
Fragment frag)
index - location to add fragmentfrag - fragment to addpublic boolean isRing()
public int size()
public Fragment getFragment(int index)
index -
public Fragment removeFragment(int index)
index - returns - the fragment at the index.public java.util.Enumeration<Fragment> fragments()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||