|
|
@ -1,16 +1,18 @@ |
|
|
|
package device; |
|
|
|
|
|
|
|
public class UsbPlayer implements Device{ |
|
|
|
public class UsbPlayer implements Device { |
|
|
|
|
|
|
|
private int Lautstaerke=0; |
|
|
|
private int Lautstaerke = 0; |
|
|
|
|
|
|
|
public void setLautstaerke(int ls){ |
|
|
|
if(Lautstaerke < 100) { |
|
|
|
Lautstaerke += 1; |
|
|
|
} else { |
|
|
|
Lautstaerke = 100; |
|
|
|
} } |
|
|
|
public int getLautstaerke(){return Lautstaerke;} |
|
|
|
public void setLautstaerke(int ls) { |
|
|
|
if (ls <= 100) { |
|
|
|
Lautstaerke = ls; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public int getLautstaerke() { |
|
|
|
return Lautstaerke; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void louder() { |
|
|
|