public class SongContext extends Object
Constructor and Description |
---|
SongContext() |
Modifier and Type | Method and Description |
---|---|
ActivityMatrix |
getActivityMatrix() |
Arrangement |
getArrangement() |
Object |
getAttribute(String name)
Returns the attribute with the given name.
|
Harmony |
getHarmony() |
Player |
getPlayer() |
Long |
getRandomSeed() |
String |
getSongName() |
Structure |
getStructure() |
boolean |
hasAttribute(String name)
Checks if the given attribute has been set.
|
void |
removeAttribute(String name)
Removes the given attribute.
|
void |
setActivityMatrix(ActivityMatrix activityMatrix) |
void |
setArrangement(Arrangement arrangement) |
void |
setAttribute(String name,
Object value)
Sets the attribute to the given value.
|
void |
setHarmony(Harmony harmony) |
void |
setPlayer(Player player) |
void |
setRandomSeed(Long randomSeed) |
void |
setSongName(String songName) |
void |
setStructure(Structure structure) |
public Long getRandomSeed()
public void setRandomSeed(Long randomSeed)
public String getSongName()
public void setSongName(String songName)
public Structure getStructure()
public void setStructure(Structure structure)
public Harmony getHarmony()
public void setHarmony(Harmony harmony)
public ActivityMatrix getActivityMatrix()
public void setActivityMatrix(ActivityMatrix activityMatrix)
public Arrangement getArrangement()
public void setArrangement(Arrangement arrangement)
public Player getPlayer()
public void setPlayer(Player player)
public Object getAttribute(String name)
name
- the attribute namepublic void setAttribute(String name, Object value)
name
- the attribute namevalue
- the attribute valuepublic boolean hasAttribute(String name)
name
- the attribute namepublic void removeAttribute(String name)
name
- the attribute name