public class AssocModelImpl extends DMXObjectModelImpl implements AssocModel
Assoc
.Modifier and Type | Method and Description |
---|---|
AssocModel |
clone() |
PlayerModel |
createPlayerModel(String roleTypeUri) |
long |
getOtherPlayerId(long id) |
systems.dmx.core.impl.PlayerModelImpl |
getPlayer1() |
systems.dmx.core.impl.PlayerModelImpl |
getPlayer2() |
systems.dmx.core.impl.PlayerModelImpl |
getPlayerByRole(String roleTypeUri) |
boolean |
hasSameRoleTypeUris() |
boolean |
matches(String roleTypeUri1,
long playerId1,
String roleTypeUri2,
long playerId2)
Checks if the given players match this association.
|
int |
playerCount(String roleTypeUri) |
void |
setPlayer1(PlayerModel player1) |
void |
setPlayer2(PlayerModel player2) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
equals, getChildTopics, getId, getSimpleValue, getTypeUri, getUri, hashCode, set, setChildTopics, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getChildTopics, getId, getSimpleValue, getTypeUri, getUri, set, setChildTopics, setId, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setSimpleValue, setTypeUri, setUri
dump
public systems.dmx.core.impl.PlayerModelImpl getPlayer1()
getPlayer1
in interface AssocModel
public systems.dmx.core.impl.PlayerModelImpl getPlayer2()
getPlayer2
in interface AssocModel
public void setPlayer1(PlayerModel player1)
setPlayer1
in interface AssocModel
public void setPlayer2(PlayerModel player2)
setPlayer2
in interface AssocModel
public systems.dmx.core.impl.PlayerModelImpl getPlayerByRole(String roleTypeUri)
getPlayerByRole
in interface AssocModel
public int playerCount(String roleTypeUri)
playerCount
in interface AssocModel
public boolean hasSameRoleTypeUris()
hasSameRoleTypeUris
in interface AssocModel
public boolean matches(String roleTypeUri1, long playerId1, String roleTypeUri2, long playerId2)
AssocModel
matches
in interface AssocModel
public long getOtherPlayerId(long id)
getOtherPlayerId
in interface AssocModel
public PlayerModel createPlayerModel(String roleTypeUri)
createPlayerModel
in interface DMXObjectModel
createPlayerModel
in class DMXObjectModelImpl
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
toJSON
in class DMXObjectModelImpl
public AssocModel clone()
clone
in interface AssocModel
clone
in interface DMXObjectModel
clone
in class DMXObjectModelImpl
Copyright © 2023. All Rights Reserved.