Class EventPatternDistributor

java.lang.Object
eu.bandm.tscore.base.EventPatternDistributor

public class EventPatternDistributor extends Object
Looks for start/end of pattern repetition and constructs the representing Event ->Event relation.

In contrast to PatternDistributor, not the source text is manipulated, but the explicit data relation is constructed. The intended effect (normally: inheritance/copying of one ore more parameter values) must be performed explicitly by the user, in some subsequent processing.

In contrast to PatternDistributor, this class extends Translet.Parser and can be combined with other parser classes, and must be applied in the normal parsing framework.
FIXME STIMMT NICHT !?!?!?

The parsing only memoizes the start and stop events. Afterwards the reify(MessageReceiver,Map,Iterable) method must be called to fill the map.

The state machine is very similar to PatternDistributor:

    start---> [INIT]
                 | "$xxx"
                 |
                 V
      ----->  [COLLECTING] <--------
      ^^         |         ________ ) "$xxx"
      ||         |"IDEM"                             
      ||         |                               
      ||"$xxx"   V     (starting from 0) <----
      ||____  [USING]_________________________) "IDEM"  
      |          |     <------------            
      |          |                  |   
      |          |                  |   
      |          | "TERM"/"xxx"     |
      |"$xxx"    V                  | "CONT"/"IDEM"
      ------- [SUSPENDED] ----------/