public class StepSystemPart<T>
extends java.lang.Object
ModelBuilder to build a Model.| Modifier and Type | Method and Description |
|---|---|
Model |
build()
Returns the model built so far.
|
FlowPart |
flow(java.lang.String flowName)
Creates a new flow in the current use case.
|
StepSystemPart<T> |
reactWhile(Condition reactWhileCondition)
React to this step's message as long as the condition is fulfilled.
|
StepPart |
step(java.lang.String stepName)
Creates a new step in this flow, with the specified name, that follows the
current step in sequence.
|
StepToPart<T> |
to(AbstractActor recipient)
Specifies the recipient of the message.
|
UseCasePart |
useCase(java.lang.String useCaseName)
Creates a new use case in the current model.
|
public StepPart step(java.lang.String stepName)
stepName - the name of the step to be createdElementAlreadyInModel - if a step with the specified name already
exists in the use casepublic FlowPart flow(java.lang.String flowName)
flowName - the name of the flow to be created.ElementAlreadyInModel - if a flow with the specified name already
exists in the use casepublic UseCasePart useCase(java.lang.String useCaseName)
useCaseName - the name of the use case to be created.ElementAlreadyInModel - if a use case with the specified name already
exists in the modelpublic StepSystemPart<T> reactWhile(Condition reactWhileCondition)
Even when the condition is fulfilled, the flow can advance given that the message of the next step is received.
Note that if the condition is not fulfilled after the previous step has been performed, the step will not react at all.
reactWhileCondition - the condition to checkpublic StepToPart<T> to(AbstractActor recipient)
recipient - the recipient of this messagepublic Model build()