[Esml-users] Re: RE Esml-users Event ports with null event refs

Feng Shi fengshi at isis.vanderbilt.edu
Tue May 11 17:20:42 CDT 2004


Jesse,

We have a tool prism2esml which can transfer the prism model into ESML
model, so ESML can be used on Prism based component system. But ESML has
some other usages, the null event reference in component type model
allows the flexibility for users to set up the subscribe/publish
relationship between the event port and event type.

Sandeep knows more about Prism, maybe he could you provide more
information on this issue.

Thanks,
Feng

-----Original Message-----
From: Jesse Greenwald [mailto:jesse at cis.ksu.edu] 
Sent: Tuesday, May 11, 2004 4:02 PM
To: esml-users
Subject: [Esml-users] Re: RE Esml-users Event ports with null event refs

Hi Feng,

Thanks for the quick response!

I now understand that the null event reference means the port can
publish or subscribe any type of event.  But, I don't understand what
the purpose of this is.  ESML is intended to be used on Prism based
component system.  Isn't it possible to determine the specific event
types of all event ports on Prism components?  I think this would be
desirable since it would allow the tool to more accurately determine if
event connections between components are valid.

Thanks,
Jesse

On Mon, 2004-05-10 at 13:19, Feng Shi wrote:
> Jesse,
> 
> In ESML model, the ComponentType models contained in ComponentTypes
> folder are defined as the archetype model, while the ComponentType
> models in Interaction diagram are the instances of these archetype
> models.
> 
> If the EventTypeRef refers to null object, it means that the event
port
> attached with it can subscribe or publish any type of event. If the
> EventTypeRef refers to a specific type of event, then the event port
can
> only subscribe or publish the same type of event.
> 
> ESML allows user to set the EventTypeRef refer to specific event type
> for instance model, like TACTICAL_STEERING. Meanwhile, such reference
> can also be set in archetype level, like BM__ModalComponentImpl, and
it
> will propagate to its all instance model.
> 
> Hope this helps,
> 
> Feng
> 
> -----Original Message-----
> From: Jesse Greenwald [mailto:jesse at cis.ksu.edu] 
> Sent: Monday, May 10, 2004 1:08 PM
> To: esml-users
> Subject: [Esml-users] Event ports with null event refs
> 
> Hi,
> 
> I've been taking a look at some of the example models that are
included
> with ESML.  While looking at them, I've noticed that some event ports
on
> some components have null event type refs.  That is, when I double
click
> on EventTypeRef box attached to the port, the following error message
is
> displayed: "Unable to show referred object of null reference".  Is
this
> an error in the model, or does this have a special meaning?
> 
> One example of this can be found in the MC__ModalSP model.  The
ANY_pub
> port of the BM__ModalComponentImpl has a null event type reference. 
> But, when I double click TACTICAL_STEERING (from Interaction
ModalSP_3)
> and open up the component, it has a non-null event type ref.
> 
> Thanks,
> Jesse
> 
> _______________________________________________
> esml-users mailing list
> esml-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/esml-users
> _______________________________________________
> esml-users mailing list
> esml-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/esml-users
> 

_______________________________________________
esml-users mailing list
esml-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/esml-users


More information about the esml-users mailing list