|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.jpredictor.sequences.MappedCharSequence
de.unibi.techfak.jpredictor.sequences.Sequence
public class Sequence
This class represents a sequence of DNA or RNA. For this purpose,
MappedCharSequence is extended with name and description.
A sequence can be obtained by calling nextSequence() from
classes that implement the interface SequenceEnumeration.
SequenceEnumeration| Field Summary | |
|---|---|
private java.lang.String |
description
The description of this sequence. |
private java.lang.String |
name
The name of the sequence. |
| Fields inherited from class de.unibi.techfak.jpredictor.sequences.MappedCharSequence |
|---|
length |
| Constructor Summary | |
|---|---|
protected |
Sequence(java.io.Reader reader,
SequenceInformationBlock ssb)
Sets the underlying reader, which must not be null
and a SequenceInformationBlock. |
|
Sequence(java.lang.String name,
java.lang.String description,
java.io.Reader reader)
Sets the underlying Reader, which must not be
null and the name and description of that sequence. |
|
Sequence(java.lang.String name,
java.lang.String description,
java.lang.String filename)
The filename is taken to open the file. |
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Gets the description of this sequence. |
java.lang.String |
getName()
Gets the name of this sequence. |
void |
setDescription(java.lang.String description)
Sets the description of the current sequence. |
void |
setName(java.lang.String name)
Sets a new name for the sequence. |
| Methods inherited from class de.unibi.techfak.jpredictor.sequences.MappedCharSequence |
|---|
charAt, getBufferSize, getReader, length, subSequence, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String name
private java.lang.String description
| Constructor Detail |
|---|
public Sequence(java.lang.String name,
java.lang.String description,
java.io.Reader reader)
throws java.lang.NullPointerException
Reader, which must not be
null and the name and description of that sequence.
name - The name of the sequence to be generated.description - A short description what the sequence contains.reader - The Reader all data comes from.
java.lang.NullPointerException - If reader is
null.
public Sequence(java.lang.String name,
java.lang.String description,
java.lang.String filename)
throws java.io.FileNotFoundException,
java.lang.NullPointerException
name - The name of the sequence.description - A short description of the sequence.filename - The name of the file to be opened.
java.io.FileNotFoundException - If the file could not be found.
java.lang.NullPointerException - If filename is
null.
protected Sequence(java.io.Reader reader,
SequenceInformationBlock ssb)
throws java.lang.NullPointerException
null
and a SequenceInformationBlock. This method is
normally called by the SequenceEnumarator-class.
reader - The Reader all data comes from.ssb - Gives informations about the reader's dimensions.
java.lang.NullPointerException - If reader is
null.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The new name.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The new description.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||