Re: Link with tow(or more) source

Andreas Kraft (kraft@fokus.gmd.de)
Thu, 30 Oct 1997 14:03:25 +0100 (MET)

Dear members and Choi,

On Thu, 30 Oct 1997, Yoshiharu DEWA wrote:

> > How can I represent a link with two(or more) sources.
> > - for example -
> > if ( (Bitmap1 is IsRunning) AND ( Audio1 is IsRunning )) {
> > run Bitmap2;
> > }
> > Is it possible that this condition is represented in MHEG-5
> > text-notation?
> > If it's possible,
> > how can I represent 'link class with two(or more) sources' in MHEG-5
> > text-notation.
> >
> > How can I modify following link class for representing this condifion!
> >
> > {:link
> > :object-identifier 1
> > :event-source 2 AND :event-source 3
> > :event-type IsRunning :event-type IsRunning
> > :link-effect (
> > run 4
> > )
> > }
> > // 2: Bitamp1, 3: Audio1, 4:Bitmap2
>
> But this notation is a bit lengthy, can anyone try to another
> solution?

Hmm, what do you think about the following? I haven't tried it, but it might
work:

{:Bitmap
1
...
}

{:Audio
2
...
}

{:Bitmap // Dummy for TokenGroup
3
...
}

{:Bitmap // Bitmap to run
4
...
}

{:Link
100
:EventSource 1
:EventType IsRunning
:LinkEffect (
:CallActionSlot (500 1)
:CallActionSlot (500 2)
)
}

{:Link
101
:EventSource 2
:EventType IsRunning
:LinkEffect (
:CallActionSlot (500 1 )
:CallActionSlot (500 2 )
)
}

{:TokenGroup
500
:MovementTable (
( 1 2 3 ) // Dummy movements
( 1 2 3 ) // Dummy movements
)
:TokenGroupItems (
( 3
:ActionSlots (
( :MoveTo ( 500 2 ) )
( NULL )
)
)
( 3
:ActionSlots (
( :MoveTo ( 500 3 ) )
( NULL )
)
)
( 3
:ActionSlots (
( NULL )
( :Run ( 4 ) )
)
)
)
}

The links move the token position of the group independently of each other.
Only if the third state is reached (both objects 1 and 2 are active),
the object 4 is activated by the action in the second action slot of the
third token position.

Best regards,

Andreas

--
  o  _     Andreas Kraft
 (\_|_)      GMD FOKUS, kraft@fokus.gmd.de, +49 30 3463-7232
 T> ] [        The sky is the limit