commit | 709e7775eb98a7d964fa2466325c8308a886932e | [log] [tgz] |
---|---|---|
author | mparker <milesparker@gmail.com> | Wed Aug 10 18:56:54 2011 -0700 |
committer | mparker <milesparker@gmail.com> | Wed Aug 10 18:56:54 2011 -0700 |
tree | e50e7d162af1bcd615e9618c1e471afd6c1a1748 | |
parent | 151575a70b9f809fdd2d7bb0362ed78f5a7f4dc0 [diff] |
Thought this made the last push but apprantly not.
diff --git a/org.eclipse.amp.amf/plugins/org.eclipse.amp.amf.gen/src/metaabm/tmpl/infer.ext b/org.eclipse.amp.amf/plugins/org.eclipse.amp.amf.gen/src/metaabm/tmpl/infer.ext index bd68317..f676cc6 100644 --- a/org.eclipse.amp.amf/plugins/org.eclipse.amp.amf.gen/src/metaabm/tmpl/infer.ext +++ b/org.eclipse.amp.amf/plugins/org.eclipse.amp.amf.gen/src/metaabm/tmpl/infer.ext
@@ -23,6 +23,12 @@ cached Boolean isHost(SGrid proj) : true; +cached SContext rootContext(SContext agent) : + agent.owner != null ? agent.owner.rootContext() : agent; + +cached SContext rootContext(SAgent agent) : + agent.owner.rootContext(); + cached Boolean isHost(SAgent agent) : !hosts(agent).isEmpty;