|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.core.helper.ActorHelper
Class providing helper functions for the class Actor.
Field Summary | |
protected static java.lang.String[] |
actorRoleNames
Constants representating roles. |
static java.lang.String[] |
actorRoleNamesDisplaying
Names of roles, that will be displayed in the gui. |
static int |
PRIMARY_ACTOR
Constant |
static int |
SUPPORTING_ACTOR
Constant |
static int |
SYSTEM_UNDER_DESIGN
Constant |
Method Summary | |
static Actor |
create(Entity entity,
UseCase useCase,
int role)
Creates actor of the chosen type belonging to selected use case. |
static int |
getActorRole(Actor a)
Returns role of the actor |
static void |
removeActor(Actor actor,
UseCase useCase)
Remove actor from useCase |
static void |
setActorRole(Actor a,
int role)
Sets role to the actor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] actorRoleNamesDisplaying
protected static final java.lang.String[] actorRoleNames
public static final int SYSTEM_UNDER_DESIGN
public static final int PRIMARY_ACTOR
public static final int SUPPORTING_ACTOR
Method Detail |
public static int getActorRole(Actor a)
a
- actor role is getted from
public static void setActorRole(Actor a, int role)
a
- changing actorrole
- new role to be set to actorpublic static Actor create(Entity entity, UseCase useCase, int role)
entity
- entity - SuD of the use caseuseCase
- use case actor will belong torole
- role for new actor
public static void removeActor(Actor actor, UseCase useCase)
actor
- actor to be removeduseCase
- use case actors belongs to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |