|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.core.AIRelation
public class AIRelation
This object models a relation between an artist and an instrument (This is a "plays" relation). This object contains the id's of the instrument and the artist.
Constructor Summary | |
---|---|
AIRelation()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Two AIRelations are the same if both the instrument id and the artist id are equal. |
long |
getArtist_id()
Getter for the artist id. |
long |
getInstrument_id()
Getter for the instrument id. |
int |
hashCode()
|
void |
setArtist_id(long artist_id)
Setter for the artist id. |
void |
setInstrument_id(long instrument_id)
Setter for the instrument id. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AIRelation()
Method Detail |
---|
public long getArtist_id()
public void setArtist_id(long artist_id)
artist_id
- The artist id.public long getInstrument_id()
public void setInstrument_id(long instrument_id)
instrument_id
- The instrument id.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The AIRelation to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |