Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
sequence
public class sequence
extends java.lang.Object
Field Summary | |
private String[] |
|
private int | |
private int[] |
|
private int | |
private Random | |
private Vector | |
private String[] |
|
private int[] |
|
private int |
Constructor Summary | |
| |
| |
|
Method Summary | |
int[] |
|
String |
|
String |
|
int |
|
int |
|
int |
|
String |
|
String |
|
int |
|
void |
|
String |
|
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
public sequence()
Constructor
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 stringlesson
- type of coding
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 beatlesson
- type of coding
public int[] getArray()
tranform the sequence in a array of integer ,
- Returns:
- int[] array possible values of one fiel are 0 or 1
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
public String getCoding(int lesson)
Returns the used Coding as a String
- Parameters:
- Returns:
- String used Coding
public int getLesson()
Which Coding is used for this sequence as lessonnumber
- Parameters:
- Returns:
- int type of coding as lessonnumber
public int getLevel()
Gives back the difficulty level of the used coding
- Returns:
- int the difficulty of the used coding
public int getSize()
Size of the sequence-object
- Parameters:
- Returns:
- int size of the sequence-object in beats
public String getStart()
Gives back startpoint of the sequence
- Returns:
- String startpoint of the sequence
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
public int getStep()
How many points is a step
- Parameters:
- Returns:
- int the size of an allowed step in numbers of pixels
public void setLesson(int lesson)
The Coding of the sequence could be set
- Parameters:
public String toString()
the toString()-method overwritten
- Returns:
- String the beat followed by the used Coding