Class DNA
java.lang.Object
org.episteme.natural.biology.DNA
- All Implemented Interfaces:
Serializable, Cloneable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Represents a Deoxyribonucleic acid (DNA) strand.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
DNA
-
DNA
-
DNA
Parses a DNA string (e.g. "ATCG").- Parameters:
sequence- the string representation
-
-
Method Details
-
getBases
-
getLength
public int getLength() -
getComplementary
Returns the complementary DNA strand. -
transcribe
Transcribes this DNA to mRNA. (Complementary, but T -> U). -
toString
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-