public class Actor extends AbstractActor
| Constructor and Description |
|---|
Actor()
Creates an actor with a name equal to the current class' simple name.
|
Actor(java.lang.String name)
Creates an actor with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
Model |
behavior()
Override this method to provide the model for the actor's behavior.
|
Actor |
withBehavior(Model behaviorModel)
Attach the specified behavior to the actor.
|
createRunnerWithBehaviorIfPresent, equals, getModelRunner, getName, getStepsOf, getUseCases, hashCode, reactTo, reactTo, toStringpublic Actor()
public Actor(java.lang.String name)
name - the name of the actorpublic Actor withBehavior(Model behaviorModel)
behaviorModel - the behvior the actor will show from now onpublic Model behavior()
AbstractActorbehavior in class AbstractActor