Package eu.bandm.tscore.base
Class EventPatternDistributor
java.lang.Object
eu.bandm.tscore.base.EventPatternDistributor
Looks for start/end of pattern repetition and constructs the representing
  Event ->Event relation.
  
In contrast to
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] ----------/            
               
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final Stringprotected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> protected intprotected EventPatternDistributor.Phaseprotected final Stringprotected final Stringprotected final String
- 
Constructor SummaryConstructorsConstructorDescriptionEventPatternDistributor(String startDef, String startUse, String endUse, String resumeUse) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcopyPattern(Event ev) voidreify(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Map<Event, Event> origin, Iterable<Event> evs) protected void
- 
Field Details- 
startDef
- 
startUse
- 
endUse
- 
resumeUse
- 
default_startDef- See Also:
 
- 
default_startUse- See Also:
 
- 
default_endUse- See Also:
 
- 
default_resumeUse- See Also:
 
- 
intermediate
- 
origin
- 
pattern
- 
patternphaseprotected int patternphase
- 
phase
- 
msg
 
- 
- 
Constructor Details- 
EventPatternDistributorpublic EventPatternDistributor()
- 
EventPatternDistributor
 
- 
- 
Method Details- 
getParser
- 
reifypublic void reify(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Map<Event, Event> origin, Iterable<Event> evs) 
- 
startUse
- 
copyPattern
 
-