|
YAACC - UPNP Client and Server
|
Which players are linked into whose group (the owner's decision G1 to G7 in groups.md).
More...

Classes | |
| enum | Result |
Public Member Functions | |
| synchronized Result | link (String leader, String member) |
| synchronized void | unlink (String member) |
| Takes a member out of its group; a group that has no member left is gone. | |
| synchronized void | dissolve (String leader) |
| Ends the group of a leader; the members are separate players again. | |
| synchronized String | leave (String id) |
A player stops taking part in its group (the protocol's client/leave, or a client that becomes unavailable): it is alone again and the group goes on without it. | |
| synchronized void | remove (String id) |
| A player that is removed from the app leaves its group, or ends it if it leads one. | |
| synchronized String | leaderOf (String member) |
| synchronized List< String > | membersOf (String leader) |
| synchronized boolean | isLeader (String id) |
| synchronized boolean | isInGroup (String id) |
Static Public Member Functions | |
| static< T > List< T > | groupedOrder (List< T > sorted, java.util.function.Function< T, String > idOf, java.util.function.Function< String, String > leaderOf) |
| The list with every member directly after its leader (in the order the list had), so that a group reads as one block. | |
Static Public Attributes | |
| static final int | MAX_MEMBERS = 7 |
Which players are linked into whose group (the owner's decision G1 to G7 in groups.md).
A group has a leader (the card the owner linked from) and members in the order they were linked; a player is in one group at a time, a member does not lead and a leader is no member. At most MAX_MEMBERS members besides the leader (eight players in all). Not persisted. By the ids of the receivers. Pure; thread safe.
|
static |
The list with every member directly after its leader (in the order the list had), so that a group reads as one block.
A member whose leader is not in the list, and everything that is no player of a group, stays where it was. Pure.
| idOf | the receiver id of an item, null for an item that is no Sendspin player |
| leaderOf | the leader of the group a receiver id is a member of, null if it is none |

| synchronized String de.yaacc.sendspin.SendspinGroups.leaderOf | ( | String | member | ) |
Referenced by de.yaacc.player.PlayerService.getRendererPlayersOfType(), de.yaacc.sendspin.SendspinGroups.groupedOrder(), and de.yaacc.sendspin.SendspinHub.outputTargets().

| synchronized String de.yaacc.sendspin.SendspinGroups.leave | ( | String | id | ) |
A player stops taking part in its group (the protocol's client/leave, or a client that becomes unavailable): it is alone again and the group goes on without it.
A leader leaves by ending its group, because the group is played to the leader.

| synchronized List< String > de.yaacc.sendspin.SendspinGroups.membersOf | ( | String | leader | ) |
Referenced by de.yaacc.sendspin.SendspinHub.groupMutedOf(), de.yaacc.sendspin.SendspinHub.groupRateOf(), de.yaacc.sendspin.SendspinHub.groupVolumeOf(), de.yaacc.sendspin.SendspinHub.link(), de.yaacc.sendspin.SendspinHub.setGroupMuted(), and de.yaacc.sendspin.SendspinHub.setGroupVolume().

| synchronized void de.yaacc.sendspin.SendspinGroups.unlink | ( | String | member | ) |
Takes a member out of its group; a group that has no member left is gone.
Harmless for a player that is in none.
Referenced by de.yaacc.sendspin.SendspinGroups.leave(), and de.yaacc.sendspin.SendspinGroups.remove().
