public class Model
extends java.lang.Object
ModelRunner.| Modifier and Type | Method and Description |
|---|---|
static ModelBuilder |
builder()
The only way to build a model and its parts is to use the builder returned by
this method.
|
AbstractActor |
findActor(java.lang.String actorName)
Finds the actor with the specified name, contained in this model.
|
UseCase |
findUseCase(java.lang.String useCaseName)
Finds the use case with the specified name, contained in this model.
|
java.util.Collection<AbstractActor> |
getActors()
Returns the actors contained in this model.
|
java.util.Collection<Step> |
getSteps()
Returns the steps of use cases contained in this model.
|
AbstractActor |
getSystemActor()
Returns the actor representing the system.
|
java.util.Collection<UseCase> |
getUseCases()
Returns the use cases contained in this model.
|
AbstractActor |
getUserActor()
Returns the actor representing the default user.
|
boolean |
hasActor(java.lang.String actorName)
Checks whether this model contains the specified actor.
|
boolean |
hasUseCase(java.lang.String useCaseName)
Checks whether this model contains the specified use case.
|
UseCase |
newUseCase(java.lang.String useCaseName) |
public static ModelBuilder builder()
public boolean hasActor(java.lang.String actorName)
actorName - the name of the actor whose existence to checkpublic boolean hasUseCase(java.lang.String useCaseName)
useCaseName - the name of the use case whose existence to checkpublic UseCase newUseCase(java.lang.String useCaseName)
public AbstractActor findActor(java.lang.String actorName)
actorName - the name of the actor to look forNoSuchElementInModel - if no actor with the specified actorName is
found in the modelpublic UseCase findUseCase(java.lang.String useCaseName)
useCaseName - the name of the use case to look forNoSuchElementInModel - if no use case with the specified useCaseName is
found in the modelpublic java.util.Collection<AbstractActor> getActors()
public java.util.Collection<UseCase> getUseCases()
public java.util.Collection<Step> getSteps()
public AbstractActor getUserActor()
public AbstractActor getSystemActor()