public class Role
extends java.util.HashSet<java.lang.String>
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
void |
addActivity(java.lang.String activity)
This method adds the provided activity to the current role
|
void |
addDependency(Dependency dependency)
This method adds the dependency to the set of dependencies of this role
|
boolean |
equals(java.lang.Object other) |
MultiSet<java.lang.String> |
getOriginators()
This method returns the
MultiSet of originators of the current
role |
double |
getWeight()
This method computes the weight of the current role
|
int |
hashCode() |
static Role |
merge(Role role1,
Role role2)
This method merges two roles, and creates a new one.
|
static double |
rho(Role role1,
Role role2)
Method to calculate the amount of shared originators between the two
roles.
|
static java.lang.String |
stringRepresentation(Role r1,
Role r2)
This method provides a string representation of two roles.
|
java.lang.String |
toString() |
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
addAll, containsAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
public void addDependency(Dependency dependency)
dependency
- the dependecy to addpublic void addActivity(java.lang.String activity)
activity
- the activity to addpublic MultiSet<java.lang.String> getOriginators()
MultiSet
of originators of the current
rolepublic double getWeight()
public static double rho(Role role1, Role role2)
rho_{r1, r2}(L)
formula, which is
the formula no. (2), reported into the related paper ("Business Models
Enhancement through Discovery of Roles", CIDM 2013).role1
- the first rolerole2
- the second rolepublic static Role merge(Role role1, Role role2)
role1
- the first rolerole2
- the second rolepublic static java.lang.String stringRepresentation(Role r1, Role r2)
r1
- the first roler2
- the second rolepublic java.lang.String toString()
toString
in class java.util.AbstractCollection<java.lang.String>
public int hashCode()
hashCode
in interface java.util.Collection<java.lang.String>
hashCode
in interface java.util.Set<java.lang.String>
hashCode
in class java.util.AbstractSet<java.lang.String>
public boolean equals(java.lang.Object other)
equals
in interface java.util.Collection<java.lang.String>
equals
in interface java.util.Set<java.lang.String>
equals
in class java.util.AbstractSet<java.lang.String>