public class RolePlayer extends Player implements ToXML
Modifier | Constructor and Description |
---|---|
protected |
RolePlayer(Role role,
OEAgent ag,
GroupInstance gr) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.w3c.dom.Element |
getAsDOM(org.w3c.dom.Document document) |
GroupInstance |
getGroup() |
java.util.Collection<Link> |
getLinks(java.lang.String type)
gives all links of type
type (e.g. |
java.util.Collection<Permission> |
getObligations()
returns a collection of missions this role player is obliged to commit to.
|
java.util.Collection<Permission> |
getPermissions()
returns a collection of missions where this role player
is permitted to commit to.
|
Role |
getRole() |
static java.lang.String |
getXMLTag() |
int |
hashCode() |
java.lang.String |
toString() |
protected RolePlayer(Role role, OEAgent ag, GroupInstance gr) throws MoiseConsistencyException
MoiseConsistencyException
public Role getRole()
public GroupInstance getGroup()
public java.util.Collection<Link> getLinks(java.lang.String type)
type
(e.g. "communication")
that this role player has.
if type is null, all links are givenpublic java.util.Collection<Permission> getObligations()
public java.util.Collection<Permission> getPermissions()
public static java.lang.String getXMLTag()
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
public java.lang.String toString()
toString
in class java.lang.Object