|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSample
public class Sample
Class that represents a sample
Copyright Georgia Institute of Technology 2006
| Constructor Summary | |
|---|---|
Sample(Sound aSound,
int index)
Constructor that takes a sound and an index |
|
| Method Summary | |
|---|---|
Sound |
getSound()
Method to get this sample's sound object |
int |
getValue()
Method to get the sample value |
void |
setValue(double newValue)
Method to set the sample value |
void |
setValue(int newValue)
Method to set the sample value |
java.lang.String |
toString()
Obtains a string representation of this Sample |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sample(Sound aSound,
int index)
aSound - the soundindex - the index| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic Sound getSound()
public int getValue()
throws SoundException
SoundException
public void setValue(int newValue)
throws SoundException
newValue - the new value to store
SoundException
public void setValue(double newValue)
throws SoundException
newValue - the new value to store
SoundException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||