Re: Link with tow(or more) source

Yoshiharu DEWA (dewa@crdl.pioneer.co.jp)
Thu, 30 Oct 1997 16:57:34 +0900

Hi Choi,

On Thu, 30 Oct 1997 13:11:54 +0000,
Choi Jong Hyuk <jhchoi@pljuno.sogang.ac.kr> said:

Hummm, you should change the Timezone on your machine properly.
The time zone in seoul is +0900. (same in Japan :-)

> I am Choi Jong Hyuk in Sogang Univ. in seoul, Korea.
> I have a questiion!
> --------------------------------------------------------------
> In MHEG-5 text-notation,
> 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

You could write using 4 link objects and 1 variable such a situation.
The notation as follows:

{:BooleanVar 10
:OrigVarue false // for availability of Bitmap1

}
{:BooleanVar 11
:OrigValue false // for availability of Audio1

}
{:Link 1
:EventSource 2
:EventType IsRunning
:LinkEffect (
:SetVariable (10 true)
:TestVarible (11 1 true) // Is Audio1 running?
)
}
{:Link 2
:EventSource 3
:EventType IsRunning
:LinkEffect (
:SetVariable (11 true)
:TestVarible (10 1 true) // Is Bitmap1 running?
)
}
{:Link 3
:EventSource 10
:EventType TestEvent
:EventData true
:LinkEffect (
:Run 4 // run Bitmap2
)
}
{:Link 4
:EventSource 11
:EventType TestEvent
:EventData true
:LinkEffect (
:Run 4 // run Bitmap2
)
}

But this notation is a bit lengthy, can anyone try to another
solution?

Regards,
--------------------------------------------------------
Yoshiharu Dewa
Fujimi6-1-1,Tsurugashima,Saitama,Japan
Pioneer Electoronic Corporation
Corporative R&D Laboratories
Information Technology Department Lab. 1