RoleGraph
API defining an generic interface for all kind of role graphs.
Value members
Abstract methods
Adds a plays relationship between core and role.
Adds a plays relationship between core and role.
- Value Params
- player
the player instance to add the given role
- role
the role instance to add
RoleGraph given as other would get part of this.
RoleGraph given as other would get part of this.
- Value Params
- other
the RoleGraph for integration in this one.
Checks if the role graph contains the given player.
Checks if the role graph contains the given player.
- Value Params
- player
the player instance to check
- Returns
true if the role graph contains the given player, false otherwise
Removes all players and plays-relationships specified in other from this RoleGraph.
Removes all players and plays-relationships specified in other from this RoleGraph.
- Value Params
- other
the RoleGraph all players and plays-relationships specified in should removed from this
Returns a Seq of all facets attached to the given player (core object).
Returns a Seq of all facets attached to the given player (core object).
- Value Params
- player
the player instance to get the facets for
- Returns
a Seq of all facets of core player. Returns an empty Seq if the given player is not in the role-playing graph.
Returns a list of all predecessors of the given player, i.e. a transitive closure of its cores (deep roles).
Returns a list of all predecessors of the given player, i.e. a transitive closure of its cores (deep roles).
- Value Params
- player
the player instance to calculate the cores of
- Returns
a list of all predecessors of the given player
Removes a plays relationship between core and role.
Removes a plays relationship between core and role.
- Value Params
- player
the player instance to remove the given role from
- role
the role instance to remove
Removes the given player from the graph. This should remove its binding too!
Removes the given player from the graph. This should remove its binding too!
- Value Params
- player
the player to remove
Returns a Seq of all roles attached to the given player (core object).
Returns a Seq of all roles attached to the given player (core object).
- Value Params
- player
the player instance to get the roles for
- Returns
a Seq of all roles of core player. Returns an empty Seq if the given player is not in the role-playing graph.