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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
protected final String
protected MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>>
protected int
protected EventPatternDistributor.Phase
protected final String
protected final String
protected final String
-
Constructor Summary
ConstructorDescriptionEventPatternDistributor
(String startDef, String startUse, String endUse, String resumeUse) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyPattern
(Event ev) void
reify
(MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.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
-
patternphase
protected int patternphase -
phase
-
msg
-
-
Constructor Details
-
EventPatternDistributor
public EventPatternDistributor() -
EventPatternDistributor
-
-
Method Details
-
getParser
-
reify
public void reify(MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg, Map<Event, Event> origin, Iterable<Event> evs) -
startUse
-
copyPattern
-