[Cuis-dev] Object wantsSteps

Alexandre Rousseau yalexr at gmail.com
Mon Mar 27 06:36:52 PDT 2023


Thanks everyone. I was looking at this from the wrong altitude. This (in my
case) is all meant to be instantiated from inside a PasteUpMorph
(TrafficSimulator). Clearly, it can act as controller for my models.

On Mon, Mar 27, 2023 at 9:22 AM <ken.dickey at whidbey.com> wrote:

> On 2023-03-27 06:15, ken.dickey--- via Cuis-dev wrote:
> > On 2023-03-27 05:51, Alexandre Rousseau via Cuis-dev wrote:
> >
> >> Thanks! I feel though that threads could be overkill for my needs (I'm
> >> probably biased as an Elixir -- light processes etc -- dev) ?
> >>
> >> - I have a TrafficLightFSM (cycling through, say, #red #green #yellow
> >> states).
> >> - This fsm aka model is observed by a TrafficLightMorph, a
> >> WalkPrompterMorph, a CountdownMorph, and others.
> >> - I would like to keep the timing of transitions from one state to the
> >> next inside the model.
> >>
> >> Creating/finding a TimerMorph acting as controller of my model could
> >> work, but I was wondering if there was a canonical way for such needs.
> >>
> >
> > Morphic/Examples-Morphic.pck.st has Animator examples.  Note
> > BlueButterfly.
> >
> > HTH,
> > -KenD
>
> Ah!  No "butterfly" in names.
>
>         Animator imageCyclingExample.
>
> Look in Animator class's method category #examples.
>
> HTH,
> -KenD
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230327/788ab6cd/attachment.htm>


More information about the Cuis-dev mailing list