Class Scale
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.Scale
-
public class Scale extends Object
-
-
Constructor Summary
Constructors Constructor Description Scale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDifficulty()
Returns the difficulty of the scale.long
getId()
Returns the auto-generated id for the scale.Mode
getMode()
Returns the mode of the scale (major, natural minor, etc.): an enumerated type from theMode
enum.Note
getTonic()
Returns the tonic of the scale: an enumerated type from theNote
enum.void
setDifficulty(int difficulty)
Sets the difficulty of the scale.void
setId(long id)
Sets the auto-generated id for the scale.void
setMode(Mode mode)
Sets the mode of the scale (major, natural minor, etc.): an enumerated type from theMode
enum.void
setTonic(Note tonic)
Sets the tonic of the scale: an enumerated type from theNote
enum.
-
-
-
Method Detail
-
getId
public long getId()
Returns the auto-generated id for the scale.- Returns:
- The scale's id.
-
setId
public void setId(long id)
Sets the auto-generated id for the scale.- Parameters:
id
- The id for the scale.
-
getTonic
@NonNull public Note getTonic()
Returns the tonic of the scale: an enumerated type from theNote
enum.- Returns:
- The scale's tonic.
-
setTonic
public void setTonic(@NonNull Note tonic)
Sets the tonic of the scale: an enumerated type from theNote
enum.- Parameters:
tonic
- The tonic of the scale.
-
getMode
@NonNull public Mode getMode()
Returns the mode of the scale (major, natural minor, etc.): an enumerated type from theMode
enum.- Returns:
- The scale's mode.
-
setMode
public void setMode(@NonNull Mode mode)
Sets the mode of the scale (major, natural minor, etc.): an enumerated type from theMode
enum.- Parameters:
mode
- The mode of the scale.
-
getDifficulty
public int getDifficulty()
Returns the difficulty of the scale.- Returns:
- The scale's difficulty.
-
setDifficulty
public void setDifficulty(int difficulty)
Sets the difficulty of the scale.- Parameters:
difficulty
- The difficulty of the scale.
-
-