|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface presents the API for a nucleic acid, either a full strand of DNA or RNA or just a segment of one.
Method Summary | |
void |
delete()
Delete this nucleic acid - redundant with EngineObject in most cases. |
void |
delete(boolean notifyChange)
Delete this nucleic acid - redundant with EngineObject in most cases. |
byte |
getBase(int index)
Returns the base value at the given index in this acid. |
INucleicAcidHolder |
getHolder()
Returns the nucleic acid's holder. |
int |
getLengthInBases()
Returns the length of the nucleic acid in bases (vs. |
int |
getLengthInCodons()
Returns the length of the nucleic acid in codons (vs. |
int |
getStartIndexInHolder()
Returns the start index of this nucleic acid in its holder. |
void |
setAutomaticLocked(boolean automaticLocked)
Set the automatic locked state of this object. |
void |
setLockedState(int lockedState)
Set the lock state of the object. |
void |
setManualLocked(boolean manualLocked)
Set the manual locked state of this object. |
void |
writeToStream(java.io.PrintWriter stream)
Writes this object to the given stream in XML format. |
Method Detail |
public void delete()
public void delete(boolean notifyChange)
public INucleicAcidHolder getHolder()
public int getLengthInBases()
public int getLengthInCodons()
public byte getBase(int index)
index
- int - index into acid, must be 0 to length of acid in bases-1java.lang.IllegalArgumentException
- - input argument(s) illegalBase.getPairBase(byte, int)
public int getStartIndexInHolder()
public void setAutomaticLocked(boolean automaticLocked)
public void setManualLocked(boolean manualLocked)
public void setLockedState(int lockedState)
When this property is changed, a property change event is fired for the property named EngineProp.LOCKED.
It's expected that most derived classes will override this method and recursively lock their children.
locked
- boolean - new locked state of this objectpublic void writeToStream(java.io.PrintWriter stream) throws java.io.IOException
We could supply a default implementation that knows how to write the id value. But that convenience is not chosen because it's never correct to use just this implementation of these methods, so I'd rather have a compilation fail if a derived class fails to implement this method.
The inverse of this method is a constructor that takes a org.xml.sax.Parser argument and other arguments.
stream
- PrintWriter - print streamjava.lang.IllegalArgumentException
- - input arguments illegaljava.io.IOException
- - an IO error occurred in java libraries
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |