Class sequence


public class sequence
extends java.lang.Object

Field Summary

private String[]
code
Codings, which are supported
private int
lesson
private int[]
level
String contains Information about the Difficulty-level
private int
n
private Random
r
private Vector
row
private String[]
start
String cotains Information about the starting point
private int[]
step
starting points could be changed, please also adjust start[]
private int
x

Constructor Summary

sequence()
Constructor
sequence(String t, int lesson)
Constuctor Class creates a sequence-Object, beat and type of coding can be choosen
sequence(int n, int lesson)
Constuctor Class creates a sequence-Object, the length of the beat and type of coding can be choosen, the beat is created by random

Method Summary

int[]
getArray()
tranform the sequence in a array of integer ,
String
getAsString()
tranform the sequence in a integer ,function is limited to 10 digits
String
getCoding(int lesson)
Returns the used Coding as a String
int
getLesson()
Which Coding is used for this sequence as lessonnumber
int
getLevel()
Gives back the difficulty level of the used coding
int
getSize()
Size of the sequence-object
String
getStart()
Gives back startpoint of the sequence
String
getState(int pos)
Gives the value of a specified position of a beat
int
getStep()
How many points is a step
void
setLesson(int lesson)
The Coding of the sequence could be set
String
toString()
the toString()-method overwritten

Field Details

code

private String[] code
Codings, which are supported

lesson

private int lesson

level

private int[] level
String contains Information about the Difficulty-level

n

private int n

r

private Random r

row

private Vector row

start

private String[] start
String cotains Information about the starting point

step

private int[] step
starting points could be changed, please also adjust start[]

x

private int x

Constructor Details

sequence

public sequence()
Constructor

sequence

public sequence(String t,
                int lesson)
Constuctor Class creates a sequence-Object, beat and type of coding can be choosen
Parameters:
t - beat as a string
lesson - type of coding

sequence

public sequence(int n,
                int lesson)
Constuctor Class creates a sequence-Object, the length of the beat and type of coding can be choosen, the beat is created by random
Parameters:
n - length of beat
lesson - type of coding

Method Details

getArray

public int[] getArray()
tranform the sequence in a array of integer ,
Returns:
int[] array possible values of one fiel are 0 or 1

getAsString

public String getAsString()
tranform the sequence in a integer ,function is limited to 10 digits
Returns:
int[] array possible values of one fiel are 0 or 1

getCoding

public String getCoding(int lesson)
Returns the used Coding as a String
Parameters:
Returns:
String used Coding

getLesson

public int getLesson()
Which Coding is used for this sequence as lessonnumber
Parameters:
Returns:
int type of coding as lessonnumber

getLevel

public int getLevel()
Gives back the difficulty level of the used coding
Returns:
int the difficulty of the used coding

getSize

public int getSize()
Size of the sequence-object
Parameters:
Returns:
int size of the sequence-object in beats

getStart

public String getStart()
Gives back startpoint of the sequence
Returns:
String startpoint of the sequence

getState

public String getState(int pos)
Gives the value of a specified position of a beat
Parameters:
pos - which part of the beat
Returns:
String 1 or 0

getStep

public int getStep()
How many points is a step
Parameters:
Returns:
int the size of an allowed step in numbers of pixels

setLesson

public void setLesson(int lesson)
The Coding of the sequence could be set
Parameters:

toString

public String toString()
the toString()-method overwritten
Returns:
String the beat followed by the used Coding