infinitewisdom.model.dna
Class DNASequenceA

java.lang.Object
  extended by 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();
    }
}


Field Summary
protected static java.util.List<DNAFloatMeta> prototype
           
 java.util.List<DNAFloatData> row
           
 
Constructor Summary
DNASequenceA()
          Creates an instance based on the "prototype" field.
 
Method Summary
 DNASequenceA add(DNASequenceA dsa)
           
 DNASequenceA muls(double s)
           
 DNASequenceA sub(DNASequenceA dsa)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public java.util.List<DNAFloatData> row

prototype

protected static java.util.List<DNAFloatMeta> prototype
Constructor Detail

DNASequenceA

public DNASequenceA()
Creates an instance based on the "prototype" field. In descendants use a static initializer block to set up the prototype.

Method Detail

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)