Gglazba
Class Ritam

java.lang.Object
  extended by Gglazba.Ritam

public class Ritam
extends java.lang.Object

Represents the rhythm individual


Field Summary
Modifier and Type Field and Description
 int broj_nota
          The number of notes in this individual
 int dobrota
          Represents the fitness of this particular individual
 java.util.LinkedList<java.lang.String> ritam
          List of tone lengths
 
Constructor Summary
Constructor and Description
Ritam()
           
 
Method Summary
Modifier and Type Method and Description
 void init()
          Method that initializes the melody
 void izracunajDobrotu()
          Calculates the fitness of the melody
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ritam

public java.util.LinkedList<java.lang.String> ritam
List of tone lengths


dobrota

public int dobrota
Represents the fitness of this particular individual


broj_nota

public int broj_nota
The number of notes in this individual

Constructor Detail

Ritam

public Ritam()
Method Detail

init

public void init()
Method that initializes the melody


izracunajDobrotu

public void izracunajDobrotu()
Calculates the fitness of the melody