The MHEG User Group mailing list is the right place to ask such questions.
Usually there is somebody out there who can give an answer.
You question was:
::>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?
I guess you also had a look at MHEG Part 1 where it was possible to have
Link objects with more complex trigger conditions. In MHEG Part 5 this is no
longer possible. From my own experience with MHEG-1 I remember that it was
difficult to evaluate these complex conditions correctly as making a correct
evaluation would have required to take a snap shot of all envolved MHEG
objects' states before starting the evaluation. Perhaps this was a reason to
leave this feature out of MHEG-5.
On your example:
::>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
::> )
What does this actually mean?
Two MHEG-5 objects 2 and 3 fire the IsRunning event at exactly the same
time. This is not possible as the Activate or Run Actions needed to do that
can only be precessed in sequence.
So, lets modify your example a bit:
The Link Condition could be like this if object 2 becomes Active and object
3 is *already* active then....
::>{:link
::> :object-identifier 13
::> :event-source 3
::> :event-type IsRunning
::> :link-effect (
::> :activate (12) // switch on Link 12
::> )
::>{:link
::> :object-identifier 12
::> :event-source 2
::> :event-type IsRunning
::> :link-effect (
::> :run (4)
::> )
Ths Link 12 can only fire if it has been activated by Link 13 before. And
Link13 fires on Activation of object 13.
If you are not sure about the order in which Object 2 and 3 will be
activated you need to have two more similar Links.
Hope this helps
- Guido
-----------------------------------------------------------------
Guido Grassel guido.grassel@research.nokia.com
Nokia Research Center tel/fax: +358 9 4376-6827/6855
mailing address: location:
P.O. Box 422 Itälahdenkatu 22b
FIN-00045 Nokia Group 00210 Helsinki-Lauttasaari
::>}
::>// 2: Bitamp1, 3: Audio1, 4:Bitmap2
::>--------------------------------------------------------------
::>How can I get the answer about this question?
::>Do I have to visit this FAQ site?
::>Or check my mail?
::>
::>Thank,
::>Good bye!!!
::>
::>e-mail: jhchoi@pljuno.sogang.ac.kr
::>
::>