Changes between Version 6 and Version 7 of ModalityEngines


Ignore:
Timestamp:
05/11/12 10:24:10 (7 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModalityEngines

    v6 v7  
    44See [[BibCite(reidsma2011intetainelckerlyc)]]  
    55 
     6== Add a new behavior as description level of some (default) BML behavior == 
     7In your planner:  
     8 
     9 
     10{{{ 
     11static 
     12{ 
     13   ...    
     14   BMLInfo.addDescriptionExtension(MURMLFaceBehaviour.xmlTag(), MURMLFaceBehaviour.class); 
     15} 
     16... 
     17@Override 
     18public List<Class<? extends Behaviour>> getSupportedDescriptionExtensions() 
     19{ 
     20   List<Class<? extends Behaviour>> list = new ArrayList<Class<? extends Behaviour>>(); 
     21   list.add(MURMLFaceBehaviour.class); 
     22   ... 
     23   return list; 
     24} 
     25}}} 
     26When handling a the MURMLFaceBehaviour description in a piece of BML, the scheduler should now call 
     27addBehaviour and resolveSynchs in your planner with a MURMLFaceBehaviour. 
     28 
     29The extension can now be used as follows: 
     30{{{ 
     31<bml id="bml1" xmlns:murml="http://www.techfak.uni-bielefeld.de/ags/soa/murml"> 
     32<faceLexeme id="face1" start="2" lexeme="BLINK"> 
     33<description priority="1" type="murmlface"> 
     34<murml:murmlface start="2" id="face1"> 
     35... 
     36}}} 
     37with murmlface the xml tag of the extension and http://www.techfak.uni-bielefeld.de/ags/soa/murml its namespace. Any timing constraints defined in the base behavior need to be repeated in the extension. 
     38 
    639=== BiBTeX === 
    740Bibtex references stored on: BibTexElckerlycPublications