public class FlowlessSystemPart<T>
extends java.lang.Object
ModelBuilder to build a Model.| Modifier and Type | Method and Description |
|---|---|
Model |
build()
Returns the model that has been built.
|
FlowlessConditionPart |
condition(Condition condition)
Constrains the condition for triggering a system reaction: only if the
specified condition is true, a system reaction can be triggered.
|
<U> FlowlessUserPart<U> |
on(java.lang.Class<U> messageClass)
Defines the type of messages or exceptions that will cause a system reaction.
|
FlowlessStepPart |
step(java.lang.String stepName)
Creates a named step.
|
FlowlessToPart |
to(AbstractActor recipient)
Specifies the recipient of the message.
|
UseCasePart |
useCase(java.lang.String useCaseName)
Creates a new use case in the current model, and returns a part for building
its details.
|
<U> FlowlessUserPart<U> |
user(java.lang.Class<U> commandClass)
Defines the type of commands that will cause a system reaction.
|
public FlowlessConditionPart condition(Condition condition)
condition - the condition that constrains when the system reaction is
triggeredpublic FlowlessStepPart step(java.lang.String stepName)
stepName - the name of the created steppublic <U> FlowlessUserPart<U> user(java.lang.Class<U> commandClass)
The system reacts to objects that are instances of the specified class or instances of any direct or indirect subclass of the specified class.
U - the type of the classcommandClass - the class of commands the system reacts topublic <U> FlowlessUserPart<U> on(java.lang.Class<U> messageClass)
The system reacts to objects that are instances of the specified class or instances of any direct or indirect subclass of the specified class.
U - the type of the classmessageClass - the class of messages the system reacts topublic UseCasePart useCase(java.lang.String useCaseName)
useCaseName - the name of the existing use case / use case to be
created.public FlowlessToPart to(AbstractActor recipient)
recipient - the recipient of this messagepublic Model build()