wodka.ga.geno.lang.assembler
Class AddMass

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

public class AddMass
extends java.lang.Object
implements AssemblerCommand

Implementation of the AddMass(x, y) command.

See Also:
Serialized Form

Constructor Summary
AddMass()
           
AddMass(int posX, int posY)
           
 
Method Summary
 Command createClone()
           
 void eval(Model model)
           
 void fromStream(java.io.DataInputStream inStream, int version)
           
 Language getLanguage()
           
 int getPosX()
           
 int getPosY()
           
 int getVersion()
           
 boolean isAddMass()
           
 Command mutateCommand(java.util.Random ran)
           
 void mutateParameter(int index, java.util.Random ran)
           
 int parameterCount()
           
 void setLanguage(Language language)
           
 void setPosX(int posX)
           
 void setPosY(int posY)
           
 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

AddMass

public AddMass()

AddMass

public AddMass(int posX,
               int posY)
Method Detail

setPosX

public void setPosX(int posX)

setPosY

public void setPosY(int posY)

getLanguage

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

setLanguage

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

getPosX

public int getPosX()

getPosY

public int getPosY()

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 index,
                            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