Working with enumerations and casting to subclass [message #573246] |
Sun, 09 August 2009 00:36 |
Lukman Messages: 8 Registered: August 2010 |
Junior Member |
|
|
Hi,
Right now I'm working with EGL and I have a problem with enumerations in
the metamodel. How do I refer to elements in the enumeration in IF
statement?
Another problem that I got is with subclasses in the metamodel. This is
the snippet of my EGL template.
if(transition.source.isKindOf(Pseudostate)=false){
generateTransitions();
}else{
------
}
In the ELSE section I want to add another IF statement that will check
certain properties of Pseudostate. In the metamodel transition.source can
be either Pseudostate or SimpleState. Do I need to cast transition.source
to Pseudostate in the ELSE section? If I do, how do I do it?
Cheers,
Lukman
|
|
|
Powered by
FUDForum. Page generated in 0.02201 seconds