public class RoleSet extends java.util.LinkedList<Role>
Constructor and Description |
---|
RoleSet() |
Modifier and Type | Method and Description |
---|---|
void |
assignOriginators(org.deckfour.xes.model.XLog log)
This method assign the originators of the log to the corresponding
activities and roles.
|
boolean |
equals(java.lang.Object other) |
java.util.Map<java.lang.String,MultiSet<java.lang.String>> |
getActivityOriginatorFrequencies() |
java.util.Collection<java.lang.Double> |
getTrho()
This method the set of different and significative
rho
values |
double |
getWeights()
This method returns the current set of roles weight
|
void |
handoverDependency(Dependency dependency)
This method adds the provided
Dependency considering the two
activities as belonging to different roles. |
static RoleSet |
loadFromFile(java.io.File sourceFile)
This method loads a role set from a file
|
void |
roleAggregation(double tau_rho)
This method continuously aggregates roles as long as the
tau_rho threshold is satisfied. |
void |
sameRoleDependency(Dependency dependency)
This method adds the provided
Dependency considering both
activities as part of the same role. |
static void |
saveToFile(RoleSet roleSet,
java.io.File destinationFile)
This method saves a role set into a file
|
Role |
search(java.lang.String activity)
This method returns the role that contains the provided activity
|
void |
setActivityOriginatorFrequencies(java.util.Map<java.lang.String,MultiSet<java.lang.String>> activityOriginatorFrequencies) |
java.lang.String |
toString() |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
containsAll, isEmpty, removeAll, retainAll
finalize, getClass, notify, notifyAll, wait, wait, wait
public void sameRoleDependency(Dependency dependency)
Dependency
considering both
activities as part of the same role.dependency
- the dependency to addpublic void handoverDependency(Dependency dependency)
Dependency
considering the two
activities as belonging to different roles.dependency
- the dependency to addpublic void assignOriginators(org.deckfour.xes.model.XLog log)
log
- the log to extract the originators frompublic Role search(java.lang.String activity)
activity
- the activity to look fornull
if such role does not existpublic void roleAggregation(double tau_rho)
tau_rho
threshold is satisfied.
This method corresponds to the Algorithm "Roles Aggregation" (Figure 3)
of the related paper ("Business Models Enhancement through Discovery of
Roles", CIDM 2013).tau_rho
- the tau_rho
threshodlpublic double getWeights()
public java.util.Collection<java.lang.Double> getTrho()
rho
valuespublic void setActivityOriginatorFrequencies(java.util.Map<java.lang.String,MultiSet<java.lang.String>> activityOriginatorFrequencies)
activityOriginatorFrequencies
- public java.util.Map<java.lang.String,MultiSet<java.lang.String>> getActivityOriginatorFrequencies()
public static void saveToFile(RoleSet roleSet, java.io.File destinationFile)
roleSet
- the role set to savedestinationFile
- the destination file of the role setpublic static RoleSet loadFromFile(java.io.File sourceFile)
sourceFile
- the file containing the role setpublic boolean equals(java.lang.Object other)
public java.lang.String toString()
toString
in class java.util.AbstractCollection<Role>