private static final class ZActor.ActorFortune extends java.lang.Object implements ZStar.Fortune
| Modifier and Type | Field and Description |
|---|---|
private ZActor.Actor |
actor |
| Constructor and Description |
|---|
ActorFortune(ZActor.Actor actor) |
| Modifier and Type | Method and Description |
|---|---|
ZStar.Star |
create(ZContext ctx,
ZMQ.Socket pipe,
int count,
ZStar.Star previous,
java.lang.Object... args)
Creates a star.
|
boolean |
interview(ZMQ.Socket mic)
The show is over.
|
void |
party(ZContext ctx)
Called when the show is finished but no cleaning is still done.
|
java.lang.String |
premiere(ZMQ.Socket mic,
java.lang.Object... args)
This is the grand premiere!
Called when the star enters the plateau.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprivate final ZActor.Actor actor
public ActorFortune(ZActor.Actor actor)
public java.lang.String premiere(ZMQ.Socket mic, java.lang.Object... args)
ZStar.Fortunepremiere in interface ZStar.Fortunemic - the pipe to the Corbeille sideargs - the arguments passed as parameters of the star constructorpublic ZStar.Star create(ZContext ctx, ZMQ.Socket pipe, int count, ZStar.Star previous, java.lang.Object... args)
ZStar.Fortunecreate in interface ZStar.Fortunectx - the context used for the creation of the socketspipe - the pipe to the Corbeille sidecount - the number of times a star was created.previous - the previous star if any (null at the first creation)args - the arguments passed as parameters of the star constructorpublic boolean interview(ZMQ.Socket mic)
ZStar.Fortuneinterview in interface ZStar.Fortunemic - the pipe to the Corbeille sidepublic void party(ZContext ctx)
ZStar.TimeTakerparty in interface ZStar.TimeTakerctx - the shadow context