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 intgetDifficulty()Returns the difficulty of the scale.longgetId()Returns the auto-generated id for the scale.ModegetMode()Returns the mode of the scale (major, natural minor, etc.): an enumerated type from theModeenum.NotegetTonic()Returns the tonic of the scale: an enumerated type from theNoteenum.voidsetDifficulty(int difficulty)Sets the difficulty of the scale.voidsetId(long id)Sets the auto-generated id for the scale.voidsetMode(Mode mode)Sets the mode of the scale (major, natural minor, etc.): an enumerated type from theModeenum.voidsetTonic(Note tonic)Sets the tonic of the scale: an enumerated type from theNoteenum.
-
-
-
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 theNoteenum.- Returns:
- The scale's tonic.
-
setTonic
public void setTonic(@NonNull Note tonic)
Sets the tonic of the scale: an enumerated type from theNoteenum.- 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 theModeenum.- 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 theModeenum.- 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.
-
-