Menu

#25 Events using formal fields

open
Patch Panel (2)
5
2012-09-15
2005-12-19
eugen_yu
No

In the file MappingMan.java, line 511
the variable formals which has the type Tuple is used for matching.
This deature is missing in the setMapping() and getMapping() methods.
This result in the phenomena that states which have
event triggers as following cannot become active.

Event trigger 1

EventType: myType

with the fields
aField: (this field is formal)

Event trigger 2

EventType: myType

with the fields
anotherField: (this field is formal)

So the patchpanel does not regard the two events as distinct such as
the event of the event heap dictates.
A workaround is to introduce an actual field that seperate these events.
For example:

Event trigger 1

EventType: myType

with the fields
type: "type1"
aField: (this field is formal)

Event trigger 2

EventType: myType

with the fields
type: "type2"
anotherField: (this field is formal)

Discussion


Log in to post a comment.