infinitewisdom.model.dna
Class DNASequenceA
java.lang.Object
infinitewisdom.model.dna.DNASequenceA
public abstract class DNASequenceA
- extends java.lang.Object
Base class for domain specific DNA sequences. It has a prototype field that
describes what information we want to store in DNA.
In descendants use a static initializer block to set up the prototype. E.g.:
public class MyDna extends DNASequenceA {
static {
prototype.add(new DNAFloatMeta("retreat threshold", 0.1, 0.6));
prototype.add(new DNAFloatMeta("time factor",0.1,1.0));
}
public MyDna() {
super();
}
}
Constructor Summary |
DNASequenceA()
Creates an instance based on the "prototype" field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
row
public java.util.List<DNAFloatData> row
prototype
protected static java.util.List<DNAFloatMeta> prototype
DNASequenceA
public DNASequenceA()
- Creates an instance based on the "prototype" field.
In descendants use a static initializer block to set up the prototype.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
add
public DNASequenceA add(DNASequenceA dsa)
sub
public DNASequenceA sub(DNASequenceA dsa)
muls
public DNASequenceA muls(double s)