Class Role
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.external.Entity
-
- org.processmining.plugins.stochasticpetrinet.external.Role
-
- All Implemented Interfaces:
Allocatable
public class Role extends Entity implements Allocatable
-
-
Constructor Summary
Constructors Constructor Description Role(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCanPerform(Role roleToPerform)voidaddPersonToRole(Person person)java.util.List<Person>getAllTransitivePerformers()java.util.List<Role>getCanBePerformedByRoles()intgetCapacity()Roles cannot perform anything by themselves!java.util.List<Person>getDirectPerformers()-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.external.Entity
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.processmining.plugins.stochasticpetrinet.external.Allocatable
getName
-
-
-
-
Method Detail
-
addCanPerform
public void addCanPerform(Role roleToPerform)
-
getCanBePerformedByRoles
public java.util.List<Role> getCanBePerformedByRoles()
-
addPersonToRole
public void addPersonToRole(Person person)
-
getDirectPerformers
public java.util.List<Person> getDirectPerformers()
-
getAllTransitivePerformers
public java.util.List<Person> getAllTransitivePerformers()
-
getCapacity
public int getCapacity()
Roles cannot perform anything by themselves!- Specified by:
getCapacityin interfaceAllocatable- Returns:
- int capacity of the allocatable entity.
-
-