wodka.ga.geno.lang.assembler
Class AddMuscle

java.lang.Object
  extended bywodka.ga.geno.lang.assembler.AddMuscle
All Implemented Interfaces:
AssemblerCommand, Command, java.io.Serializable, StreamPersistable

public class AddMuscle
extends java.lang.Object
implements AssemblerCommand

Implementation of the AddMuscle command.

See Also:
Serialized Form

Constructor Summary
AddMuscle()
           
AddMuscle(double fromMassInd, double toMassInd, double amplitude, double phase)
           
 
Method Summary
 Command createClone()
           
 void eval(Model model)
           
 void fromStream(java.io.DataInputStream inStream, int version)
           
 double getAmplitude()
           
 double getAuxFrMassInd()
           
 double getAuxToMassInd()
           
 Language getLanguage()
           
 double getPhase()
           
 int getVersion()
           
 boolean isAddMass()
           
 Command mutateCommand(java.util.Random ran)
           
 void mutateParameter(int parIndex, java.util.Random ran)
           
 int parameterCount()
           
 void setAmplitude(double amplitude)
           
 void setAuxFrMassInd(double val)
           
 void setAuxToMassInd(double val)
           
 void setLanguage(Language language)
           
 void setPhase(double phase)
           
 java.lang.String toShortDescription()
           
 void toStream(java.io.DataOutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMuscle

public AddMuscle()

AddMuscle

public AddMuscle(double fromMassInd,
                 double toMassInd,
                 double amplitude,
                 double phase)
Method Detail

getAmplitude

public double getAmplitude()

setAmplitude

public void setAmplitude(double amplitude)

getPhase

public double getPhase()

setPhase

public void setPhase(double phase)

getLanguage

public Language getLanguage()
Specified by:
getLanguage in interface Command

setLanguage

public void setLanguage(Language language)
Specified by:
setLanguage in interface Command

getAuxFrMassInd

public double getAuxFrMassInd()

setAuxFrMassInd

public void setAuxFrMassInd(double val)

getAuxToMassInd

public double getAuxToMassInd()

setAuxToMassInd

public void setAuxToMassInd(double val)

eval

public void eval(Model model)
Specified by:
eval in interface AssemblerCommand

toShortDescription

public java.lang.String toShortDescription()
Specified by:
toShortDescription in interface Command

mutateCommand

public Command mutateCommand(java.util.Random ran)
Specified by:
mutateCommand in interface Command

parameterCount

public int parameterCount()
Specified by:
parameterCount in interface Command

mutateParameter

public void mutateParameter(int parIndex,
                            java.util.Random ran)
Specified by:
mutateParameter in interface Command

createClone

public Command createClone()
Specified by:
createClone in interface Command

toStream

public void toStream(java.io.DataOutputStream outStream)
              throws java.io.IOException
Specified by:
toStream in interface StreamPersistable
Throws:
java.io.IOException

fromStream

public void fromStream(java.io.DataInputStream inStream,
                       int version)
                throws java.io.IOException
Specified by:
fromStream in interface StreamPersistable
Throws:
java.io.IOException

getVersion

public int getVersion()
Specified by:
getVersion in interface StreamPersistable

isAddMass

public boolean isAddMass()
Specified by:
isAddMass in interface AssemblerCommand