My favorites | Sign in
Project Home Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import iaml;

isOperation(emf::EObject this) :
false;

isOperation(model::Operation this) :
true;

model::visual::Frame containingFrame(model::visual::Frame this) :
this;

model::visual::Frame containingFrame(model::scopes::Session this) :
null;

model::visual::Frame containingFrame(model::NamedElement this) :
if (eContainer == null)
then null
else containingFrame(eContainer);

/* default for any EObject */
model::visual::Frame containingFrame(emf::EObject this) :
null;

isAccessibleOnFrame(model::visual::Frame f, model::Wire wire) :
containingFrame(wire.from) == f ||
containingFrame(wire.to) == f;

isAccessibleOnFrame(model::visual::Frame f, model::NamedElement element) :
containingFrame(element) == f;

isAccessibleOnFrame(model::visual::Frame f, emf::EObject element) :
false;

isCastDestination(model::operations::DataFlowEdgeDestination this) :
model::Value.isInstance(this) ||
model::operations::ExternalValue.isInstance(this) ||
model::operations::TemporaryVariable.isInstance(this);

/**
* Extensions to satisfy OAW's bugs: EString cannot be used
* as a String, EBoolean cannot be used as a boolean.
*/
String toString(ecore::EString s) :
s.toString();

boolean toBoolean(ecore::EBoolean b) :
b;

Change log

r2924 by soundasleep on May 15, 2011   Diff
 issue 257 : updating codegen templates
Go to: 
Project members, sign in to write a code review

Older revisions

r2917 by soundasleep on May 15, 2011   Diff
various fixes to test cases and test
model instances
adding back support for 'alert'
PrimitiveOperations (a necessary
requirement of the model)
...
r2834 by soundasleep on May 6, 2011   Diff
 issue 244 : updating codegen test cases
r2805 by soundasleep on May 4, 2011   Diff
 issue 242 : updating inference rules
DomainSchema needs to be a
RequiresEdgeSource in order to be used
with a LoginHandler
All revisions of this file

File info

Size: 1242 bytes, 47 lines
Powered by Google Project Hosting